centos系统EPEL安装使用教程

作者:袖梨 2022-06-30

EPEL全称Extra Packages for Enterprise Linux,官方翻译为 企业版 Linux 附加软件包。顾名思义,他可以扩充你的软件库,安装很多软件时能省去很多时间。比如最近很火的PHP的DoS漏洞,Bug 61461,在EPEL下面只需要一条命令就能将PHP升级为5.9,避免重新编。

老高推荐新安装的centos系统都先安装此附加软件包!

安装命令:

yum install epel-release


RHEL 5.x / CentOS 5.x

32 位

rpm -Uvh http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm64 位

rpm -Uvh http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpmRHEL 6.x / CentOS 6.x

32 位

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm64 位

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm这样就可以很方便的安装一些常用的软件,比如要安装 Nginx ,即可通过如下命令,而无需自行编译安装:

yum -y install nginx

没有报错的话,那么EPEL就安装完毕了。


如果上述命令还是解决不了问题,那就必须有针对性的安装了。

以下命令复制自Install EPEL and additional repositories on CentOS and Red Hat

#CentOS and Red Hat Enterprise Linux 5.x

wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
rpm -Uvh epel-release-5*.rpm

#CentOS and Red Hat Enterprise Linux 6.x

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6*.rpm

#CentOS and Red Hat Enterprise Linux 7.x

wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
rpm -Uvh epel-release-7*.rpm

相关文章

精彩推荐