Generating a record of the full(-ish) package management state

Posted by intuited on Server Fault See other posts from Server Fault or by intuited
Published on 2010-05-01T21:43:51Z Indexed on 2010/05/01 21:48 UTC
Read the original article Hit count: 506

Filed under:
|
|
|

I'm about to make some system changes and I'd like to have a record of my current happy system state. Is there a convenient way to create a record of this? I'd like to keep track of info like

  • currently installed packages and their versions
  • which packages are pinned at what version
  • which source (as in /etc/apt/sources.list) they were installed from
  • whether they were installed directly or automatically installed as a dependency of a different package
  • "unknown unknowns": ie stuff that I don't know that I should be keeping track of but which may be important when trying to figure out why something doesn't work

In short, I'd like to keep as much of the aptitude database as possible. What's the best way to do this? It would be nice if the resulting records were easily readable, though this is not really essential. It would be extra nice if it were readily versionable through an SCM tool like git.

There is a superuser question that partially answers this, but it only provides the list of currently installed packages.

© Server Fault or respective owner

Generating a record of the full(-ish) package management state

Posted by intuited on Super User See other posts from Super User or by intuited
Published on 2010-05-01T21:45:39Z Indexed on 2010/05/01 21:48 UTC
Read the original article Hit count: 506

Filed under:
|
|
|

I'm about to make some system changes and I'd like to have a record of my current happy system state. Is there a convenient way to create a record of this? I'd like to keep track of info like

  • currently installed packages and their versions
  • which packages are pinned at what version
  • which source (as in /etc/apt/sources.list) they were installed from
  • whether they were installed directly or automatically installed as a dependency of a different package
  • "unknown unknowns": ie stuff that I don't know that I should be keeping track of but which may be important when trying to figure out why something doesn't work

In short, I'd like to keep as much of the aptitude database as possible. What's the best way to do this? It would be nice if the resulting records were easily readable, though this is not really essential. It would be extra nice if it were readily versionable through an SCM tool like git.

There is a superuser question that partially answers this, but it only provides the list of currently installed packages.

© Super User or respective owner

Related posts about apt

Related posts about aptitude