[Email protected] ~]# rpm-aq|grep Yum|xargs rpm-e--nodeps//Find, delete Rhel 7 own Yum installation package
[Email protected] ~]# RPM-IVH--nodeps langtable-0.0.31-3.el7.noarch.rpm yum-3.4.3-132.el7.centos.0.1.noarch.rpm yum-langpacks-0.4.2-4.el7.noarch.rpm yum-metadata-parser-1.1.4-10.el7.x86_64.rpm yum-plugin-aliases-1.1.31-34.el7.noarch.rpm yum-plugin-changelog-1.1.31-34.el7.noarch.rpm yum-plugin-fastestmirror-1.1.31-34.el7.noarch.rpm yum-plugin-tmprepo-1.1.31-34.el7.noarch.rpm yum-plugin-verify-1.1.31-34.el7.noarch.rpm yum-plugin-versionlock-1.1.31-34.el7.noarch.rpm YUM-UTILS-1.1.31-34.EL7.NOARCH.RPM//The Yum package with CentOS 7 installed
[Email protected] ~]# cd/etc/yum.repos.d/
[Email protected] YUM.REPOS.D ~]# MV Redhat.repo Redhat.repo.bak
[Email protected] YUM.REPOS.D ~]# wget Http://mirrors.163.com/.help/CentOS7-Base-163.repo
[Email protected] YUM.REPOS.D ~]# VI Centos7-base-163.repo
:%s/$releasever/7/g
[Email protected] yum.repos.d ~]# yum Clean all
[Email protected] YUM.REPOS.D ~]# Yum Makecache
[Email protected] yum.repos.d ~]# yum groupinstall Base System
[Email protected] YUM.REPOS.D ~]# Yum groupinstall Development
[Email protected] YUM.REPOS.D ~]# Yum update
This article is from the "Stewart" blog, please be sure to keep this source http://stuart.blog.51cto.com/728677/1732152
The Yum installation of CentOS 7 and the Yum source for Rhel 7 are replaced with the Yum source for CentOS 7