http://dnf.readthedocs.io/en/latest/command_ref.html **clean** ''dnf clean dbcache'' Removes cache files generated from the repository metadata. This forces DNF to regenerate the cache files the next time it is run. ''dnf clean expire-cache'' Marks the repository metadata expired. DNF will re-validate the cache for each repo the next time it is used. ''dnf clean metadata'' Removes repository metadata. Those are the files which DNF uses to determine the remote availability of packages. Using this option will make DNF download all the metadata the next time it is run. ''dnf clean packages'' Removes any cached packages from the system. ''dnf clean all'' Does all of the above. **distro-sync** ''dnf distro-sync [...]'' As necessary upgrades, downgrades or keeps selected installed packages to match the latest version available from any enabled repository. If no package is given, all installed packages are considered. **group** ''dnf [options] group [summary] '' Display overview of how many groups are installed and available. With a spec, limit the output to the matching groups. summary is the default groups subcommand. ''dnf [options] group info '' Display package lists of a group. Shows which packages are installed or available from a repo when -v is used. ''dnf [options] group install [--with-optional] ...'' Mark the specified group installed and install packages it contains. Also include optional packages of the group if --with-optional is specified. All mandatory and Default packages will be installed whenever possible. Conditional packages are installed if they meet their requirement. If group is already (partially) installed, command installs missing packages from the group. ''dnf [options] group list ...'' List all matching groups, either among installed or available groups. If nothing is specified list all known groups. Options --installed and --available narrows down the requested list. Records are ordered by display_order tag defined in comps.xml file. Provides a list of all hidden groups by using option --hidden. Provides more detailed information when -v option is used. ''dnf [options] group remove ...'' Mark the group removed and remove those packages in the group from the system which are neither comprising another installed group and were not installed explicitly by the user. ''dnf [options] group upgrade ...'' Upgrades the packages from the group and upgrades the group itself. The latter comprises of installing pacakges that were added to the group by the distribution and removing packages that got removed from the group as far as they were not installed explicitly by the user. **history** ''dnf history [list] [...]'' The default history action is listing information about given transactions in a table. Each can be either a , which specifies a transaction directly, or a .., which specifies a range of transactions, or a , which specifies a transaction by a package which it manipulated. When no transaction is specified, list all known transactions. ''dnf history info [...]'' Describe the given transactions. The meaning of is the same as in the History List Command. When no transaction is specified, describe what happened during the latest transaction. ''dnf history redo '' Repeat the specified transaction. If it is not possible to redo any operation due to the current state of RPMDB, do not redo any operation. ''dnf history rollback '' Undo all transactions performed after the specified transaction. If it is not possible to undo any transaction due to the current state of RPMDB, do not undo any transaction. ''dnf history undo '' Perform the opposite operation to all operations performed in the specified transaction. If it is not possible to undo any operation due to the current state of RPMDB, do not undo any operation. **install** ''dnf install tito-0.5.6-1.fc22'' Install package with specific version. If the package is already installed it will automatically try to downgrade or upgrade to specific version. ''dnf --best install tito'' Install the latest available version of package. If the package is already installed it will automatically try to upgrade to the latest version. If the latest version of package cannot be installed, the installation fail. ''dnf install vim'' DNF will automatically recognize that vim is not a package name, but provide, and install a package that provides vim with all required dependencies. Note: Package name match has precedence over package provides match. ''dnf install https://kojipkgs.fedoraproject.org//packages/tito/0.6.0/1.fc22/noarch/tito-0.6.0-1.fc22.noarch.rpm'' Install package directly from URL. ''dnf install '@Web Server''' Install environmental group ‘Web Server’ ''dnf install /usr/bin/rpmsign'' Install a package that provides /usr/bin/rpmsign file. **list** ''dnf [options] list --extras [...]'' Lists extras, that is packages installed on the system that are not available in any known repository. ''dnf [options] list --obsoletes [...]'' List the packages installed on the system that are obsoleted by packages in any known repository. **repolist** ''dnf [options] repolist [--enabled|--disabled|--all]'' Depending on the exact command, lists enabled, disabled or all known repositories. Lists all enabled repositories by default. Provides more detailed information when -v option is used.