.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "DNF5" "8" "Apr 18, 2025" "" "dnf5" .SH NAME dnf5 \- DNF5 Package Management Utility .SH SYNOPSIS .sp \fBdnf5 [options] [...]\fP .SH DESCRIPTION .sp \X'tty: link https://github.com/rpm-software-management/dnf5/'\fI\%DNF5\fP\X'tty: link' is the new version of \X'tty: link https://github.com/rpm-software-management/dnf/'\fI\%DNF\fP\X'tty: link', a package manager for RPM\-based Linux distributions. It has been completely rewritten in C++ aiming for better performance and reducing external dependencies. .SH COMMANDS .sp Here is the list of the available commands. For more details see the separate man page for the specific command, f.e. \fBman dnf5 install\fP\&. .INDENT 0.0 .TP .B \fI\%advisory\fP .nf Manage advisories. .fi .sp .TP .B \fI\%autoremove\fP .nf Remove unneeded packages. .fi .sp .TP .B \fI\%check\fP .nf Check for problems in the package database. .fi .sp .TP .B \fI\%check\-upgrade\fP .nf Check for available package upgrades. .fi .sp .TP .B \fI\%clean\fP .nf Remove or invalidate cached data. .fi .sp .TP .B \fI\%distro\-sync\fP .nf Upgrade or downgrade installed packages to the latest available version. .fi .sp .TP .B \fI\%downgrade\fP .nf Downgrade packages. .fi .sp .TP .B \fI\%download\fP .nf Download packages. .fi .sp .TP .B \fI\%environment\fP .nf Manage comps environments. .fi .sp .TP .B \fI\%group\fP .nf Manage comps groups. .fi .sp .TP .B \fI\%history\fP .nf Manage transaction history. .fi .sp .TP .B \fI\%info\fP .nf Provide detailed information about installed or available packages. .fi .sp .TP .B \fI\%install\fP .nf Install packages. .fi .sp .TP .B \fI\%leaves\fP .nf List groups of leaf packages. .fi .sp .TP .B \fI\%list\fP .nf List installed or available packages. .fi .sp .TP .B \fI\%makecache\fP .nf Generate the metadata cache. .fi .sp .TP .B \fI\%mark\fP .nf Change the reason of an installed package. .fi .sp .TP .B \fI\%module\fP .nf Manage modules. .fi .sp .TP .B \fI\%offline\fP .nf Manage offline transactions. .fi .sp .TP .B \fI\%provides\fP .nf Find what package provides the given value. .fi .sp .TP .B \fI\%reinstall\fP .nf Reinstall packages. .fi .sp .TP .B \fI\%remove\fP .nf Remove packages. .fi .sp .TP .B \fI\%replay\fP .nf Replay stored transactions. .fi .sp .TP .B \fI\%repo\fP .nf Manage repositories. .fi .sp .TP .B \fI\%repoquery\fP .nf Search for packages in repositories. .fi .sp .TP .B \fI\%search\fP .nf Search for packages using keywords. .fi .sp .TP .B \fI\%swap\fP .nf Remove software and install another in the single transaction. .fi .sp .TP .B \fI\%system\-upgrade\fP .nf Upgrade the system to a new major release. .fi .sp .TP .B \fI\%upgrade\fP .nf Upgrade packages. .fi .sp .TP .B \fI\%versionlock\fP .nf Protect packages from updates to newer versions. .fi .sp .UNINDENT .SS Plugin commands .sp Here is the list of the commands available as plugins. These are available after installing the \fBdnf5\-plugins\fP package. .INDENT 0.0 .TP .B \fI\%automatic\fP .nf Alternative CLI to \fBdnf upgrade\fP suitable to be executed automatically and regularly from systemd timers, cron jobs and similar. .fi .sp .TP .B \fI\%builddep\fP .nf Install missing dependencies for building an RPM package. .fi .sp .TP .B \fI\%changelog\fP .nf Show package changelogs. .fi .sp .TP .B \fI\%config\-manager\fP .nf Manages main configuration, repositories configuration, and variables. .fi .sp .TP .B \fI\%copr\fP .nf Manage Copr repositories (add\-ons provided by users/community/third\-party). .fi .sp .TP .B \fI\%needs\-restarting\fP .nf Determine whether the system should be rebooted. .fi .sp .TP .B \fI\%repoclosure\fP .nf Display a list of unresolved dependencies for repositories. .fi .sp .TP .B \fI\%reposync\fP .nf Synchronize packages and metadata of a remote DNF repository to a local directory. .fi .sp .UNINDENT .SH OPTIONS .sp Following options are applicable in the general context for any \fBdnf5\fP command: .INDENT 0.0 .TP .B \fB\-\-assumeno\fP .nf Automatically answer no for all questions. .fi .sp .UNINDENT .INDENT 0.0 .TP .B \fB\-\-best\fP .nf Try the best available package versions in transactions. .fi .sp .sp Specifically during dnf upgrade, which by default skips over updates that can not be installed for dependency reasons, the switch forces \fBDNF5\fP to only consider the latest packages. When running into packages with broken dependencies, \fBDNF5\fP will fail giving the reason why the latest version can not be installed. .sp Note that the use of the newest available version is only guaranteed for the packages directly requested (e.g. as a command line arguments), and the solver may use older versions of dependencies to meet their requirements. .TP .B \fB\-C, \-\-cacheonly\fP .nf Use only cached data for working with packages and repository metadata. Cache won\(aqt be updated, even if it is expired. .fi .sp .TP .B \fB\-\-comment=COMMENT\fP .nf Add a comment to the transaction history. .fi .sp .UNINDENT .INDENT 0.0 .TP .B \fB\-\-config=CONFIG_FILE_PATH\fP .nf Define configuration file location. .fi .sp .TP .B \fB\-\-debugsolver\fP .nf Dump additional data from solver for debugging purposes. Data are saved in \fB\&./debugdata\fP\&. .fi .sp .TP .B \fB\-\-disable\-plugin=PLUGIN_NAME,...\fP .nf Disable specified libdnf5 library plugins for the purpose of the current \fBDNF5\fP command. This is a list option which can be specified multiple times. Accepted values are names, or a glob of names. .fi .sp .TP .B \fB\-\-disable\-repo=REPO_ID,...\fP .nf Temporarily disable active repositories for the purpose of the current \fBDNF5\fP command. This is a list option which can be specified multiple times. Accepted values are ids, or a glob of ids. .fi .sp .TP .B \fB\-\-dump\-main\-config\fP .nf Print main configuration values to stdout. .fi .sp .TP .B \fB\-\-dump\-repo\-config=REPO_ID,...\fP .nf Print repository configuration values to stdout. This is a list option which can be specified multiple times. Accepted values are ids, or a glob of ids. .fi .sp .TP .B \fB\-\-dump\-variables\fP .nf Print variable values to stdout. .fi .sp .TP .B \fB\-\-enable\-plugin=PLUGIN_NAME,...\fP .nf Enable specified libdnf5 library plugins for the purpose of the current \fBDNF5\fP command. This is a list option which can be specified multiple times. Accepted values are names, or a glob of names. .fi .sp .TP .B \fB\-\-enable\-repo=REPO_ID,...\fP .nf Temporarily enable additional repositories for the purpose of the current \fBDNF5\fP command. This is a list option which can be specified multiple times. Accepted values are ids, or a glob of ids. .fi .sp .TP .B \fB\-\-forcearch=ARCH\fP .nf Force the use of a specific architecture. \fI\%See\fP \fBdnf5\-forcearch(7)\fP for more info. .fi .sp .UNINDENT .INDENT 0.0 .TP .B \fB\-h, \-\-help\fP .nf Show the help. .fi .sp .TP .B \fB\-\-installroot=ABSOLUTE_PATH\fP .nf Setup installroot path. Absolute path is required. \fI\%See\fP \fBdnf5\-installroot(7)\fP for more info. .fi .sp .UNINDENT .INDENT 0.0 .TP .B \fB\-\-no\-best\fP .nf Do not limit the transaction to the best candidates only. .fi .sp .TP .B \fB\-\-no\-docs\fP .nf Do not install any files that are marked as a documentation (which includes man pages and texinfo documents). It sets the \fBRPMTRANS_FLAG_NODOCS\fP flag. .fi .sp .TP .B \fB\-\-no\-gpgchecks\fP .nf Skip checking OpenPGP signatures on packages (if \fBRPM\fP policy allows that). .fi .sp .TP .B \fB\-\-no\-plugins\fP .nf Disable all libdnf5 plugins. .fi .sp .TP .B \fB\-q, \-\-quiet\fP In combination with a non\-interactive command, shows just the relevant content. Suppresses messages notifying about the current state or actions of \fBDNF5\fP\&. .TP .B \fB\-\-refresh\fP .nf Force refreshing metadata before running the command. .fi .sp .TP .B \fB\-\-repo=REPO_ID,...\fP .nf Enable just specified repositories. This is a list option which can be specified multiple times. Accepted values are ids, or a glob of ids. .fi .sp .TP .B \fB\-\-repofrompath=REPO_ID,REPO_PATH\fP Specify a repository to add to the repositories only for this run. Can be used multiple times. .sp The new repository id is specified by \fBREPO_ID\fP and its baseurl by \fBREPO_PATH\fP\&. Variables in both values are substituted before creating the repo. .sp The configuration of the new repository can be adjusted using options \fB\-\-setopt=REPO_ID.option=value\fP\&. .sp If you want only packages from this repository to be available, combine this option with \fB\-\-repo=REPO_ID\fP switch. .TP .B \fB\-\-releasever=RELEASEVER\fP .nf Override the value of the distribution release in configuration files. This can affect cache paths, values in configuration files and mirrorlist URLs. .fi .sp .TP .B \fB\-\-setopt=[REPO_ID.]OPTION=VALUE\fP .nf Override a configuration option from the configuration file. The \fBREPO_ID\fP parameter is used to override options for repositories. .fi .sp .sp Values for the options like \fBexcludepkgs\fP, \fBincludepkgs\fP, \fBinstallonlypkgs\fP and \fBtsflags\fP are appended to the original value, they do not override it. However, specifying an empty value (e.g. \fB\-\-setopt=tsflags=\fP) will clear the option. .TP .B \fB\-\-setvar=VAR_NAME=VALUE\fP .nf Override a \fBDNF5\fP variable value, like \fBarch\fP, \fBreleasever\fP, etc. .fi .sp .TP .B \fB\-\-show\-new\-leaves\fP .nf Show newly installed leaf packages and packages that became leaves after a transaction. .fi .sp .UNINDENT .INDENT 0.0 .TP .B \fB\-\-use\-host\-config\fP .nf Use configuration files and variable definitions from the host system rather than the installroot. \fI\%See\fP \fBdnf5\-installroot(7)\fP for more info. .fi .sp .UNINDENT .INDENT 0.0 .TP .B \fB\-\-version\fP .nf Display the version of the dnf5 application and libdnf5 library, along with successfully loaded plugins and their versions, and then exit. .fi .sp .TP .B \fB\-y, \-\-assumeyes\fP .nf Automatically answer yes for all questions. .fi .sp .TP .B \fB\-x PACKAGE\-SPEC,..., \-\-exclude=PACKAGE\-SPEC,...\fP .nf Exclude packages specified in \fBPACKAGE\-SPEC\fP arguments from the transaction. This is a list option. .fi .sp .UNINDENT .SH METADATA SYNCHRONIZATION .sp Correct operation of \fBDNF5\fP depends on having an access to up\-to\-date data from the all enabled repositories, but contacting remote mirrors on every operation considerably slows it down and costs bandwidth for both the client and the repository provider. The \fBmetadata_expire\fP repository configuration option is used by \fBDNF5\fP to determine whether a particular local copy of repository data is due to be re\-synced. It is crucial that the repository providers set the option well, namely to a value where it is guaranteed that if particular metadata was available in time \fBT\fP on the server, then all packages it references will still be available for download from the server in time \fBT + metadata_expire\fP\&. .sp To further reduce the bandwidth load, some of the commands where having up\-to\-date metadata is not critical (e.g. the \fBgroup list\fP command) do not look at whether a repository is expired and whenever any version of it is locally available to the user\(aqs account, it will be used. .sp \fI\%Refer to the\fP \fBdnf5\-caching(7)\fP for more info regarding metadata and packages caching. .SH CONFIGURATION FILES REPLACEMENT POLICY .sp The updated packages could replace the old modified configuration files with the new ones or keep the older files. Neither of the files are actually replaced. To the conflicting ones \fBRPM\fP gives additional suffix to the origin name. Which file should maintain the true name after transaction is not controlled by package manager, but is specified by each package itself, following packaging guideline. .SH EXIT CODES .sp The \fBdnf5\fP command in general exits with the following return values: .INDENT 0.0 .TP .B \fI0\fP .nf Operation was successful. .fi .sp .TP .B \fI1\fP .nf An error occurred during processing of the command. .fi .sp .TP .B \fI2\fP .nf An error occurred during parsing the arguments. .fi .sp .UNINDENT .sp Other exit codes could be returned by the specific command itself, see its documentation for more info. .SH FILES .INDENT 0.0 .TP .B \fBCache Files\fP /var/cache/libdnf5/ .TP .B \fBMain Configuration\fP /etc/dnf/dnf.conf .TP .B \fBRepository Configuration\fP /etc/yum.repos.d/ .TP .B \fBRepository Persistence\fP /var/lib/dnf/ .TP .B \fBSystem State\fP /usr/lib/sysimage/libdnf5/ .UNINDENT .SH ENVIRONMENT .INDENT 0.0 .TP .B \fBDNF5_PLUGINS_DIR\fP Override a directory with DNF5 application plugins. Set it to an empty string to disable loading the application plugins. .TP .B \fBLIBDNF_PLUGINS_CONFIG_DIR\fP Override a directory with libdnf5 plugin\(aqs configuration files. .UNINDENT .SH SEE ALSO .INDENT 0.0 .TP .B Commands: .nf \fBdnf5\-advisory(8)\fP, \fI\%Advisory command\fP \fBdnf5\-autoremove(8)\fP, \fI\%Autoremove command\fP \fBdnf5\-check(8)\fP, \fI\%Check command\fP \fBdnf5\-check\-upgrade(8)\fP, \fI\%Check\-Upgrade command\fP \fBdnf5\-clean(8)\fP, \fI\%Clean command\fP \fBdnf5\-distro\-sync(8)\fP, \fI\%Distro\-Sync command\fP \fBdnf5\-downgrade(8)\fP, \fI\%Downgrade command\fP \fBdnf5\-download(8)\fP, \fI\%Download command\fP \fBdnf5\-environment(8)\fP, \fI\%Environment command\fP \fBdnf5\-group(8)\fP, \fI\%Group command\fP \fBdnf5\-history(8)\fP, \fI\%History command,\fP \fBdnf5\-info(8)\fP, \fI\%Info command\fP \fBdnf5\-install(8)\fP, \fI\%Install command\fP \fBdnf5\-leaves(8)\fP, \fI\%Leaves command\fP \fBdnf5\-list(8)\fP, \fI\%List command\fP \fBdnf5\-makecache(8)\fP, \fI\%Makecache command\fP \fBdnf5\-mark(8)\fP, \fI\%Mark command\fP \fBdnf5\-module(8)\fP, \fI\%Module command\fP \fBdnf5\-offline(8)\fP, \fI\%Offline command\fP \fBdnf5\-provides(8)\fP, \fI\%Provides command\fP \fBdnf5\-reinstall(8)\fP, \fI\%Reinstall command\fP \fBdnf5\-remove(8)\fP, \fI\%Remove command\fP \fBdnf5\-repo(8)\fP, \fI\%Repo command\fP \fBdnf5\-repoquery(8)\fP, \fI\%Repoquery command\fP \fBdnf5\-search(8)\fP, \fI\%Search command\fP \fBdnf5\-swap(8)\fP, \fI\%Swap command\fP \fBdnf5\-system\-upgrade(8)\fP, \fI\%System\-Upgrade command\fP \fBdnf5\-upgrade(8)\fP, \fI\%Upgrade command\fP \fBdnf5\-versionlock(8)\fP, \fI\%Versionlock command\fP .fi .sp .TP .B Application Plugins: .nf \fBdnf5\-automatic(8)\fP, \fI\%Automatic command\fP \fBdnf5\-builddep(8)\fP, \fI\%Builddep command\fP \fBdnf5\-changelog(8)\fP, \fI\%Changelog command\fP \fBdnf5\-config\-manager(8)\fP, \fI\%Config\-manager command\fP \fBdnf5\-copr(8)\fP, \fI\%Copr command\fP \fBdnf5\-needs\-restarting(8)\fP, \fI\%Needs\-Restarting command\fP \fBdnf5\-repoclosure(8)\fP, \fI\%Repoclosure command\fP \fBdnf5\-reposync(8)\fP, \fI\%Reposync command\fP .fi .sp .TP .B Library Plugins: .nf \fBlibdnf5\-actions(8)\fP, \fI\%Actions plugin\fP \fBlibdnf5\-expired\-pgp\-keys(8)\fP, \fI\%Expired PGP keys plugin\fP .fi .sp .TP .B Configuration: .nf \fBdnf5\-conf(5)\fP, \fI\%DNF5 Configuration Reference\fP .fi .sp .TP .B Miscellaneous: .nf \fBdnf5\-aliases(7)\fP, \fI\%Aliases for command line arguments\fP \fBdnf5\-caching(7)\fP, \fI\%Caching\fP \fBdnf5\-comps(7)\fP, \fI\%Comps groups and environments\fP \fBdnf5\-filtering(7)\fP, \fI\%Packages filtering,\fP \fBdnf5\-forcearch(7)\fP, \fI\%Forcearch parameter\fP \fBdnf5\-installroot(7)\fP, \fI\%Installroot parameter\fP \fBdnf5\-modularity(7)\fP, \fI\%Modularity overview,\fP \fBdnf5\-specs(7)\fP, \fI\%Patterns specification\fP \fBdnf5\-system\-state(7)\fP, \fI\%System state\fP .fi .sp .TP .B Project homepage: .nf \X'tty: link https://github.com/rpm-software-management/dnf5'\fI\%https://github.com/rpm\-software\-management/dnf5\fP\X'tty: link' .fi .sp .UNINDENT .SH AUTHOR See AUTHORS.md in dnf5 source distribution. .SH COPYRIGHT Contributors to the dnf5 project. .\" Generated by docutils manpage writer. .