centos系統EPEL安裝使用教程

來源:互聯網
上載者:User

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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.