Centos安装EPEL扩展源
时间:2014-12-14 13:40 来源:linux.it.net.cn 作者:IT
Centos官方源很多软件都没有,编译安装又比较麻烦,可以安装EPEL源解决此问题。
EPEL即Extra Packages for Enterprise Linux,也就是为企业级 Linux提供的扩展软件源,适用于 RHEL,CentOS,Scientific Linux系统。
Centos5安装
1
2
3
#http://www.haiyun.me
rpm -ivh http:
//dl
.fedoraproject.org
/pub/epel/5/i386/epel-release-5-4
.noarch.rpm
rpm -ivh http:
//dl
.fedoraproject.org
/pub/epel/5/x86_64/epel-release-5-4
.noarch.rpm
centos6安装
1
2
rpm -ivh http:
//dl
.fedoraproject.org
/pub/epel/6/i386/epel-release-6-8
.noarch.rpm
rpm -ivh http:
//dl
.fedoraproject.org
/pub/epel/6/x86_64/epel-release-6-8
.noarch.rpm
Centos7安装:
1
rpm -ivh http:
//dl
.fedoraproject.org
/pub/epel/7/x86_64/e/epel-release-7-2
.noarch.rpm
国内访问修改为sohu提供的镜像:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
cat
>
/etc/yum
.repos.d
/epel
.repo <<EOF
[epel]
name=Extra Packages
for
Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
baseurl=http:
//mirrors
.sohu.com
/fedora-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://download.fedoraproject.org/pub/epel/6/$basearch/debug
baseurl=http:
//mirrors
.sohu.com
/fedora-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 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
baseurl=http:
//mirrors
.sohu.com
/fedora-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
EOF
(责任编辑:IT)
Centos官方源很多软件都没有,编译安装又比较麻烦,可以安装EPEL源解决此问题。
centos6安装
Centos7安装:
国内访问修改为sohu提供的镜像:
(责任编辑:IT) |