Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Remove Rpm Files
Kakapo
post Oct 21 2003, 07:54 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 18-October 03
Member No.: 1,640



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.
Go to the top of the page
 
+Quote Post
hughesjr
post Oct 22 2003, 06:40 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



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.


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd October 2017 - 09:24 PM