knowledge-base/Linux/package-managers.md
2025-06-22 16:25:45 -06:00

1.3 KiB
Raw Permalink Blame History

Ubuntu/Pop

apt/dpkg

Commands What it does
apt policy packagename Package information
apt-cache madison packagename List available versions for a package
sudo apt install packagename dry-run See what packages will be installed with the package
apt policy packagename Find version installed and available
sudo dpkg --remove --force-remove-reinstreq package_name Remove broken package
sudo apt-mark hold packagename Hold a package to the current version
dpkg --list grep linux-image
apt list --installed grep packagename

Arch

pacman

Commands What it does
pacman -Syu updates repos then upgrades packages
Commands What it does
pkgfile filename files what package provides that file

flatpak

Commands What it does
flatpak update Update flatpak packages
flatpak list Show the installed flatpak packages
flatpak search Search flatpak packages from sources
flatpak remotes List Flatpak remotes (other servers)