Yum and DNF

What are Yum and DNF?

Yum and DNF are two popular package managers that are used to install, update and remove packages on Linux systems. While Yum is the older of the two, DNF is the newer version that offers more features and better performance. DNF stands for Dandified Yum, and same as YUM it is also a package manager for Linux systems. While Yum is the default package manager for Red Hat-based distributions such as CentOS and Fedora, DNF is the newer version of Yum which is being developed for future use in Red Hat-based distributions.

How Does YUM Work?

YUM (Yellowdog Updater, Modified) is a powerful command-line tool used to manage packages on Linux systems. It allows users to install, update, and remove packages from a centralized repository. YUM also provides the ability to search for packages, list installed packages, and even check for available updates. With YUM, users can quickly and easily manage their system’s software with just a few commands. This makes it an invaluable tool for system administrators who need to keep their systems up-to-date and secure.

DNF utility

The dnf utility that is provided to manage software, on RHEL 8/9, CentOS 8 and Oracle Linux 8/9 is based on Dandified Yum (DNF). DNF is a rewrite of YUM, the “Yellowdog Updater, Modified.” You can use dnf to install or upgrade RPM packages, while automatically handling package dependencies and requirements.

1. Install package with Yum :

# yum install httpd -y

2. Remove package with Yum :

# yum remove httpd -y

3. Install package with DNF:

# dnf install httpd -y

4. Remove package with DNF:

# dnf remove httpd -y


With the rise of Linux systems, managing software packages is becoming more and more important. YUM and DNF are two of the most popular package managers that can be used to install, update, and remove software on your Linux system. While both offer a great range of features and benefits, it is important to understand the pros and cons of each before deciding which one to use.

Leave a Comment