How to Update Software on Linux Server


To remain ahead of the curve, you need to regularly update software on your Linux server. Software developers are constantly patching their software to eradicate vulnerabilities and bugs and enhance performance, and not updating to these latest versions can leave your server at risk. System software updates on your Linux VPS are fairly quick and easy, whether you’re running CentOS, Ubuntu or another Linux OS. To be able to perform the updates, you need to connect to your server via SSH.

Update software on Linux server with a single command

The first step to updating software on a Linux server is to check if there are any updates available for the packages installed on your server. For a CentOS VPS, run the command # yum check-update. For an Ubuntu VPS, run # apt-get update && apt-get –s upgrade. These commands will list all the packages that require an upgrade. You can choose to upgrade a single package or upgrade all of them at once. To upgrade all the packages using a single command:

  1. For CentOS VPS, run the command # yum update. Press y and then Enter to confirm and begin the update.
  2. For Ubuntu VPS, run the command # apt-get update && apt-get upgrade. Press y and then Enter to confirm and begin the update.

It’s as simple as that

It cannot get any easier to update software on a Linux server. Depending on the number and size of the packages being updated, the update process could take between a few seconds to several minutes. Once it is completed, your software will be up to date. Remember to do this frequently to keep your system running with the latest software. You could also enable automatic updates that perform update checks automatically and update whenever a new update becomes available. This is recommended to save time and never miss an update. As an alternative to updating software on Linux, you can ask your managed VPS hosting service to do it for you. Contact to update software on Linux server and keep your VPS secure with the latest updates.

Articles you may enjoy

Looking for further info, or perhaps a how-to guide?