This question already has an answer here:
Is there a way to save the "current state" of my TeX installation, the various packages etc. that allow a document to be compiled into a pdf at this moment? In a year or two, I'll probably have a lot of package updates, etc. and it's questionable whether all of my documents will re-compile in the same way. Is there some way to save a format that will allow an identical recompile, or to save a snapshot of my installation in some way, or some other method?