FC5 & OpenOffice.org

Paul Howarth paul at city-fan.org
Wed Jun 7 22:27:14 UTC 2006


On Wed, 2006-06-07 at 14:06 -0700, Kayvan A. Sylvan wrote:
> On Wed, Jun 07, 2006 at 09:14:11PM +0100, Peter Hillier-Brook wrote:
> > >This should work, though:
> > >$ (echo config gpgcheck 0; echo localinstall *.rpm; echo run) > yum-cmd
> > >$ sudo yum shell yum-cmd
> > >			---Kayvan
> > All done and working. Many thanks to all who helped.
> > 
> 
> This discussion prompted me to create this small script. I call it
> "yuminstall", and it allows me to install unsigned RPM files via yum,
> with the idea that if there are more dependencies, yum will find and
> install them.
> 
> -------------------------
> #!/bin/sh
> 
> TMP=/var/tmp/yum$$
> 
> cat > $TMP << EOF
> config gpgcheck 0
> localinstall ${1+"$@"}
> run
> EOF
> 
> yum shell $TMP
> rm -f $TMP
> -------------------------

An alternative approach would be to make sure you have gpgcheck=1 for
all repos defined in /etc/yum.repos.d/*.repo, then put gpgcheck=0
in /etc/yum.conf. You could then use the regular "yum localinstall"
command to install unsigned RPMs.

Paul.





More information about the fedora-list mailing list