hook into rpm install/update/deletion of any package (for etckeeper)

seth vidal skvidal at fedoraproject.org
Mon May 19 18:11:43 UTC 2008


On Mon, 2008-05-19 at 20:02 +0200, Till Maas wrote:
> Hiyas,
> 
> 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:
> http://kitenet.net/~joey/code/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?
> 

don't do it in a trigger.

You may consider looking at a yum plugin like this one:

http://www.mail-archive.com/yum-devel@linux.duke.edu/msg00193.html


and modifying it for your needs.
-sv





More information about the fedora-devel-list mailing list