Sven Joachim wrote: > On 2011-03-31 08:49 +0200, Andrei Popescu wrote: > >> On Jo, 31 mar 11, 08:01:46, Johannes Graumann wrote: >>> >>> I'm running a host-based intrusion detection system (HIDS) and have to >>> update it's database whenever I upgrade the system using apt/aptitude. >>> >>> Does that package management suite provide the functionality to run a >>> script/shell command when it's quitting? I'd prefer such a solution over >>> the current scripting approach as I all to aften find myself >>> automatically typing "aptitude" instead of "<Myscript>" ... >> >> I think what you need can be achieved with dpkg hooks. > > Yes, but those hooks will be run more often than necessary, since apt > typically invokes dpkg several times during an installation. > >> Hope this hint helps, since I never used them and can't tell you >> exactly where to put them. > > /etc/dpkg/dpkg.cfg is the place for that (or drop a file into > /etc/dpkg/dpkg.cfg.d).
Thank you for that hint. But as you said: dpkg is run multiple time per apt invocation, which doesn't make the option very feasible in my scenario ... no such thing as apt/aptitude hooks? Joh -- 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/in1lnm$91b$1...@dough.gmane.org