1. Enter the Yum Source configuration directory
Cd/etc/yum.repos.d
2. Configure the local Yum source
VI Centos-media.repo [c6-media]name=centos-$releasever-mediabaseurl=file:///mnt File:///media gpgcheck=0enabled= 1gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-6
3. Configure the network Yum source
Download 163 NetEase's Yum Source: wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo
3. After configuring the Yum source, perform the following command to update the Yum configuration so that the operation takes effect immediately
Yum Makecache
4. Other network Yum sources
Zhong Ke's yum Source: wget Http://centos.ustc.edu.cn/CentOS-Base.repo Sohu's yum source wget http://mirrors.sohu.com/help/ Centos-base-sohu.repo Epel Source wget Http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmyum Install epel-release-6-8.noarch.rpm or use RPM to mount RPM–IVH directly http://dl.fedoraproject.org/pub/epel/6/x86_64/ After the EPEL-RELEASE-6-8.NOARCH.RPM is configured, several. Repo files will be generated under this directory [[email protected] yum.repos.d]# Lsbak Centos6-base-163.repo Centos-media.repo Epel.repo Epel-testing.repo
This article is from the "Hello World" blog, so be sure to keep this source http://nxyboy.blog.51cto.com/10511646/1939540
Linux system configuration Yum source