Tutorial on upgrading from Centos7 to Centos8 (with pictures and text)

Tutorial on upgrading from Centos7 to Centos8 (with pictures and text)

If you upgrade in a formal environment, please back up your data and important configurations! Because the upgrade will cause some applications to be uninstalled.

1. Install the epel source

yum -y install epel-release

2. Install rpmconf and yum-utils

yum -y install rpmconf yum-utils

3. Execute rpmconf. If some prompts appear, please enter Y and press Enter to continue. If no prompts appear, continue to step 4.

rpmconf -a

4. Install dnf

yum -y install dnf

5. Remove yum and yum-metadata-parser

dnf -y remove yum yum-metadata-parser

6. Delete the /etc/yum directory

rm -rf /etc/yum

7. Install Centos8 source and upgrade epel source

dnf -y upgrade
dnf -y upgrade http://mirrors.163.com/centos/8.0.1905/BaseOS/x86_64/os/Packages/centos-release-8.0-0.1905.0.9.el8.x86_64.rpm
dnf -y upgrade https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf clean all 

8. Uninstall the kernel of centos7

rpm -e --nodeps `rpm -q kernel`

9. Upgrade to centos8. This step will generally report an error. If there is no error, please proceed to step 10.

dnf -y --releasever=8 --allowerasing --setopt=deltarpm=false distro-sync 

After finding the error, first uninstall the package name similar to the one after from package in the figure

rpm -e --nodeps sysvinit-tools-2.88-14.dsf.el7.x86_64
rpm -e --nodeps python-inotify-0.9.4-4.el7.noarch
rpm -e --nodeps adwaita-qt5-1.0-1.el7.x86_64
rpm -e --nodeps pycairo-1.8.10-8.el7.x86_64 

After uninstalling, perform the upgrade again

dnf -y --releasever=8 --allowerasing --setopt=deltarpm=false distro-sync

10. Execute rpmconf, the following interface will appear, just keep entering Y and pressing Enter

rpmconf -a

11. Restart the machine

reboot

Summarize

The above is the tutorial on upgrading from Centos7 to Centos8 introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • How to upgrade CentOS7 to CentOS8 (detailed steps)
  • CentOS7 upgrade kernel kernel5.0 version
  • How to upgrade CentOS/RHEL minimal installation through yum
  • Linux system Centos7.4 manual online upgrade to Centos7.7

<<:  Simple steps to write custom instructions in Vue3.0

>>:  How to create components in React

Recommend

Detailed explanation of command to view log files in Linux environment

Table of contents Preface 1. cat command: 2. more...

Use of JavaScript sleep function

Table of contents 1.sleep function 2. setTimeout ...

Detailed steps for deepin20 to install NVIDIA closed-source drivers

Step 1: Install the deep "graphics driver&qu...

Vue element implements table adding, deleting and modifying data

This article shares the specific code of vue elem...

CSS3 mobile vw+rem method to achieve responsive layout without relying on JS

1. Introduction (1) Introduction to vw/vh Before ...

Building FastDFS file system in Docker (multi-image tutorial)

Table of contents About FastDFS 1. Search for ima...

Complete steps to quickly configure HugePages under Linux system

Preface Regarding HugePages and Oracle database o...

A quick guide to MySQL indexes

The establishment of MySQL index is very importan...

Bootstrap 3.0 study notes page layout

This time we will mainly learn about layout, whic...

Detailed explanation of CSS BEM writing standards

BEM is a component-based approach to web developm...

A brief analysis of how to use border and display attributes in CSS

Introduction to border properties border property...

Solution to the MySQL error "Every derived table must have its own alias"

MySQL reports an error when executing multi-table...

SQL method for calculating timestamp difference

SQL method for calculating timestamp difference O...

File sharing between Ubuntu and Windows under VMware

This article records the method of sharing files ...