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

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

 



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@xxxxxxxxxxxxxx/msg00193.html


and modifying it for your needs.
-sv


-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux