fc5 install trouble

Matthew Gillen me at mattgillen.net
Mon Apr 3 09:00:05 EDT 2006


yum seems to be smarter about ignoring things that seem to already be
installed.  You might try this:

cd .../RPMS/
yum localinstall *.rpm

Of course, I'm guessing you'll have to break that up into groups of rpms.
Matt

Brad Smith wrote:
> The problem with doing an rpm -Uvh * in a situation like this is that rpm refuses to install any
> packages matched by a glob if one or more of them produces an error and unfortuately rpm treats
> "this package is already installed" as an error. A kludgey, slow, but effective solution might be
> something like this:
> 
> cd /media/cdrom # or whatever
> cd RedHat/RPMS
> for p in *.rpm; do n=$(echo $p | sed 's/\.rpm//'); rpm -q $n || rpm -ivh $p; done
> 
> I haven't tested this, but I think it should work. Like I said, though, it's a bit kludgey. There's
> probably a better solution out there somewhere.
> 
> --Brad
_______________________________________________
Discuss mailing list
Discuss at blu.org
http://olduvai.blu.org/mailman/listinfo/discuss




More information about the Discuss mailing list