Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How will remove a package installed through rpm/yum from redhat linux?

user-image
Question added by Muhammad Anzar , DevOps/DevSecOps Architect , Confidential
Date Posted: 2015/03/29

                                     YUM

Step -1 :  yum list all                (Display the list of available packages)

Step -2 :  yum remove package (Remove / Uninstall the specified package)

 

                                         RPM

Step -1 : rpm -qa                   (Display the list of available packages)

Step -2 :  rpm -ev  package    (Remove / Uninstall the specified package)

 

Rajesh Pant
by Rajesh Pant , System Engineer , Tech Mahindra Limited

For Removing pakage go through below :

A.) RPM (Red Hat Pakage Manager) Method

# rpm -e PakageName (Or # rpm --erase PakageName)

(Note : In case don't want to remove dependencies use #rpm --nodeps -e PakageName)

 

B.) YUM (Yellowdog Updater Modified) Method

# yum -e PakageNameor# yum remove PakageName

Abu Nur Muhammad Hasanul Karim
by Abu Nur Muhammad Hasanul Karim , Manager-System Administration , Dhaka Stock Exchange Ltd.

Run

 

 

rpm -qa | grep -i ABCPACKAGE

 

You should then find the exact package name. Then run

 

like "ABCPACKAGE-abs-3.1.1-17.el6.x86_64"

 

command...

rpm -e <package name>

yum remove ABCPACKAGENAME

rpm -e ABCPACKAGE-abs-3.1.1-17.el6.x86_64

 

to uninstall it.

Roshan Firozkhan
by Roshan Firozkhan , IT System Administrator , Emirates Driving Institute

yum remove packagename

 

rpm -e packagename

Amr Mohamed Abdo Eissa
by Amr Mohamed Abdo Eissa , Senior AIX System Engineer , Data & Transaction Services

#rpm -e <package name>       for RPM

 

#yum remove <package name>     for YUM

Jerry John
by Jerry John , Devops Engineer , NeST Technologies

In case of yum:

to search: yum search all <keyword>

to list packages:yum list all

to remove searched or listed package:yum remove <package name>

(care should be taken since yum take dependencies it may also remove some dependencies that is required for the functioning of other applications also)

To remove rpm : rpm  -e <Package name>

Ahsan Khan
by Ahsan Khan , Database Administrator , ibex global

rpm -e package name in redhat linux platform. If you are using yum then write remove with yum.

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.