dnf-install
install RPM packages
TLDR
Install packages by name
SYNOPSIS
dnf install [options] package...
DESCRIPTION
dnf install is the primary command for installing software packages on Red Hat-based distributions including RHEL, CentOS, Fedora, and AlmaLinux. It handles installation from multiple sources: repository package names, local RPM files, or direct URLs to RPM packages.
The command automatically resolves and installs all required dependencies, downloading them from configured repositories. When installing from URLs, this is commonly used to add third-party repositories like EPEL or RPM Fusion by installing their release packages. The tool verifies package signatures, checks for conflicts, and can handle complex scenarios like replacing packages or allowing erasure of conflicting packages with --allowerasing. Root privileges are required as installation modifies system files.
PARAMETERS
package
Package name, local file path, or URL-y, --assumeyes
Automatically answer yes to prompts--allowerasing
Allow erasing conflicting packages--downloadonly
Download only, don't install
CAVEATS
Requires root privileges. Package names must match repository names exactly. Installing from URLs requires network access.
SEE ALSO
dnf(8), dnf-remove(8), rpm(8)
