amusing that I made the quote this week. I meant it sincerely. The person I was replying to suggested storing all the pkg info per-system so when you reinstalled you could get back to the set of pkgs you had before really quickly. I was telling him that you mostly need the list of pkgs and the list of repos on the system and you could figure everything else back from there to fetch down the right set of pkgs.
you just need a good place to save this data to make it easy for the admin/user to retrieve later when they reinstall/upgrade their system.
Posted Jun 1, 2012 8:50 UTC (Fri) by nigelm (subscriber, #622)
[Link]
Some people use etckeeper to maintain a log of changes to /etc.
On RH-like systems etckeeper fires a commit as part of a yum package operation (using a yum plugin).
It seems to me that as part of that you could dump the current list of packages - basically the output of 'yum list installed' - into a file within etc (so under etckeeper) which would give you what you were after (you already have the yum repo configuration in the etckeeper repo).
Nigel.
Distribution quotes of the week
Posted Jun 2, 2012 1:08 UTC (Sat) by bronson (subscriber, #4806)
[Link]
In fact, I wrote exactly this, see 10update-packagelist: