centos6 安裝EPEL

1、安裝

  • 32位系統:

rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm緩存

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-5url

  • 64位系統:

rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm插件

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6debug

2、配置EPEL源設置(上海交大源)

  • 修改epel.repo
    vi /etc/yum.repos.d/epel.repo

修改如下節點,註釋全部mirrorlist配置項,添加新的baseurlcode

[epel]

baseurl=http://ftp.sjtu.edu.cn/fedora/epel/6/$basearch

#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch



[epel-debuginfo]

baseurl=http://ftp.sjtu.edu.cn/fedora/epel/7/$basearch/debug

#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch



[epel-source]

baseurl=http://ftp.sjtu.edu.cn/fedora/epel/6/SRPMS

#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch



- 修改epel-testing.repo

vi /etc/yum.repos.d/epel-testing.repo

修改如下節點,註釋全部mirrorlist配置項,添加新的baseurl

[epel-testing]

baseurl=http://ftp.sjtu.edu.cn/fedora/epel/testing/6/$basearch

#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=testing-epel6&arch=$basearch



[epel-testing-debuginfo]

baseurl=http://ftp.sjtu.edu.cn/fedora/epel/testing/6/$basearch/debug

#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=testing-debug-epel6&arch=$basearch



[epel-testing-source]

baseurl=http://ftp.sjtu.edu.cn/fedora/epel/testing/6/SRPMS

#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=testing-source-epel6&arch=$basearch
  • 重建緩存

yum clean all && yum makecacheget

3、安裝插件

yum install yum-plugin-fastestmirrorit

yum install yum-prioritiesio

相關文章
相關標籤/搜索