CentOS uses domestic 163 yum source

Source: Internet
Author: User
Tags gpg centos yum repolist metalink
//set 163 source #wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo-O Centos-base.repo; 
//set Epel source #vim Epel.repo; [Epel] Name=extra Packages for Enterprise Linux 6-$basearch baseurl=http://centos.ustc.edu.cn/epel/6/$basearch #
Mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch= $basearch failovermethod=priority Enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-epel-6 [epel-debuginfo] Name=Extra Packages for Enterprise Linux 6-$basearch-debug baseurl=http://centos.ustc.edu.cn/epel/6/$basearch/debug #mirrorlist =https:// Mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch= $basearch failovermethod=priority enabled=0 gpgkey= File:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 gpgcheck=1 [Epel-source] Name=extra Packages for Enterprise Linux 6-$basear Ch-source Baseurl=http://centos.ustc.edu.cn/epel/6/srpms #mirrorlist =https://mirrors.fedoraproject.org/metalink? Repo=epel-source-6&arch= $basearch failovermethod=priority enabled=0 gpgkey=file:///etc/pki/rpm-gpg/ Rpm-gpg-key-epel-6 gpgcheck=1 
Set epel-testing source #vim Epel-testing.repo [epel-testing] Name=extra Packages for Enterprise Linux 6-testing-$basearch baseurl=http://centos.ustc.edu.cn/epel/testing/6/$basearch #mirrorlist =https://mirrors.fedoraproject.org/ Metalink?repo=testing-epel6&arch= $basearch failovermethod=priority enabled=0 gpgcheck=1 gpgkey=file:///etc/pki  /rpm-gpg/rpm-gpg-key-epel-6 [Epel-testing-debuginfo] Name=extra Packages for Enterprise Linux 6-testing-$basearch -Debug baseurl=http://centos.ustc.edu.cn/epel/testing/6/$basearch/debug #mirrorlist =https://  
Mirrors.fedoraproject.org/metalink?repo=testing-debug-epel6&arch= $basearch failovermethod=priority enabled=0 Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-epel-6 gpgcheck=1 [Epel-testing-source] Name=Extra Packages for Enterpri Se Linux 6-testing-$basearch-source Baseurl=http://centos.ustc.edu.cn/epel/testing/6/srpms #mirrorlist =https://m Irrors.fedoraproject.org/metalink?repo=testing-source-epel6& arch= $basearch failovermethod=priority enabled=0 gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-epel-6 gpgcheck=1   
Install the public key of the Elep source
#wget http://centos.ustc.edu.cn/epel/RPM-GPG-KEY-EPEL-6-o/etc/pki/rpm-gpg/ rpm-gpg-key-centos-epel-6;
#rpm--import/etc/pki/rpm-gpg/rpm*
Refresh View
#yum
#yum makecache
#yum repolist
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.