[CentOS] Howto batch sign RPM packages?

Fri Dec 10 10:05:27 UTC 2010
John Doe <jdmls at yahoo.com>

From: Patrick Lists <centos-list at puzzled.xs4all.nl>

> I need to sign a bunch of RPM packages that have  interdepencies:
> build #1, sign #1, install #1, build #2, sign #2, install #2  etc.
> Now I don't want to type in a rather long and  difficult passphrase every
> time one of dozens of packages need to be signed  and I also don't want
> to temporarily remove the passphrase so am looking for  a better solution
> that works unattended after giving the passphrase  once.
> I looked at gpgwrap (part of pgp-tools in Fedora) but from the docs  I
> could not figure out how to make that work.
> Anyone know howto set  this up?

What about: '--passphrase-file file' ?