Skip to content

Instantly share code, notes, and snippets.

@hungtatai
Last active December 26, 2016 11:19
Show Gist options
  • Save hungtatai/ae9c6b3780642465ed9636d4931b4465 to your computer and use it in GitHub Desktop.
Save hungtatai/ae9c6b3780642465ed9636d4931b4465 to your computer and use it in GitHub Desktop.

How to update all packages on ubuntu?

sudo apt-get update        # Fetches the list of available updates
sudo apt-get upgrade       # Strictly upgrades the current packages
sudo apt-get dist-upgrade  # Installs updates (new ones)

or

sudo apt-get update; sudo apt-get upgrade; sudo apt-get dist-upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment