Re: DPkg::Pre-Invoke
2009/6/6 Andrei Popescu : > On Sat,06.Jun.09, 10:52:30, Peter Jordan wrote: >> >> i want to be informed per mail if someone installs, upgrades, >> downgrades, removes or purges a package via aptitude, apt-get or dpkg. I >> could of course parse the /var/lib/dpkg/status file, but that's not what >> i want. > > Ok, that's an entirely different problem. There might be other > solutions, but how about monitoring dpkg.log with logcheck? Have you tried "man apt.conf": Pre-Install-Pkgs This is a list of shell commands to run before invoking dpkg. Like options this must be specified in list notation. The commands are invoked in order using /bin/sh, should any fail APT will abort. APT will pass to the commands on standard input the filenames of all .deb files it is going to install, one per line. Anton -- Anton Piatek email: an...@piatek.co.uk blog/photos:http://www.strangeparty.com pgp: [0xB307BAEF] (http://www.strangeparty.com/anton.asc) fingerprint: 116A 5F01 1E5F 1ADE 78C6 EDB3 B9B6 E622 B307 BAEF No trees were destroyed in the sending of this message, however, a significant number of electrons were terribly inconvenienced. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: DPkg::Pre-Invoke
On Sat,06.Jun.09, 10:52:30, Peter Jordan wrote: > > i want to be informed per mail if someone installs, upgrades, > downgrades, removes or purges a package via aptitude, apt-get or dpkg. I > could of course parse the /var/lib/dpkg/status file, but that's not what > i want. Ok, that's an entirely different problem. There might be other solutions, but how about monitoring dpkg.log with logcheck? Regards, Andrei -- If you can't explain it simply, you don't understand it well enough. (Albert Einstein) signature.asc Description: Digital signature
Re: DPkg::Pre-Invoke
Andrei Popescu, Sat Jun 06 2009 08:56:56 GMT+0200 (CEST): On Sat,06.Jun.09, 07:51:13, Peter Jordan wrote: i want to log every change of packages in my system. More than you already have in /var/log/dpkg.log /var/log/aptitude /var/log/apt/term.log ? Regards, Andrei i want to be informed per mail if someone installs, upgrades, downgrades, removes or purges a package via aptitude, apt-get or dpkg. I could of course parse the /var/lib/dpkg/status file, but that's not what i want. PJ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: DPkg::Pre-Invoke
On Sat,06.Jun.09, 07:51:13, Peter Jordan wrote: > > i want to log every change of packages in my system. More than you already have in /var/log/dpkg.log /var/log/aptitude /var/log/apt/term.log ? Regards, Andrei -- If you can't explain it simply, you don't understand it well enough. (Albert Einstein) signature.asc Description: Digital signature
Re: DPkg::Pre-Invoke
Ólafur Jens Sigurðsson, Fri Jun 05 2009 20:24:48 GMT+0200 (CEST): On Thu, Jun 04, 2009 at 12:03:25PM +0200, Peter Jordan wrote: Hello, is it possible to pass the package name and package version to a script with DPkg::Pre-Invoke? If not, is there any other way? Its really unclear what it is you want to do, is this a bash script your talking about? A perl script? A Python script? How are you going to get information from a package if you don't know the name of the package? If you know the name, then that answeres your first question, and the second you can get by dpkg -s pkgname and some grep and awk (or a one line perl script with some fancy RE) Cheers Oli i want to log every change of packages in my system. PJ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: DPkg::Pre-Invoke
On Thu, Jun 04, 2009 at 12:03:25PM +0200, Peter Jordan wrote: > Hello, > > is it possible to pass the package name and package version to a script > with DPkg::Pre-Invoke? If not, is there any other way? Its really unclear what it is you want to do, is this a bash script your talking about? A perl script? A Python script? How are you going to get information from a package if you don't know the name of the package? If you know the name, then that answeres your first question, and the second you can get by dpkg -s pkgname and some grep and awk (or a one line perl script with some fancy RE) Cheers Oli -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
DPkg::Pre-Invoke
Hello, is it possible to pass the package name and package version to a script with DPkg::Pre-Invoke? If not, is there any other way? PJ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org