Using the DNF software package manager
This page has been converted from the Fedora Project Wiki and cleaned up for publishing here on the Fedora Docs Portal, but it has not yet been reviewed for technical accuracy. This means any information on this page may be outdated or inaccurate. Reviews for technical accuracy are greatly appreciated. If you want to help, see the README file in the source repository for instructions.
DNF is a software package manager that installs, updates, and removes packages on Fedora and is the successor to YUM (Yellow-Dog Updater Modified).
DNF makes it easy to maintain packages by automatically checking for dependencies and determines the actions required to install packages.
This method eliminates the need to manually install or update the package, and its dependencies, using the
DNF is now the default software package management tool in Fedora.
dnf can be used exactly as
yum to search, install or remove packages.
To search the repositories for a package type:
# sudo dnf search packagename
To install the package:
# dnf install packagename
To remove a package:
# dnf remove packagename
Other common DNF commands include:
autoremove- removes packages installed as dependencies that are no longer required by currently installed programs.
check-update- checks for updates, but does not download or install the packages.
downgrade- reverts to the previous version of a package.
info- provides basic information about the package including name, version, release, and description.
reinstall- reinstalls the currently installed package.
update/upgrade- checks the repositories for newer packages and updates them.
For more DNF commands refer to the man pages by typing
man dnf at the command-line, or DNF Read The Docs
dnf-automatic package is a component that allows automatic download and installation of updates.
It can automatically monitor and report, via e-mail, the availability of updates or send a log about downloaded packages and installed updates.
For more information, refer to the Read the Docs: DNF-Automatic page.
The Fedora system can be upgraded directly with DNF, or with the DNF system upgrade plugin. Refer to the Upgrade document for more details.
DNF can be used to install or remove Language Support. A detailed description with a list of available languages can be found on Language Support Using Dnf page.