How to: Update Ubuntu Packages and Distro

created by BasicSysAdmin

Tags: Linux, Ubuntu, Ubuntu 14.04, Ubuntu 15.04, Ubuntu 16.04

Jul 13, 2016


In this guide I will be showing you how you can run the commands on Ubuntu 15.04 to update the packages along with the distribution on the system. It is always a good idea to make sure that a server is up to date.

The first thing you will need to do is to make sure you are logged in as the root user OR that you are sudo’ing the command.

Updating Package List

To update the list of packages on the server run
apt-get update

Updating Packages

To update all of the packeges on the server to their latest releases run
apt-get upgrade

Updating Distribution

To upgrade the distribution to the latest version, you can run
apt-get dist-upgrade

You can run all of these using the following command:
apt-get update; apt-get upgrade; apt-get dist-upgrade

When you do so, you will get asked if you want to continue, just type y and then press enter.