Today a small partner asked blogger, want to change a 163 source (Ali, Amazon should be the same, Bo master no one by one authentication) how to change! Bloggers of course are ready to show small partners ... But, you're not mistaken, you have a face. And finally, with the small partners to configure the good, so write down this article:
The environment here is Linux Redhat, but the others are roughly the same.
Introduction to the idea of configuring the source:
Configuring 163 sources
Configuring the Epel Source
One: Configure 163 source
Delete the source itself:
1 [[email protected] ~]# cd/etc/yum.repos.d2 [[email protected] YUM.REPOS.D]# ls3 Rhel-source.repo
Place the Rhel-source.repo under the Redhat file:
1 [[email protected] YUM.REPOS.D]# mkdir redhat2 [[email protected] YUM.REPOS.D] # ls 3 redhat rhel-source.repo4 [[email protected] YUM.REPOS.D]# MV Rhel-source.repo redhat/5 [[email protected] YUM.REPOS.D]# ls6 Redhat
Create 163 source files:
1 [[email protected] YUM.REPOS.D]# vim 163.repo
Edit File Contents:
[163repo]name=linux redhat 163.repobaseurl=http://mirrors.163.com/centos/6/os/x86_64/(here Select the source of 163, This is the source of Redhat6) gpgcheck=0enabled=1
To configure the Epel source:
RPM-IVH http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
Query Result:
1 [[email protected] YUM.REPOS.D]# ls2 163.repo Epel.repo Epel-testing.repo Redhat
Linux configuration 163yum Source Epel source