troubleshooting Question

rpm -qa | grep -i <name of package> shows package installed. rpm -e says package isn't installed

Avatar of lolaferrari
lolaferrariFlag for United Kingdom of Great Britain and Northern Ireland asked on
Linux Distributions
2 Comments1 Solution167 ViewsLast Modified:
RPM already installed not installed.

Today my colleague upgraded an RPM to a later version on Redhat 5.8 running version 4.4.2 of RPM and we used a verified rpm . It's a relocatable rpm and although he claims to have used the --prefix option when running rpm -Uvh the RPM installed in the default location /usr/local rather than /opt. If I verify the package with rpm -Vp it lists the contents of the rpm as as being successfully installed in the default location /usr/local and rpm -qa | grep -i <package> is showing it as installed. This default location isn't where it should be and the older version installed in /opt either has to be removed and a clean install performed or else upgraded. The now wants to remove the version he upgraded to and perform a clean install without bothering with the upgrade option but rpm -e <nameofpackage> says the package is not installed.  I've checked the contents of the rpm and it installs cleanly to one directory and not multiple directories so deleting the folder is an option but to perform a clean install won't work unless rpm is updated. Is there a way to force uninstallation of all version of the rpm? would rpm -ivh --nodeps?  Any help would be really appreciated.
Seth Simmons
Lead Systems Administrator
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros