Updating Ubuntu 16.04

Every once in a while, the OS software should be updated.

When logging in to the terminal, there is often a message stating updates are available. To install these, use the following commands:

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)

Once the updates are done, it’s necessary to clean up any old stuff that isn’t used any longer. Use this command:

sudo apt-get autoremove

And finally, it’s necessary to restart the server. The best way to do this is from the console — just shutdown and reboot the machine and you’re good to go.