Can't add or remove packages in FC4
jkosin at beta.intcomgrp.com
Wed Jul 20 17:11:21 UTC 2005
-----BEGIN PGP SIGNED MESSAGE-----
BRUCE STANLEY wrote:
|--- James Kosin <jkosin at beta.intcomgrp.com> wrote:
|>-----BEGIN PGP SIGNED MESSAGE-----
|>BRUCE STANLEY wrote:
|>|I don't know if this is related or not but I had
|>|a weird problem with rpm last night.
|>|I installed the gnuchess program from the Fedora
|>|Extras and this is what happen:
|>| rpm -iv gnuchess-*
|>| Everyting installed without errors.
|>| Tried to run program unde KDE & Gnome
|>| to no avail.
|>| Went to remove the pacakage via
|>| rpm -ev gnuchess-*
|>| it told me that the package was not
|>This is correct!
|>Although, I'm not sure everyone knows this... -e
|>option does not take
|>wild cards. The -i allows it because they are
|>looking for files and
|>when you remove a package you are not talking file
|>Best this for this would be to
|>~ rpm -qa | grep gnuchess-*
|>Then take that file list and run them to
|>~ rpm -e ....
|>| Ran another rpm -iv ... and rpm told me
|>| the package was already installed.
|>Ok, it already is installed! Remember, we are
|>talking packages not
|>| Ran rpm --rebuilddb
|>| The rpm system still things that the package
|>| in not installed ( -e ) and installed ( -i )
|>| at the same time.
|>|I wound up doing a rpm -qpl gnuchess-* and
|>|the files/dirs myself by hand .... :-(
|>:-( Bad idea...
|Huh? The wild card on the gnuchess-*.rpm name is
|suppose to be resolved by the shell before the
|rpm command sees it.
Ok, if that is the case, then the command would look like this:
~ rpm -ev gnuchess-3.0.0.extra.fc4.i386.rpm
Which is not how you remove a package...
Here is an example.
~ I have a package called 'ecpa-1.57-1.i386.rpm'
When I install it I use 'rpm -ivh epca-1.57-1.i386.rpm'
When I remove the rpm I use 'rpm -e epca-1.57-1' ... this is just
how the RPM database works for this RPM and most, if not all others.
If you specify the file (complete name) you will get not insralled;
because the database needs to match the parameter exactly when you remove.
I believe you could also leave the version number off and I could use
'rpm -e epca' .... but, you have to be careful with this as you will
remove all versions... or maybe it complains... haven't tried with
multiple epca packages installed.
Anyway, I hope I'm clearing things up.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the users