Can't add or remove packages in FC4

James Kosin jkosin at beta.intcomgrp.com
Wed Jul 20 17:11:21 UTC 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
BRUCE STANLEY wrote:

|
|--- James Kosin <jkosin at beta.intcomgrp.com> wrote:
|
|>-----BEGIN PGP SIGNED MESSAGE-----
|>Hash: SHA1
|>
|>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
|>|installed.
|>
|>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
|>names anymore.
|>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
|>that
|>|      the package was already installed.
|>|
|>|      Huh?
|>
|>Ok, it already is installed!  Remember, we are
|>talking packages not
|>files here....
|>
|>|
|>|      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
|>removed
|>|the files/dirs myself by hand ....  :-(  
|>|
|>:-(   Bad idea...
|>
|>|
|>|
|>Good Luck,
|>James Kosin
|
|
|
|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.

James
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
iD8DBQFC3oW4kNLDmnu1kSkRAiouAJ9U6kZxWi3m8201Ju+prUq1hBW2LQCggDjv
H/k03Yz9baNvucaZ7weTdFo=
=o1Em
-----END PGP SIGNATURE-----




More information about the fedora-list mailing list