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
To update all of the packeges on the server to their latest releases run
To upgrade the distribution to the latest version, you can run
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.