hook into rpm install/update/deletion of any package (for etckeeper)
On Mon, May 19, 2008 at 08:02:38PM +0200, Till Maas wrote:
> is it possible to hook into rpm in a way that an arbitray programm is run
> whenever a package is installed, updated or deleted?
> I want to test etckeeper:
> This programm creates a repository for /etc and keeps track of changes that
> are done there via package updates and therefore it needs to hook into rpm as
> far as I can see. Is it maybe possible to do this with something
> like %trigger?
With %trigger you have to specify the package that fires the trigger.
So, no, that cannot be used to catch all packages, only for packages
for which you create a %trigger (in another package).
-- Jos Vos <firstname.lastname@example.org>
-- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
-- Amsterdam, The Netherlands | Fax: +31 20 6948204
fedora-devel-list mailing list