Get the App
SLTechnology News&Howtos  ›  Development  › 

The method of manually upgrading Centos7.4 to Centos7.7 in Linux

Shulou Source: shulou.com Published: 2022-06-01 19:22:56 09月18日 Update

In this article, Xiaobian introduces in detail the method of manual online upgrade of Centos7.4 to Centos7.7 in Linux, with detailed content, clear steps and proper handling of details. I hope that this article of "manual online upgrade of Centos7.4 in Linux to Centos7.7" can help you solve your doubts.

Kubernetes deployment requires a version of Centos7.5 or above, otherwise there will be problems such as kubelet cannot be started and harbor port access exception (at the same time, the kernel version should be upgraded to 4.4.x or above).

1) check the current centos system version and kernel version [root@k8s-vm01 ~] # cat / etc/redhat-releaseCentOS Linux release 7.4.1902 (Core) [root@k8s-vm01 ~] # uname-R2) back up the original CentOS-Base.repo [root@k8s-vm01 ~] # cd / etc/yum.repos.d/ [root@k8s-vm01 yum.repos.d] # cp CentOS-Base.repo CentOS-Base.repo_bak3) modify the yum source.

Make sure that the changed Yum source address can be accessed properly. Use the Yum source http://mirrors.aliyun.com/centos/7.7.1908 of Aliyun as follows. Make sure that manually opening this address is a valid address and that the content of the image Yum source exists completely.

[root@k8s-vm01 yum.repos.d] # cat / etc/yum.repos.d/CentOS-Base.repo [base] name=CentOS-$releaseverenabled=1failovermethod=prioritybaseurl= http://mirrors.aliyun.com/centos/7.7.1908/os/$basearch/gpgcheck=1gpgkey=http://mirrors.cloud.aliyuncs.com/centos/RPM-GPG-KEY-CentOS-7[updates]name=CentOS-$releaseverenabled=1failovermethod=prioritybaseurl=http://mirrors.aliyun.com/centos/7.7.1908/updates/$basearch/gpgcheck=1gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG -KEY-CentOS-7 [extras] name=CentOS-$releaseverenabled=1failovermethod=prioritybaseurl= http://mirrors.aliyun.com/centos/7.7.1908/extras/$basearch/gpgcheck=1gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-74) perform update yum

Make sure that the following update operation does not report an error.

[root@k8s-vm01 yum.repos.d] # yum update-y5) restart the system [root@k8s-vm01 yum.repos.d] # init 6

Check the system version after reboot

[root@k8s-vm01 ~] # cat / etc/redhat-releaseCentOS Linux release 7.7.1908 (Core) read here, this article "how to manually upgrade Centos7.4 to Centos7.7 online in Linux" has been introduced. If you want to master the knowledge of this article, you still need to practice and use it before you can understand it. If you want to know more about related articles, please follow the industry information channel.

Tags: Version manual upgrade online upgrade method online content address article system kernel guarantee update proper effective at the same time backup ideas new knowledge more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Xiaomi OPPO Reno Redmi macOS