As my very first blog entry, I will do something very basic.

Was thinking on what to show here, and will start with a step that every Linux Sysadmin should do, every once in a while, update your operative system.

First things first. It is always recommended to take a backup of your system. I like to take a snapshot prior to run the next commands. This will depend on where your server is hosted, if it is a physical or a virtual machine.

To update Ubuntu, there is a tool named apt. This will make all the job for you, installing new packages and resolving all the needed dependencies. To know what packages have a new version available, apt compares it with a list that will be cached locally. To update that list you first run:

sudo apt update

Once this command has finished running, Ubuntu is ready to be upgraded. To upgrade the packages that have a newer version available, run:

sudo apt upgrade

If there is any package to be upgraded, apt will ask you if you want to proceed. Answering yes(y) will upgrade the packages. Once the process ends, your system is up to date.

Leave a Reply

Your email address will not be published. Required fields are marked *