Saving package list with the "automatically installed" attribute
Is there any way to save the list of installed packages and have it
include the attribute "automatically installed" used by aptitude? I know
about dpkg --get-selections and --set-selection but they don't include
the information used by aptitude.
And secondly, is it possible to somehow track packages with information
like when they were installed/upgraded, from what previous version etc..
sort of like tracking changes to the system so that you can go back to a
working state if you for some reason would want to. Or is all information
about a previous state completely forgotten once the system has been
upgraded? Isn't there even an application out there that can keep a
history of changes to the package structure?