Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to quickly upgrade from CentOS7 to CentOS8

2025-04-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Most people do not understand the knowledge points of this article "how to quickly upgrade CentOS7 to CentOS8", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "CentOS7 how to quickly upgrade to CentOS8" article.

Install the EPEL repository

First, install the EPL repository by running the following command:

[root@localhost www.linuxidc.com] # yum install epel-release-y install yum-utils tool

After successfully installing EPEL, install yum-utils by running the following command.

[root@localhost www.linuxidc.com] # yum install yum-utils installs yum-utils in CentOS 7

Then you need to parse the RPM package by executing the command.

[root@localhost www.linuxidc.com] # yum install rpmconf [root@localhost www.linuxidc.com] # rpmconf-a keep the default RPM setting

Next, clean up all unwanted packages.

[root@localhost www.linuxidc.com] # package-cleanup-- leaves [root@localhost www.linuxidc.com] # package-cleanup-- orphans

Clean up the RPM package

Install dnf in CentOS 7

Now install the dnf package manager, which is the default package manager for CentOS 8.

[root@localhost www.linuxidc.com] # yum install dnf installs dnf in CentOS 7

You also need to remove the yum package manager using the following command.

[root@localhost www.linuxidc.com] # dnf-y remove yum yum-metadata-parser [root@localhost www.linuxidc.com] # rm-Rf / etc/yum

Delete Yum in CentOS 7

Upgrade CentOS 7 to CentOS 8

We are now ready to upgrade CentOS 7 to CentOS 8, but before we do that, upgrade the system with the newly installed dnf package manager.

[root@localhost www.linuxidc.com] # dnf upgrade upgrade CentOS 7

Next, install the CentOS 8 distribution using dnf as shown below. It's gonna take a while.

[root@localhost www.linuxidc.com] # dnf-y upgrade http://mirror.bytemark.co.uk/centos/8/BaseOS/x86_64/os/Packages/centos-release-8.0-0.1905.0.9.el8.x86_64.rpm install CentOS 8 version

Next, upgrade the EPEL repository.

[root@localhost www.linuxidc.com] # dnf-y upgrade https://dl.Fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

Upgrade the EPEL repository

After successfully upgrading the EPEL repository, delete all temporary files.

[root@localhost www.linuxidc.com] # dnf clean all

Remove the old kernel for CentOS 7.

[root@localhost www.linuxidc.com] # rpm-e `rpm-Q kernel`

Next, be sure to remove conflicting packages.

[root@localhost www.linuxidc.com] # rpm-e-nodeps sysvinit-tools

After that, start the CentOS 8 system upgrade as shown in the figure.

[root@localhost www.linuxidc.com] # dnf-y-releasever=8-allowerasing-setopt=deltarpm=false distro-sync

CentOS 8 system upgrade

Install a new kernel for CentOS 8

To install a new kernel for CentOS 8, run the command.

[root@localhost www.linuxidc.com] # dnf-y install kernel-core

Install the kernel in CentOS 8

Finally, install the CentOS 8 minimum package.

[root@localhost www.linuxidc.com] # dnf-y groupupdate "Core"Minimal Install"

Now you can check the installed version of CentOS by running the following command.

[root@localhost www.linuxidc.com] # cat / etc/RedHat-release above is the content of this article on "how to quickly upgrade from CentOS7 to CentOS8". I believe you all have some understanding. I hope the content shared by the editor will be helpful to you. If you want to learn more about related knowledge, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 248

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report