How to update CentOS of a VPS / Dedicated Server

CentOS is the most popular and widely used Linux operating system (OS) on VPS / Dedicated server. You must keep your CentOS updated for security reasons. Below are the basic SSH commands to update CentOS on a VPS / Dedicated server.

Check for update

It will check your machine to see if any update is available.

yum check-update

Run Update

You just need to run one command to apply all updates. Below command will update your machine.

yum update

You can also run yum update command with -y option.

yum –y update

The –y option will answer yes to all prompts such as confirmation that you want to install or update a particular package.

Our Recommended VPS Hosting

Leave us a Reply

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

* *