YUM Source Configuration manual under Linux platform

Source: Internet
Author: User

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

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.