apt-get Cheat Sheet

Description Command
Install package apt-get install {package}
Update package apt-get install {package}
Remove an installed package, but leave the config files apt-get remove {package}
Remove an installed package including config files apt-get --purge remove {package}
Resynchronize the package index files apt-get update
Upgrade the Linux system including security updates apt-get upgrade
Upgrade the Linux distribution apt-get dist-upgrade