How to Update Ubuntu Servers

upgrading virtualbox host

Learning to update Ubuntu servers will be one of your first task when learning or managing Ubuntu servers. What are some of the commands used to update software or Ubuntu servers?

Updating software packages on Ubuntu servers is one of the first things you learn to do. One of the most effective ways to protect your servers is by updating them regularly. These updates and patches are released to fix security vulnerabilities, enhance performance and resolve issues.

This brief tutorial shows you how to easily Update Ubuntu servers. We’ve also shown users how to configure Ubuntu to automatically update itself so that you don’t have to.

When auto update is enabled, the server fetches updates and patches, download and install them automatically. It can also be configure to reboot after these routine updates. To view that tutorial on configuring Ubuntu update automatically, please read this post below.

The process of updating Ubuntu is fairly simple. All one needs is administrative access to the server terminal usually via SSH or other means.

Advanced Packaging Tool (APT) is a powerful command line tool which works with Ubuntu. It’s the default package management and installation tool for Ubuntu and other distributions.

Checking for updates on Ubuntu servers

To check for updated software that are available for Ubuntu server, run the commands below.

sudo apt-get update && apt-get -s upgrade

The command above will is all or any upgradable packages to choose from and give you the option to upgrade a single package or all the packages on the system.

Updating Ubuntu packages

A single command s used to update all Ubuntu install packages. That command is shown below:

sudo apt-get update

You can also run the commands below to update as well as upgrade Ubuntu packages at the same time.

sudo apt-get update && sudo apt-get dist-upgrade

When you run the above commands, you’ll be prompted to confirm the update. You can then type Y for yes and press Enter to continue with the updates. Depending on the size of the update and your Internet connection speed, it may take few minutes to an hour.

After all the packages are downloaded and installed,  you can continue working and knowing that you server is updated and protected.

That’s it!

Please share you thoughts and contribute to this post if you feel like. Thanks!

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.