1

How to Update CentOS Linux

 2 years ago
source link: https://www.vultr.com/docs/how-to-update-centos-linux
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
<?xml encoding="utf-8" ??>

Introduction

It is a best practice to update your server on a regular schedule for security and stability. Use this guide to keep your CentOS server updated.

Supported Versions

This guide applies to the following versions, both with and without SELinux enabled.

  • CentOS 8
  • CentOS 7
  • CentOS 6

Make a Backup

Always make a backup before updating your system.

1. Update the Package Database

Use yum check-update to update the package database from the enabled repositories.

$ sudo yum check-update

2. Upgrade Packages

Use yum update to upgrade the packages.

$ sudo yum update

3. Restart the Server

$ sudo reboot

Conclusion

Periodic updates keep your server secure and stable. Make sure you have a snapshot or backup strategy in place before updating.

Want to contribute?

You could earn up to $600 by adding new articles


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK