Help - Search - Members - Calendar
Full Version: Remove Rpm Files
Linuxhelp > Support > Technical Support
Kakapo
Hello,
How can I get rid of an installed .rpm file? Let's say I want to uninstall it to install a newer one. Thanks for your help.
hughesjr
if the new file is the same name, but a different version (for example my installed file is rpm-4.1-1 and I want to install rpm-4.2-1) then the command would be:

rpm -Uvh rpm-4.2-1-i386.rpm

(assuming the filename for rpm-4.2-1 is rpm-4.2-1-i386.rpm)

This will upgrade the rpm.

You can remove rpm's like this:

rpm -e rpm-4.1-1

(notice when installing rpm's you use the full filename (rpm-4.2-1-i386.rpm), but when removing rpm's you only use the package name (rpm-4.2-1).

I always use rpm -Uvh to install rpms ... if there is no rpm to upgrade then it does a new install.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.