在CentOS上安裝EPEL

來源:互聯網
上載者:User

標籤:epel

請注意EPEL 的安裝包是獨立編譯的,所以它可以安裝在32位和64位系統中。

1. 下載rmp包:wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

2. 安裝rpm包:rpm -ivh epel-release-6-8.noarch.rpm

3. 檢查epel源:yum repolist  如出現如下類似提示則表示成功了;

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.vonline.vn
 * epel: buaya.klas.or.id
 * extras: centos-hn.viettelidc.com.vn
 * updates: mirrors.fibo.vn
repo id        repo name                                              status
base           CentOS-6 - Base                                         6,381
epel           Extra Packages for Enterprise Linux 6 - x86_64         10,023
extras         CentOS-6 - Extras                                          13
updates        CentOS-6 - Updates                                      1,555
repolist: 18,019

4. 安裝epel的時候,執行yum repolist 可能會報錯:Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

解決辦法:處理很簡單,修改檔案“/etc/yum.repos.d/epel.repo”, 將baseurl的注釋取消, mirrorlist注釋掉。即可。


本文出自 “心之所向” 部落格,請務必保留此出處http://933760.blog.51cto.com/923760/1671022

在CentOS上安裝EPEL

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.