咨询热线:4006-75-4006
售前:9:00-23:30 备案:9:00-18:00 技术:7*24h
CentOS使用EPEL源的方法步骤
EPEL (Extra Packages for Enterprise Linux)是基于Fedora的一个项目,为“红帽系”的操作系统提供额外的软件包,适用于RHEL、CentOS和Scientific Linux.
下面是使用方法:
1. 首先我们需要安装一个叫”epel-release”的软件包,这个软件包会自动配置yum的软件仓库。当然你也可以不安装这个包,自己配置软件仓库也是一样的。
#用于RHEL5系列 wget http://www.landui.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm rpm -ivh epel-release-5-4.noarch.rpm #用于RHEL6系列 wget http://www.landui.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm rpm -ivh epel-release-6-5.noarch.rpm
2. 安装完成之后你就可以直接使用yum来安装额外的软件包了
yum clean all yum install nginx pure-ftpd
还有一种更加便捷的方法就是直接自己手工添加软件仓库配置文件
vi /etc/yum.repos.d/epel.repo [epel] name=epel mirrorlist=http://www.landui.com/mirrorlist?repo=epel-$releasever&arch=$basearch enabled=1 gpgcheck=0
添加完毕之后:
yum clean all && yum update