For Linux platforms in the Redhat/centos system, Yum is recommended to install dependent packages. There are two ways to install it, one to use local yum, and one to use online yum.
1 online Yum Source
If the operating system has access to the Internet, the Yum source can be used directly. Ustc,163 's Yum source speed is good.
Create file:/etc/yum.repos.d/cndba.repo
Add the following content
#USTC Yum Source:
[Cndba.cn]name=centos-$releasever-base-mirrors.ustc.edu.cnbaseurl=http://mirrors.ustc.edu.cn/centos/6/os/$ Basearch/enabled=1gpgcheck=0
--163 's Yum Source:
[Cndba.cn2]name=centos-6-base-163.combaseurl=http://mirrors.163.com/centos/6/os/$basearch/#mirrorlist =http:// Mirrorlist.centos.org/?release=6&arch= $basearch &repo=osenabled=1gpgcheck=0gpgkey=http:// Mirror.centos.org/centos/rpm-gpg-key-centos-6
Final execution:
Yum Clean All
You can use Yum.
2 Local Yum Source configuration
Upload the operating system's ISO image file to the operating system.
--mount Iso,[[email protected] ~]# mkdir/cndba[[email protected] ~]# Mount-o loop rhel-server-6.7-x86_64-dvd.iso/cndba
Create file:/etc/yum.repos.d/cndba.repo
Add the following content
#USTC Yum Source:
[Cndba.cn]name = Cndba. CN YUM Server baseurl=file:///cndbagpgcheck=0enabled=1
Final execution:
Yum Clean All
You can use Yum.
Ext.: http://www.cndba.cn/account/article/details/154
YUM Source Configuration manual under Linux platform