The Yum installation of CentOS 7 and the Yum source of Rhel 7 replaced with the Yum source for CentOS 7

Source: Internet
Author: User

[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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.