Package managers, what were once an amazing quality of life improvement for the power user / admins, have in recent years become something of a waking nightmare with their unbridaled proliferation. Rein in the insainity and remember the basics with this cheat sheet!
| System | Update | Install | Remove | Upgrade | Search |
|---|---|---|---|---|---|
| Apt | apt update | apt install package | apt remove package | apt upgrade | |
| Chocolatey | choco install package | choco uninstall package | choco upgrade | ||
| Docker | docker pull package | docker rm container | docker update container | ||
| Flatpack | flatpak install repo package | flatpack uninstall package | flatpack update | ||
| Homebrew | brew update | brew install package | brew remove package | brew upgrade | |
| Git | git clone url | rm -rf repo_directory | git remote add upstream url | ||
| Pacman | pacman -S | pacman -S package | pacman -R package | pacman -Syu | pacman -Ss query |
| Snap | snap install package | snap remove package | snap refresh | ||
| Winget | winget install package | winget uninstall package | winget upgrade package | winget search query |
OR... just install topgrade and update all the things with one command :)