# 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) |