Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

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

user-image
Question ajoutée par Muhammad Anzar , DevOps/DevSecOps Architect , Confidential
Date de publication: 2015/03/29
Utilisateur supprimé
par Utilisateur supprimé

                                     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
par 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
par 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
par Roshan Firozkhan , IT System Administrator , Emirates Driving Institute

yum remove packagename

 

rpm -e packagename

Amr Mohamed Abdo Eissa
par 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
par 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
par 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