QuickDevGuide

Home › Linux Administration & Deployment

Package Management — Linux Administration & Deployment

Distributions ship software as packages with dependency resolution and signed repositories. Task Debian / Ubuntu (apt) RHEL / Fedora / Rocky (dnf) Refresh index apt update dnf check-update Upgrade all apt upgrade dnf upgrade Install / remove apt install nginx / apt remove dnf install nginx / dnf remove Search apt search redis dnf search redis Info apt show nginx dnf info nginx Which package owns a file dpkg -S /usr/bin/curl rpm -qf /usr/bin/curl List installed apt list --installed dnf list installed Clean up apt autoremove dnf autoremove Other channels: snap / flatpak (sandboxed apps), language managers (pip, npm), and vendor repos (add their GPG key + source list). Enable unattended security updates on servers.

Key Takeaways