Home  >  Article  >  Operation and Maintenance  >  How to upgrade centos

How to upgrade centos

尚
Original
2020-03-25 14:49:292297browse

How to upgrade centos

1. Check the system version

$ cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)

2. Back up important data (such as /etc, /var,/opt).

If centos is installed on a virtual machine, you can use snapshots for backup. For example, VMware virtual machines can be backed up by snapshots. Of course, the more luxurious thing is to back up the entire virtual machine. It can also back up important program data, such as MySQL, Appache, Nginx, DNS, etc.

Recommended tutorial: centos usage tutorial

3. Run the yum command to upgrade

$ sudo yum clean all
$ sudo yum update

4. Restart the system

$ sudo reboot

5. Check the current system version

$ cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)

Recommended related video tutorials: linux video tutorial

The above is the detailed content of How to upgrade centos. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn