In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to upgrade Centos7 to Centos8, the article is very detailed, has a certain reference value, interested friends must read it!
If you upgrade in a formal environment, please make a good data backup and important configuration backup! Because the upgrade will cause some applications to be uninstalled.
1. Install the epel source
Yum-y install epel-release
two。 Install rpmconf and yum-utils
Yum- y install rpmconf yum-utils
3. Execute rpmconf, if prompted, please enter Y and enter to continue, if not prompted to proceed 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 upgradednf-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.rpmdnf-y upgrade https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpmdnf clean all
8. Uninstall the kernel of centos7
Rpm-e-- nodeps `rpm-Q kernel`
9. When upgrading to centos8, an error will usually be reported in this step. If there is no error, please proceed to step 10.
Dnf-y-releasever=8-allowerasing-setopt=deltarpm=false distro-sync
After finding an error, uninstall the package name similar to the one after from package on the diagram.
Rpm-e-- nodeps sysvinit-tools-2.88-14.dsf.el7.x86_64rpm-e-- nodeps python-inotify-0.9.4-4.el7.noarchrpm-e-- nodeps adwaita-qt5-1.0-1.el7.x86_64rpm-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
10. When you execute rpmconf, the following interface appears. Just type Y and enter all the time.
Rpmconf-a
11. Restart the machine
Reboot
The above is all the contents of the article "how to upgrade Centos7 to Centos8". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to 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: 0
*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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.