I'm primarily a
User Developer Sysadmin A mixture Something else entirely .. ( 513 votes ~ 10 comments )
You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.
To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.
This is the comment you were replying to, attached to the article Question: Tracking the installation and removal of packages.:
#1 Re: Question: Tracking the installation and remova Posted by Steve (82.41.xx.xx) on Fri 10 Jun 2005 at 05:38 I can't think of a global solution to this, certainly not something that keeps track of package re-configuration. But there are a couple of different ways of keeping track of package addition/removal/upgrading which you might be able to investigate as a starting point. These are just the things that spring to mind - others might have better solutions: apt-listchanges The apt-listchanges package, which we covered here can be setup to send email whenever a package has been upgraded. This sends the package changelog to a mail address, which should allow you to keep track of package upgrades. But it doesn't handle package removals at all. dpkg-changes dpkg-changes which I wrote will keep track of noticing package additions or removals in a simplistic fashion. It keeps a copy of the dpkg package installation logs, and when run it will show you what's changed since the previous invocation. I have a cronjob setup to run this nightly - so every morning I can see what other sysadmins at my company might have added/removed without telling me. Sample output: steve@skx:~/Mail$ dpkg-changes --uncache Package Change Report for skx.my.flat 2 packages removed: aide apache 1 package added: aptitude tripwire Tripwire/integrit/other software integrity checkers will allow you to keep track of binaries upon your system which might have changed, showing something has occurred. This should also allow you to keep track of package upgrades/changes. It might allow you to keep track of configuration file changes if you monitor /etc/ too... Steve -- Steve.org.uk
I can't think of a global solution to this, certainly not something that keeps track of package re-configuration.
But there are a couple of different ways of keeping track of package addition/removal/upgrading which you might be able to investigate as a starting point.
These are just the things that spring to mind - others might have better solutions:
The apt-listchanges package, which we covered here can be setup to send email whenever a package has been upgraded.
This sends the package changelog to a mail address, which should allow you to keep track of package upgrades. But it doesn't handle package removals at all.
dpkg-changes which I wrote will keep track of noticing package additions or removals in a simplistic fashion.
It keeps a copy of the dpkg package installation logs, and when run it will show you what's changed since the previous invocation. I have a cronjob setup to run this nightly - so every morning I can see what other sysadmins at my company might have added/removed without telling me.
Sample output:
steve@skx:~/Mail$ dpkg-changes --uncache Package Change Report for skx.my.flat 2 packages removed: aide apache 1 package added: aptitude
Tripwire/integrit/other software integrity checkers will allow you to keep track of binaries upon your system which might have changed, showing something has occurred.
This should also allow you to keep track of package upgrades/changes. It might allow you to keep track of configuration file changes if you monitor /etc/ too...
Steve -- Steve.org.uk
Posting Format:
Inappropriate comments will be removed.
Some help on entry formatting is available
Username:
Password:
[ Advanced Login ]
Register Account