Quick apt-get Tutorial

List installed packages:

1
dpkg --get-selections | grep -v deinstall

List installed packages (but filter based on name):

1
dpkg --get-selections | grep -v deinstall | grep filter

Install a package:

1
sudo apt-get install the-package-name

Uninstall/remove a package:

1
sudo apt-get remove the-package-name

Update package lists/dependencies (does not actually install anything):

1
sudo apt-get update

Apply updates to existing packages based on an “update” call (without removing anything):

1
sudo apt-get upgrade

Apply updates to existing packages based on an “update” call and remove obsolete packages:

1
sudo apt-get dist-upgrade

Please remember to subscribe to the newsletter or feed to stay up to date.

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 do not link to anything I do not use myself.