LOGBOOK

HELP

Quiz Entry - updated: 2026.07.14

How do you install, update, and remove packages with DNF?

dnf install adds a package plus its dependencies, dnf update upgrades (one package or everything), and dnf remove deletes a package and anything that depends on it.

These are the everyday write operations — and unlike rpm, DNF figures out the dependency graph for you:

Command Effect
dnf install PACKAGE Install it and pull in every dependency
dnf update PACKAGE Update just that package
dnf update Update all installed packages
dnf remove PACKAGE Remove it and packages that depend on it
dnf install httpd        # shows deps + download/installed size, asks y/N
dnf update               # update the whole system
dnf update kernel        # update only the kernel
dnf check-update         # just list what could be updated

Each command prints a transaction summary and asks for confirmation; add -y to auto-confirm in scripts (dnf install -y httpd).

The remove trap: dnf remove httpd doesn't only delete httpd — it also removes everything that requires httpd (mod_ssl, php modules, web apps…). Always read the removal list before confirming; an unexpectedly long list means you're about to uproot more than you intended.

Kernel note: DNF keeps multiple kernels installed so you can boot an older one if an update misbehaves. uname -r shows the running kernel; dnf list kernel shows which are installed.

Go deeper:

From Quiz: LIOS / Archiving and Software Packages | Updated: Jul 14, 2026