May06

Sign multiple rpms with one command

Posted by Karanbir Singh on 06/May/2011  ~  Posted in: Linux, Sysadmin

Trying to sign a bunch of rpms usually means having to type in your password for the gpg key multiple times, once for each rpm. However, you can avoid doing that with this :

rpm --resign `find . -name *.rpm`

That will only prompt you once for the key passphrase, and sign all the packages it finds under that directory.

- KB