On 10/10/2011 02:50 PM, Harry Putnam wrote:
Gilbert Sullivan<whirly...@comcast.net>  writes:

On 10/10/2011 10:17 AM, Harry Putnam wrote:
Is there a command similar to `dpkg --get-selections' that shows all
installed/deinstalled pkgs, but where one can get the dates of install
or remove.

A fairly quick pass thru man dpkg seems to indicate there is not.


Well, if you don't need to go back more than about 6 months, I think
you can find what you need in the aptitude logs (and archives) under
/var/log.

It happens that I keep all of my old aptitude logs because I like to
keep track of this stuff all the way back to the original installation
of the system.

I'm guessing by now you have worked out a script or the like to do
automate some of that.

I can look and figure some basic helper script once I've digested the
format of the various sources ... but hoping to coattail on something
you've already spent some time on.

Sorry. As you might surmise by the time that elapsed before I got around to replying I tend to be a bit lazy. I'm afraid that the laziness extends to my habits in systems management. Since I only manage a few, I tend to do chores like this manually instead of by script. I simply copy the data out of /var/log/aptitude after each day's changes to the systems and paste it into a single large text file for each system.

You should note that the aptitude log only records the changes you _tried_ to make to the system. If an installation fails, that fact may not be recorded in the log. I've only seen one or two instances of such failures over the few years I've been using Debian.

I'm sorry I couldn't provide a script out of hand, and I hope you find a solution that suits you.

Regards,
Gilbert


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4e944d19.5010...@comcast.net

Reply via email to