个人非常喜欢用Ubuntu,因为Debian强大的在线在线安装包。但某些时候我不得不用CentOS,这就得用著名的EPEL源了。
EPEL (Extra Packages for Enterprise Linux)是基于Fedora的一个项目,为“红帽系”的操作系统提供额外的软件包,适用于RHEL、CentOS和Scientific Linux.
下面是使用方法:
1. 首先我们需要安装一个叫”epel-release”的软件包,这个软件包会自动配置yum的软件仓库。当然你也可以不安装这个包,自己配置软件仓库也是一样的。
?
| 1 2 3 4 5 6 | #用于RHEL5系列 wget http: //download .fedoraproject.org /pub/epel/5/i386/epel-release-5-4 .noarch.rpm rpm -ivh epel-release-5-4.noarch.rpm #用于RHEL6系列 wget http: //download .fedoraproject.org /pub/epel/6/i386/epel-release-6-5 .noarch.rpm rpm -ivh epel-release-6-5.noarch.rpm |
2. 安装完成之后你就可以直接使用yum来安装额外的软件包了
?
| 1 2 | yum clean all yum install nginx pure-ftpd |
还有一种更加便捷的方法就是直接自己手工添加软件仓库配置文件
?
| 1 2 3 4 5 6 | vi /etc/yum.repos.d/epel.repo [epel] name=epel mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-$releasever&arch=$basearch enabled=1 gpgcheck=0 |
添加完毕之后:
?
| 1 | yum clean all && yum update |
最后终极大发——有pptpd的yum源
?
| 1 | rpm -Uvh http: //poptop .sourceforge.net /yum/stable/rhel6/pptp-release-current .noarch.rpm |
搬瓦工中文网





