Interview Prep/Linux/Packages, Shell & Text Tools

Compare apt and dnf package management.

BeginnerConceptPackages, Shell & Text Tools
Answer
Task Debian/Ubuntu RHEL/Fedora
Refresh metadata apt update dnf makecache (automatic)
Install apt install nginx dnf install nginx
Upgrade all apt upgrade dnf upgrade
Remove apt remove / purge dnf remove
Search apt search dnf search
Package of a file dpkg -S /usr/bin/curl rpm -qf /usr/bin/curl

Low-level tools are dpkg and rpm; apt and dnf add repository and dependency resolution.

All Linux questions Roadmap: Linux

More on Packages, Shell & Text Tools