Re: Passing passphrase to rpm

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

 



On Tue, 22 Feb 2005 11:09:54 +0200, Mihai Maties <mihai@xxxxxxxx> wrote:
> Issue at short:
> 
> I would like to find out if there is a way to provide the passphrase
> automatically to rpm so when signing multiple packages I wouldn't have to
> type the passphrase again and again.
> 
> Issue at large:
> 
> I have a script that builds some rpms and then group them in sfx sh installers
> (rpm.run). The tricky thing is that the script works like this:
> 
>  10. build a few rpms
>  20. turn all of them into 1 rpm.run file
>  30. cleanup
>  40. goto 10 until all the rpm.run files are created
> 
> I wouldn't have a problem to type the passphrase if it would sign all rpms in
> one session, but this is not possible because the script only builds a few
> rpms at the time. So if I would have the following line:
> 
>  15. sign the built rpms
> 
> I would still need to type the passphrase for every rpm.run file (about 20
> times).
> 
> It would be kind of hard to rewrite the script to build all the rpms first and
> then turn them progressively to rpm.run so the only acceptable way would be
> to somehow pass the passphrase to rpm. I know that rpm does not work with
> gpg-agent, so is there any other way to trick it to not request the
> passphrase anymore ?
> 
> My planned alternatives would be:
> 1. ask you guys (duh!)
> 2. using 'expect' (I hope it works, I never used it before)
> 3. patch rpm to not request the passphrase anymore
>
Expect will work fine, but, just so you know there is a Perl module
Expect.pm, which if your more comfortable with perl rather than tcl
you may prefer.  Don't know if there is a similar lib for python.

Cheers...james 
> Mihai
> 
> --
> This message was scanned for spam and viruses by BitDefender.
> For more information please visit http://linux.bitdefender.com/
> 
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/rpm-list
>

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux