How To Remove/Uninstall Software packages from CentOS, RHEL, Fedora?

How To Remove/Uninstall Software packages from CentOS, RHEL, Fedora?

 

This post was last updated on August 1st, 2020 at 12:20 pm

Different Linux distribution comes with different tools to manage software packages on it. RPM-based Linux distributions such as CentOS, RHEL, and Fedora use the yum package manager to install, remove, and manage packages on them.

In this article, we will discuss removing an installed package from the command line in CentOS, RHEL, and Fedora. This also applies to other RPM-based Linux distributions.

Yellow Dog Updater Modified (YUM)

YUM was originally developed for Yellow Dog Linux(YDL) as a replacement for yellow dog updater. Later it was used by Redhat and today it becomes the default tool for various operating systems like CentOS, OpenSUSE, Mandrake Linux including Red Hat Enterprise Linux, etc.

Dandified Yellow Dog Updater Modified (DNF)

DNF is an updated version of yum that is used to install, remove, and update packages. It is the default package manager of fedora since fedora 22. It was launched to address issues like poor performance, high memory usage, and slowness of its iterative dependencies resolution in Yum.

RPM (Red Hat Package Manager)

Yum and Dnf are front ends these can fetch packages from a remote location and resolves the dependencies. While rpm is a lower level tool that works with .rpm packages like dpkg, which works with .deb files in debian based systems.

How to remove a package from CentOS, RHEL?

To remove a package in CentOS or RHEL, use the following command in your terminal –

sudo yum erase package_name

For example –

sudo yum erase httpd

Remove a package using rpm package manager

You can use rpm command to remove a package –

sudo rpm -e package_name

or

sudo rpm --erase package_name

For example-

sudo rpm -e httpd

How to remove a package from fedora?

To remove a package in fedora use the following command in your terminal. Execute all the commands with superuser privileges –

dnf remove package_name

For example-

dnf remove httpd

Use the rpm package manager to remove a package in Fedora

You can also use rpm command in Fedora to remove a package –

rpm -e package_name

or

rpm --erase package_name

For example –

rpm -e httpd

Conclusion

Now by reading this article you are able to remove a software package from an RPM-based Linux distribution. If you have any thoughts on the topic you can share it with us in the comments below.

Previous How To Remove/Uninstall Software Packages From Debian, Ubuntu, Linux Mint?
Next How to Install ADB Fastboot on Linux
 

About author

You might also like

How To 0 Comments

Expect Scripts

This post was last updated on July 9th, 2020 at 04:55 pmHow to send escape characters through Expect http://mini.net/tcl/3038 How to send escape characters through Expect http://mini.net/tcl/201 Expect Send Function

How To 0 Comments

Kickstarter

This post was last updated on July 9th, 2020 at 01:54 pmks.cfg stuff: http://www.cpqlinux.com/ks-getting-started.html ks-merged-ks.cfg.html – A kickstart that works for 7.2, AS2.1, 7.3, 8.0, and 9 ks-create-merged-ks.cfg.sh.html – This

Installation 0 Comments

Automated Installation of Red Hat Linux 7, 8 and AS 2.1 via PXE

This post was last updated on May 26th, 2020 at 09:33 pmThis document discusses the automated installation of Red Hat Linux 7.2, 7.3, 8.0, and AS 2.1 via PXE. Overview

0 Comments

No Comments Yet!

You can be first to comment this post!

Leave a Reply