centos 6配置epel

來源:互聯網
上載者:User

標籤:linux   作業系統   軟體包   網上   可靠性   

一、什麼是EPEL?
EPEL,即Extra Packages for Enterprise Linux(http://Fedoraproject.org/wiki/EPEL) 是由 Fedora 社區打造,為 RHEL 及衍生髮行版如 CentOS、Scientific Linux 等提供高品質軟體包的項目。在這裡可以獲得 RHEL 的高品質、高效能、高可靠性、免費、方便易用的軟體包。
二、與163 YUM源比較
今天,在Dell R610上面安裝了Centos6.4 X86_64的作業系統,裝完系統後,用163的YUM源安裝軟體,我一直都是用163的YUM源,因為是國內的YUM源,比較快。但是,我發現這個源裡面,根本沒有libmcrypt,libmcrypt-devel這兩個RPM包,裝php擴充mcrypt時,又要用到這兩個包,於是我手動裝了這兩個libmcrypt包,發現163源中的包不全。後來又安裝了heartbeat,發現又沒有,於是我決定,得換個源,後來到網上搜了一下,發現了EPEL源,用了之後感覺很爽。現在就總結一下,與大家分享!

三、CentOS 6.X 安裝使用EPEL YUM源
1. 查看作業系統版本
[[email protected] yum.repos.d]# cat /etc/issue
CentOS release 6.5 (Final)

Kernel \r on an \m

[[email protected] yum.repos.d]# uname  -a
Linux yf-pbs-nginx-2 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

2.下載相應的EPEL源
(1).32位系統 
[[email protected] src]# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

(2).64位系統
1 [[email protected] src]#wget http://mirrors.yun-idc.com/epel/6/x86_64/epel-release-6-8.noarch.rpm

3.安裝EPEL源(註:我這裡是64位系統)
[[email protected] src]# rpm -ivh epel-release-6-8.noarch.rpm

warning: epel-release-5-4.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6 
Preparing...                ########################################### [100%] 
  1:epel-release          ########################################### [100%]

4.匯入key檔案
1 [[email protected] src]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

5.查看安裝的EPEL源
[[email protected] src]# cd /etc/yum.repos.d/ 
[[email protected] yum.repos.d]# ll 
總計 24 
-rw-r--r-- 1 root root 2245 2010-04-26 CentOS-Base.repo 
-rw-r--r-- 1 root root  626 2010-04-26 CentOS-Media.repo 
-rw-r--r-- 1 root root  954 2010-08-12 epel.repo #正式版,所有的軟體都是穩定可以信賴的 
-rw-r--r-- 1 root root 1054 2010-08-12 epel-testing.repo #最新的測試源

註:但是預設情況下,只有正式版是有效狀態的,如果你想試試測試版的話,需要修改/etc/yum.repos.d/epel-testing.repo,把enabled=0改成enabled=1即可。
6.測試
[[email protected] yum.repos.d]# yum clean all
[[email protected] yum.repos.d]# yum list


本文出自 “學習要永恒” 部落格,請務必保留此出處http://hzcsky.blog.51cto.com/1560073/1541561

相關文章

聯繫我們

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