Updating Linux VMs

Andrew -

Overview

Updating Linux servers is crucial to ensure the security for your applications. New vulnerabilities are being discovered at an ever increasing rate, though patches tend to be issued for these problems just as quickly.

The method for updating your Linux VM depends on the specific distribution you are using, but details of the most common ones are summarised below.

Ubuntu

$ sudo apt-get update
$ sudo apt-get upgrade

Additionally, to update the kernel or bootloader you will need to issue the below command in addition to rebooting your Linux OS.

$ sudo apt-get dist-upgrade

Debian

# apt-get update
# apt-get upgrade

Additionally, to update the kernel or bootloader you will need to issue the below command in addition to rebooting your Linux OS.

# apt-get dist-upgrade

Red Hat Enterprise Linux (RHEL) / CentOS

# yum check-update
# yum update

Others

More exotic distributions may have their own package managers, so you will need to consult your OS's documentation to determine the process for updating via their package manager (such as pacman for Arch Linux or YaST for SUSE Linux).

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk