Packages & Services
How to search for a package in Linux
Search the package repositories for a package by name or keyword with dnf search and apt search.
How to show package information and files in Linux
Show a package version, description, file list, and dependencies with dnf/rpm and apt/dpkg.
How to find which package provides a file in Linux
Find which package owns a file or provides a command with dnf provides, rpm -qf, and dpkg -S.
How to check for available package updates in Linux
List packages with available updates using dnf check-update and apt list --upgradable, without installing anything.
How to view package transaction history in Linux
Review past install, update, and remove actions with dnf history and the apt logs.
How to install a package in Linux
Install a package and its dependencies with dnf install on RHEL/Oracle Linux and apt install on Debian/Ubuntu.
How to remove a package in Linux
Remove a package with dnf remove and apt remove/purge, checking what dependencies go with it first.
How to update packages in Linux
Update installed packages with dnf update and apt upgrade, and apply security updates only.
How to manage software repositories in Linux
List and add software repositories with dnf config-manager and add-apt-repository, and enable or disable repos.
How to list installed packages in Linux
List installed packages on RHEL/Oracle Linux with dnf and rpm, and on Debian/Ubuntu with apt and dpkg.