[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Finnishing apt/aptitude runs with a script?



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).

Sven


Reply to: