List installed packages…
dpkg --get-selections | grep -v deinstall
List installed packages (but filter based on name)…
dpkg --get-selections | grep -v deinstall | grep filter
Install a package…
sudo apt-get install the-package-name
Uninstall/remove a package…
sudo apt-get remove the-package-name
Update package lists/dependencies (does not actually install anything)…
sudo apt-get update
Apply updates to existing packages based on an “update” call (without removing anything)…
sudo apt-get upgrade
Apply updates to existing packages based on an “update” call and remove obsolete packages…
sudo apt-get dist-upgrade
Please remember to subscribe to the newsletter to stay up to date!You or someone you know looking to buy or sell?
Disclaimer: Thoughts and opinions are my own, and do not reflect the views of any employer, family member, friend, or anyone else. Some links may be affiliate links, but I don't link to anything I don't use myself. You would think this should be self evident these days, but apparently not...