How to Update CentOS 7, Ubuntu 16.04, and Debian 8

When setting up a new Linux server, updating the system's Kernel and other packages to the latest stable release is a recommended practice.

In this article, we will learn how to update CentOS 7, Ubuntu 16.04 LTS or Debian 8.

Prerequisites

  • A fresh CentOS 7, Ubuntu 16.04, or Debian 8 server instance.
  • sudo user.

On CentOS 7:

Setup the EPEL YUM repo:

sudo yum install epel-release -y

Perform the system update and then apply system modifications by restarting the system:

sudo yum update -y && sudo shutdown -r now

On Ubuntu 16.04 or Debian 8:

Update the list of packages which can be updated:

sudo apt-get update -y

Then install updates and then apply them by restarting the system:

sudo apt-get upgrade -y && sudo shutdown -r now

That's it. After the reboot, log in as the same sudo user to continue your work.

  • How to Update CentOS 7, Ubuntu 16.04, and Debian 8
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Setting up a Name Server for IPv6 rDNS in CentOS

Managing your own IPv6 rDNS is a fairly simple task. After setting up the name server, please...

Reset the Root Password in CentOS

If you have forgotten the root password it is possible to set a new one by interrupting the boot...

Installing Debian on Drives Larger Than 2 TB

The following tutorial requires a motherboard that is EFI compatible (most boards since 2012 are...

Installing Ubuntu Server on Drives Larger Than 2 TB

The following tutorial requires a motherboard that is EFI compatible (most boards since 2012 are...

Enabling root user in Ubuntu

Instructions on how to enable root user in a newly installed Ubuntu server. The root user in...