fc5 install trouble

Brad Smith brads at redhat.com
Mon Apr 3 08:51:36 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFEMRpYDvp49DvQ8kcRAo/uAJ4rUgHwi8ywOd9GvyS9nC1Wa6jOjQCeL0en
MTmK7NGGJ3EdP5dBGz3h7Rw=
=6bw7
-----END PGP SIGNATURE-----



More information about the Discuss mailing list