DNF means Dandified YUM is the next generation version of YUM for Rpm Based Distributions like Fedora.  In this article we will known about the DNF commands.

dnf commands

Fedora defaultly comes with DNF, But we have to install it on Centos and RHEL.Before we going to install DNF in Centos and RHEL we have to install Epel Repository by using the following command.

epel install

Now install DNF Package by using yum command

We can check version by using the following command.

The default syntax for DNF command as follows

The List of available commands are as follows
dnf commands

Install, Update and Remove packages with DNF

We can install Packages by using DNF command as follows

dnf install

We can update packages by using dnf update command as follows

We can also update Linux Version by using dnf update command. We can remove packages by using dnf remove command as follows

dnf remove

Search and List Packages with DNF commands

We can search for required packages in the Repositories by using search command as follows

dnf search

We can also list available and installed packages by using dnf command as follows

dnf list

Package Information with DNF

We can also find the detailed information about particular package with dnf command as follows

dnf commands info

repositories List with DNF commands

We can find the Repositories available in our linux machine by using dnf command along with argument repolist
dnf repolist

We can also list all the enabled and disabled repositories by using repolist all command as follows

dnf repolist all

Install, Update and Remove Group packages with DNF

Group package means collection of packages that useful for common purpose like Develoment Tools etc,. We can list all the available group packages by using the following command

dnf group list

We can install group packages by using groupinstall command

dnf groupinstall
Similarly we can update and remove packages by using groupupdate and groupremove commands.



Please enter your comment!
Please enter your name here