Using DNF to install, remove, and update packages on Fedora
By Heidy Ramirez-January 22, 2021
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.
Install packages
To install a package with DNF use the syntax dnf install package_name. For example:
sudo dnf install nanoRemove packages
To remove a package, use the following syntax dnf remove package_name. For example:
sudo dnf remove nanoUpdate and Upgrade packages
You can update and upgrade packages with the dnf upgrade command.
sudo dnf upgradeIf you would like to see a list of the main dnf commands use:
dnf --helpIt’s that simple. Now you can start managing your Fedora shell using DNF.