DNF Command Reference¶
Useful commands for Fedora’s DNF package manager.
Tested on: Fedora 44 KDE Plasma
Core Package Management¶
Install software.
Remove (uninstall) software.
Upgrade software.
Downgrade software.
Reinstall software.
Remove software and install another in one transaction.
Remove all unneeded packages originally installed as dependencies.
Install build dependencies for a package or spec file.
Install debuginfo packages.
Change the reason for an installed package.
Search and Information¶
Search for software matching all specified strings.
List packages depending on their relation to the system with additional details.
List packages depending on their relation to the system.
Find what package provides the given value.
Search for packages matching various criteria.
List groups of installed packages not required by other installed packages.
Show package changelogs.
Print a list of unresolved dependencies for repositories.
System Updates and Upgrades¶
Check for available package upgrades.
Upgrade or downgrade installed software to the latest available versions.
Prepare the system for an upgrade to a new release.
Determine whether the system or systemd services need restarting.
Offline Operations¶
Manage offline transactions.
Store an upgrade transaction to be performed offline.
Store a distro-sync transaction to be performed offline.
Repository and Configuration Management¶
Manage repositories.
Manage configuration.
Manage Copr repositories (add-ons provided by users/community/third-party).
Synchronize a remote DNF repository to a local directory.
Manage a directory with repodata or with rpm packages.
Generate the metadata cache.
Remove or expire cached data.
Transactions and History¶
Do transaction.
Manage transaction history.
Replay a transaction that was previously stored in a directory.
Group and Module Management¶
Manage comps groups.
Manage comps environments.
Manage modules.
Advanced Management¶
Manage advisories.
Check for problems in the packagedb.
Download software to the current directory.
Manage versionlock configuration.
Common Aliases¶
Alias for check-upgrade.
Alias for group.
Alias for repo info.
Alias for repo list.
Alias for advisory.
Alias for upgrade --minimal.