FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 05-19-2008, 06:02 PM
Till Maas
 
Default hook into rpm install/update/deletion of any package (for etckeeper)

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?

Regards,
Till
--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 05-19-2008, 06:31 PM
Till Maas
 
Default hook into rpm install/update/deletion of any package (for etckeeper)

On Mon May 19 2008, seth vidal wrote:

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

I knew there are yum plugins and etckeeper will probably need one, but it
would not be enough for me, because I also often install packages via rpm
when I built them myself.

Regards,
Till
--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 05-19-2008, 07:32 PM
Till Maas
 
Default hook into rpm install/update/deletion of any package (for etckeeper)

On Mon May 19 2008, seth vidal wrote:
> On Mon, 2008-05-19 at 20:31 +0200, Till Maas wrote:

> > I knew there are yum plugins and etckeeper will probably need one, but it
> > would not be enough for me, because I also often install packages via rpm
> > when I built them myself.
>
> May I Introduce you to yum install /path/to/some/file.rpm

Thank you, but this way I fear that I install unsigned rpms from a repository
because my locally built rpms are not signed (otherwise they are broken,
because rpms does not support the keylength of my gpg key) and therefore
afaik I had to disable the check for gpg signatures.

Regards,
Till
--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 05-19-2008, 07:42 PM
Todd Zullinger
 
Default hook into rpm install/update/deletion of any package (for etckeeper)

Till Maas wrote:
> Thank you, but this way I fear that I install unsigned rpms from a
> repository because my locally built rpms are not signed (otherwise
> they are broken, because rpms does not support the keylength of my
> gpg key) and therefore afaik I had to disable the check for gpg
> signatures.

So no signature is preferable to creating a key of more standard size
for use in signing your custom packages?

--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
No sense being pessimistic, it probably wouldn't work anyway

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 05-19-2008, 08:12 PM
Till Maas
 
Default hook into rpm install/update/deletion of any package (for etckeeper)

On Mon May 19 2008, Todd Zullinger wrote:
> Till Maas wrote:
> > Thank you, but this way I fear that I install unsigned rpms from a
> > repository because my locally built rpms are not signed (otherwise
> > they are broken, because rpms does not support the keylength of my
> > gpg key) and therefore afaik I had to disable the check for gpg
> > signatures.
>
> So no signature is preferable to creating a key of more standard size
> for use in signing your custom packages?

I can still provide gpg signatures with gpg:
gpg --armor --detach-sign foo.rpm
This also allows the receipient to check the signature without giving my key
ultimate trust for any rpm, which is afaik what happens when someone imports
a gpg key into rpm. Also do not distribute rpms via unsecure channels to my
machines and having a third private gpg key for this without gaining much.

Regards,
Till
--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 

Thread Tools




All times are GMT. The time now is 04:52 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org