DNF

DNF or Dandified YUM is the next-generation version of the Yellowdog Updater, Modified (yum), a package manager for .rpm-based linux distributions

Install a package

dnf install PACKAGE

Reinstall a package

dnf reinstall PACKAGE

Revert a package to the previous version

dnf downgrade PACKAGE

Uninstall a package

dnf remove PACKAGE

Remove installed dependencies that are no longer required

dnf autoremove

Search for a package

dnf search PACKAGE

Provide information about a package

dnf info PACKAGE

Check for updates without installing the packages

dnf check-update

Check and perform updates

dnf upgrade

Group command

List available groups

dnf group list

Install a group

dnf group install "GROUP_NAME"

Remove a group

dnf group remove "GROUP_NAME"

Configuration file

DNF by default uses the global configuration file at /etc/dnf/dnf.conf and all *.repo files found under /etc/yum.repos.d. The latter is typically used for repository configuration and takes precedence over global configuration.

The configuration file has INI format consisting of section declaration and name=value options below each on separate line. There are two types of sections in the configuration files: main and repository.

Main section defines all global configuration options. The repository sections define the configuration for each (remote or local) repository. The section name of the repository in brackets serve as repo ID reference and should be unique across configuration files. The minimal repository configuration file should aside from repo ID consists of baseurl, metalink or mirrorlist option definition.