Using the DNF software package manager

    dnf can be used exactly as yum to search, install or remove packages.

    To search the repositories for a package type:

    To install the package:

      To remove a package:

      1. # 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.

      • - provides basic information about the package including name, version, release, and description.

      • upgrade - checks the repositories for newer packages and updates them.

      • exclude - exclude a package from the transaction.

      For more DNF commands refer to the man pages by typing man dnf at the command-line, or DNF Read The Docs

      Automatic Updates

      The 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 document for more details.

      Language Support Using DNF

      DNF can be used to install or remove Language Support. A detailed description with a list of available languages can be found on page.

      The core DNF functionality can be extended with plugins. There are officially supported Core DNF plugins and also third-party . To install them, run

      or

        Excluding Packages From Transactions

        • using the command line
        1. sudo dnf upgrade --exclude=packagename
        • using its configuration files

        You can add a line to to exclude packages:

        This can also be added to the specific repository configuration files in /etc/yum.repos.d/. ) may be used here to list multiple packages, and each specification must be separated by a comma. If you have used this configuration, you can disable it in individual DNF commands using using the --disableexcludes command line switch.

        If you use a GUI update application which does not allow you to specify packages to exclude when they run, this method can be used.

        You can also use the DNF versionlock plugin to limit the packages that are included in a transaction. It allows you to list what versions of particular packages should be considered in a transaction. All other versions of the specified packages will be ignored. The plugin is part of dnf-plugins-core package and can be installed using the command below:

        1. sudo dnf install 'dnf-command(versionlock)'

        To lock the currently installed version of a package, use:

        1. sudo dnf versionlock add package

        To remove the version lock, use:

        The list command can be used to list all locked packages, while the command will delete all locked entries.

        1. DNF Command Reference