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

35 lines
No EOL
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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 | List all installed kernels |
| apt list --installed | grep packagename | Searches that package if it was installed using apt |
# 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](https://docs.flatpak.org/en/latest/using-flatpak.html)
| 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) |