The tutorial for upgrading from Centos7 to Centos8 (detailed graphic)

If you are upgrading in a formal environment, please do a good job of data backup and important configuration backup! Because the upgrade will cause some applications to be uninstalled.

1. Install epel source

yum -y install epel-release

  1. Install rpmconf and yum-utils

yum -y install rpmconf yum-utils

  1. Execute rpmconf, if there are some prompts, please enter Y and press Enter to continue, if there is no prompt, continue to the fourth step

rpmconf -a

  1. Install dnf

yum -y install dnf

  1. Remove yum and yum-metadata-parser

dnf -y remove yum yum-metadata-parser

  1. Delete the /etc/yum directory

rm -rf /etc/yum

  1. 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

  1. Uninstall the centos7 kernel

rpm -e --nodepsrpm -q kernel``

  1. Upgrade to centos8, this step will usually report an error, if there is no error, please proceed to step 10
dnf -y --releasever=8--allowerasing --setopt=deltarpm=false distro-sync

After discovering the error, uninstall the package name that is similar to the from package on the picture

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

Perform the upgrade again after uninstalling

dnf -y --releasever=8--allowerasing --setopt=deltarpm=false distro-sync
  1. Run rpmconf, the following interface will appear, keep typing Y and press Enter.

rpmconf -a

  1. Restart the machine

reboot

to sum up

The above is the tutorial for upgrading from Centos7 to Centos8 introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message, and the editor will reply to you in time. Thank you very much for your support to the ZaLou.Cn website!
If you think this article is helpful to you, welcome to reprint, please indicate the source, thank you!

Recommended Posts

The tutorial for upgrading from Centos7 to Centos8 (detailed graphic)
Centos8 uses Docker to deploy a detailed tutorial for Django projects
CentOS 6.5 system installation and configuration graphic tutorial (detailed graphic)
CentOS8 detailed tutorial for configuring local yum source
Detailed tutorial of installing nginx on centos8 (graphic)
vmware install CentOS 7 detailed tutorial
5.1. CentOS@ install JDK1.8 graphic tutorial
How to upgrade CentOS7 to CentOS8 (detailed steps)
CentOS 8 installation of MariaDB detailed tutorial
CentOS8.1 build Gitlab server detailed tutorial
CentOS6 minimal installation KVM detailed tutorial
Centos8 installation diagram (super detailed tutorial)
Tutorial diagram for installing zabbix2.4 under centos6.5
CentOS 7 system installation and configuration graphic tutorial
centos7 cannot connect to the external network
Detailed tutorial on installing python3.7 for ubuntu18
The software environment required for Centos7 installation
Centos 7 64-bit desktop version installation graphic tutorial
Graphic KVM to install CentOS7.6 operating system
Python from attribute to property detailed explanation
[Graphic] How to install tomcat on centos
Ubuntu20.04 steps to install cuda10.1 (graphic tutorial)
Detailed tutorial for installing CUDA9.0 on Ubuntu 16.04
Graphical tutorial for installing JDK1.8 under CentOS7.4
Detailed tutorial for installing phpMyAdmin on Ubuntu 18.04
Detailed tutorial on installing MySQL 8 in CentOS 7
How to modify the hostname on CentOS 8
Centos8 use yum to install rabbitmq tutorial
How to change the CentOS server time to Beijing time
Windows10 install ubuntu20.04 dual system detailed graphic tutorial
The most complete centos installation tutorial in history
Install nginx in centos8 custom directory (detailed tutorial)
Python|Find the sum of factorials from 1 to n
Solution for Ubuntu unable to connect to the network
How to install openssh from centos 7 source code
Python3 development environment to build a detailed tutorial
Linux (CentOS7) using RPM to install mysql 8.0.11 tutorial
The easiest way to install Chrome on CentOS 6
Centos7 installation of PHP and Nginx tutorial detailed
Centos7 tutorial to build a master-slave DNS server
Build LEMP (Linux+Nginx+MySQL+PHP) environment under CentOS 8.1 (detailed tutorial)
The road to reinstallation of ubuntu 18.04 from scratch
How to modify the CentOS server time to Beijing time
Centos7 modify the system language to simplified Chinese
From installation to entry of FastDFS under Centos7