dnf

From RaySoft

Documentation

  • man 1 'dnf'

Syntax

dnf [GLOBAL-PARAMETER ...] SUBCOMMAND [PARAMETER ...]

Subcommands & Parameters

Global parameters
The following parameters can be used with the subcommands below:
-c <FILE>, --config=<FILE>
Configuration FILE location.
-y, --assumeyes
Automatically answer yes for all questions.
autoremove
Removes all 'leaf' packages from the system that were originally installed as dependencies of user-installed packages, but which are no longer required by any such package.
info [<PACKAGE>|<MODULE>|<GROUP> ...]
Lists description and summary information about installed and available packages.
install <PACKAGE>|<MODULE>|<GROUP> [...]
Makes sure that the given packages and their dependencies are installed on the system.
list [<PARAMETER> ...] [<PACKAGE> ...]
Prints lists of packages depending on the packages' relation to the system.
--all
Lists all packages, present in the RPMDB, in a repository or both.
--autoremove
List packages which will be removed by the dnf autoremove command.
--installed
Lists installed packages.
--showduplicates
Show duplicate packages in repositories.
remove [<PARAMETER> ...] [<PACKAGE>|<GROUP> ...]
Removes the specified packages from the system along with any packages depending on the packages being removed.
--duplicates
Removes older versions of duplicate packages. To ensure the integrity of the system it reinstalls the newest package.
search <KEYWORD> [...]
Search package metadata for KEYWORDs. Keywords are matched as case-insensitive substrings, globbing is supported.
--showduplicates
Show duplicate packages in repositories.
updateinfo
Display information about update advisories.
upgrade [<PACKAGE>|<MODULE> ...]
Updates each package to the latest version that is both available and resolvable.
--security
Includes packages that provide a fix for a security issue.

Examples

Update the system
dnf updateinfo
dnf -y upgrade
dnf -y autoremove
dnf -y remove --duplicates