DNF just like APT is a package manager but built for Fedora. DNF is used on Fedora as a replacement to YUM (Yellow-Dog Updater Modified) and now is its default package manager. In the article, we will go through installing, removing, and upgrading packages for Fedora OS using DNF.
To install a package with DNF use the syntax dnf install package_name. For example:
sudo dnf install nano
To remove a package, use the following syntax dnf remove package_name. For example:
sudo dnf remove nano
You can update and upgrade packages with the dnf upgrade command.
sudo dnf upgrade
If you would like to see a list of the main dnf commands use:
dnf --help
It’s that simple. Now you can start managing your Fedora shell using DNF.