Monday 20 August 2018

fedora 15 - RPM thinks something is removed: can't remove, yet thinks something is installed: can't installed


When I attempt to install a package, rpm tells me that it's already installed. When I try to remove that same package, it tells me that it's not installed. Forcing installation fails (presumably because it's already installed), removal cannot be forced. Any idea what's going on here?


[ecarroll@x200s extensions]$ sudo rpm -i /home/ecarroll/Downloads/gnome-shell-frippery-0.1.0-1.noarch.rpm
warning: /home/ecarroll/Downloads/gnome-shell-frippery-0.1.0-1.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 39256cb2: NOKEY
package gnome-shell-frippery-0.1.0-1.noarch is already installed
[ecarroll@x200s extensions]$ sudo rpm -e /home/ecarroll/Downloads/gnome-shell-frippery-0.1.0-1.noarch.rpm
error: package /home/ecarroll/Downloads/gnome-shell-frippery-0.1.0-1.noarch.rpm is not installed

Force install:


[ecarroll@x200s extensions]$ sudo rpm --force -i /home/ecarroll/Downloads/gnome-shell-frippery-0.1.0-1.noarch.rpm
warning: /home/ecarroll/Downloads/gnome-shell-frippery-0.1.0-1.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 39256cb2: NOKEY
[ecarroll@x200s extensions]$ sudo rpm -e /home/ecarroll/Downloads/gnome-shell-frippery-0.1.0-1.noarch.rpm
error: package /home/ecarroll/Downloads/gnome-shell-frippery-0.1.0-1.noarch.rpm is not installed

Force remove:


[ecarroll@x200s extensions]$ sudo rpm --force -e /home/ecarroll/Downloads/gnome-shell-frippery-0.1.0-1.noarch.rpm
rpm: only installation and upgrading may be forced

Answer



Packages that are installed are not referred to by the package filename, you must use their name, version, etc. to refer to them. You can get said information by running rpm -qp against the respective package file.


TL;DR: The problem isn't rpm, it's you.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...