Apt-get update cheatsheet for Ubuntu/Debian

sudo apt-get update        # Fetches the list of available packages and updates
sudo apt-get upgrade       # Strictly upgrades the current packages
sudo apt-get dist-upgrade  # Installs updates (new ones)
sudo apt-get install {package-name}  # install
sudo apt-cache search {package-name} # search
# cleanup old kernels as well as other automatically installed packages that are no longer needed:
sudo apt autoremove --purge

Leave a Reply