Scroll to navigation

DNF5-INSTALL(8) dnf5 DNF5-INSTALL(8)

NAME

dnf5-install - Install Command

SYNOPSIS

dnf5 install [options] <package-spec>|@<group-spec>|@<environment-spec>...

DESCRIPTION

The install command in DNF5 is used for installing packages, groups or environments.

When installing packages defined in package-spec arguments, DNF5 ensures that the packages and their dependencies are installed on the system. If the specified packages are already installed, DNF5 does not check their dependencies again and simply verifies that the packages themselves are present.

When installing groups defined in group-spec arguments, DNF5 ensures that the groups and their packages are installed on the system. Installs only group packages matching configured package type. See dnf5-conf(5), group_package_types <#group-package-types-options-label>.

When installing environments defined in environment-spec arguments, DNF5 ensures that the environments and their groups are installed on the system.

OPTIONS

Allow removing of installed packages to resolve any potential dependency problems.

Resolve any dependency problems by removing packages that are causing problems from the transaction.

Allow skipping packages that are not available in repositories. All available packages will be installed.

Enable downgrade of dependencies when resolving the requested operation.

Disable downgrade of dependencies when resolving the requested operation.


Packages (or their provides) explicitly specified on the command line will only be looked up in the specified repositories.
Repository enabling and disabling still applies. Dependencies of these packages will be resolved from any enabled repository.


Download the resolved package set without executing an RPM transaction.

Store the transaction to be performed offline. See dnf5-offline(8), Offline command <#offline-command-ref-label>.


Include content contained in advisories with specified name.
This is a list option.
Expected values are advisory IDs, e.g. FEDORA-2201-123.
Any transaction command (install, upgrade) will fail with an error if there is no existing advisory in the list; this can be bypassed by using the --skip-unavailable switch.


Include content contained in advisories with specified severity.
This is a list option.
Accepted values are: critical, important, moderate, low, none.


Include content contained in advisories that fix a ticket of the given Bugzilla ID.
This is a list option.
Expected values are numeric IDs, e.g. 123123.
Any transaction command (install, upgrade) will fail with an error if there is no advisory fixing the given ticket; this can be bypassed by using the --skip-unavailable switch.


Include content contained in advisories that fix a ticket of the given CVE (Common Vulnerabilities and Exposures) ID.
This is a list option.
Expected values are string IDs in CVE format, e.g. CVE-2201-0123.
Any transaction command (install, upgrade) will fail with an error if there is no advisory fixing the given ticket; this can be bypassed by using the --skip-unavailable switch.


Include content contained in security advisories.


Include content contained in bugfix advisories.


Include content contained in enhancement advisories.


Include content contained in newpackage advisories.


EXAMPLES

Install the tito package.

Install the local rpm file from the given location.

Install the tito package in defined version.
If the package is already installed, it will automatically try to downgrade or upgrade to the given version.

Install all the packages that belong to the FEDORA-2022-07aa56297a advisory.


SEE ALSO

dnf5-advisory(8), Advisory command <#advisory-command-ref-label>
dnf5-specs(7), Patterns specification <#specs-misc-ref-label>



Author

See AUTHORS.md in dnf5 source distribution.

Copyright

Contributors to the dnf5 project.

July 18, 2025