English French
The most useful DNF commands
This sections lists the most useful commands provided by the *dnf* utility. For a complete list of commands, options, and their syntax, see the *dnf*(8) man page.
*dnf help _command_*
Displays detailed information about a command.
$ *dnf help _upgrade_*
upgrade [PACKAGE...]
upgrade a package or packages on your system
alias: update
*dnf upgrade*
Upgrades all packages on the system to the latest version available.
# *dnf upgrade*
Last metadata expiration check: 1:09:32 ago on Thu Dec 14 09:20:48 2017.
Dependencies resolved.
Nothing to do.
Complete!
*dnf upgrade _package_name_*
Upgrades a package to the latest version available.
# *dnf upgrade _dia_*
Last metadata expiration check: 1:11:26 ago on Thu Dec 14 09:20:48 2017.
Dependencies resolved.
Nothing to do.
Complete!
*dnf install _package_name_*
Installs a package.
# *dnf install _dia_*
Last metadata expiration check: 1:07:19 ago on Thu Dec 14 09:20:48 2017.
Dependencies resolved.
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
dia x86_64 1:0.97.3-5.fc24 fedora 4.2 M
libart_lgpl x86_64 2.3.21-15.fc25 fedora 71 k
Transaction Summary
=============================================================================
Install 2 Packages
Total download size: 4.2 M
Installed size: 18 M
Is this ok [y/N]: *y*
[... output truncated ...]
Installed:
dia.x86_64 1:0.97.3-5.fc24 libart_lgpl.x86_64 2.3.21-15.fc25
Complete!
*dnf remove _package_name_*
Uninstalls a package.