dnf #
Query repos and rpm db #
List repositories verbosely:
dnf repolist -v
List all available packages from all repos:
dnf repoquery
List all installed packages:
dnf list installed
List all installed packages and packages available for installation:
dnf list
List all available updates:
dnf list updates
Install packages #
Install a package:
dnf install package
Install a package from an RPM:
dnf localinstall /path/to/rpm
Update a package:
dnf update package
Update all packages (aka system update):
dnf -y update
Package info #
View information about a package:
dnf info package
Removing packages #
Remove a package and it’s dependencies:
dnf remove package