CentOS 5/6.X 使用 EPEL YUM源

來源:互聯網
上載者:User

標籤:

參考:http://www.linuxidc.com/Linux/2013-08/88523.htm

大綱 一、什麼是EPEL? 二、與163 YUM源比較 三、CentOS 5.X 安裝使用EPEL YUM源 四、CentOS 6.X 安裝使用EPEL YUM源 五、使用心得 六、yumdownloader 工具 七、卸載EPEL源 註:作業系統 CentOS 6.X ,CentOS 5.X

推薦閱讀:

配置EPEL YUM源  http://www.linuxidc.com/Linux/2012-10/71850.htm

RedHat 本地yum源配置 http://www.linuxidc.com/Linux/2012-11/75127.htm

RedHat Linux 本地yum源的配置 http://www.linuxidc.com/Linux/2013-08/88217.htm

RedHat 6.2 Linux修改yum源免費使用CentOS源 http://www.linuxidc.com/Linux/2013-07/87383.htm

heartbeat-3.0.4-1.el6.x86_64.rpm 與 heartbeat-3.0.4-2.el6.x86_64.rpm 下載

------------------------------------------分割線------------------------------------------

FTP地址:ftp://ftp1.linuxidc.com

使用者名稱:ftp1.linuxidc.com

密碼:www.linuxidc.com

在 2013年LinuxIDC.com\8月\CentOS 5&6.X 使用 EPEL YUM源

下載方法見 http://www.linuxidc.com/Linux/2013-10/91140.htm

------------------------------------------分割線------------------------------------------

一、什麼是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 5.X 安裝使用EPEL YUM源 1. 查看作業系統版本 [[email protected] ~]# lsb_release -a   LSB Version:    :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch   Distributor ID: CentOS   Description:    CentOS release 5.5 (Final)   Release:        5.5   Codename:      Final   [[email protected] ~]# uname -a   Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

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

(2).64位系統  1 [[email protected] src]# wget http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

3.安裝EPEL源(註:我這裡是64位系統) [[email protected] src]# rpm -ivh epel-release-5-4.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-5

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

四、CentOS 6.X 安裝使用EPEL YUM源 1. 查看作業系統版本 [[email protected] ~]# uname -a  Linux node1.test.com 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux  [[email protected] ~]# cat /etc/issue  CentOS release 6.4 (Final)  Kernel \r on an \m

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

(1).64位系統 [[email protected] src]# wget http://download.fedoraproject.org/pub/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-6-8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY  Preparing... ########################################### [100%]  1:epel-release ########################################### [100%]

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

5.查看安裝的EPEL源 [[email protected] src]# cd /etc/yum.repos.d/  [[email protected] yum.repos.d]# ll  總用量 24  -rw-r--r--. 1 root root 1926 2月 25 16:57 CentOS-Base.repo  -rw-r--r--. 1 root root 638 2月 25 16:57 CentOS-Debuginfo.repo  -rw-r--r--. 1 root root 623 7月 25 16:57 CentOS-Media.repo  -rw-r--r--. 1 root root 3664 2月 25 16:57 CentOS-Vault.repo  -rw-r--r-- 1 root root 957 11月 5 2012 epel.repo  -rw-r--r-- 1 root root 1056 11月 5 2012 epel-testing.repo

6.測試 [[email protected] yum.repos.d]# yum clean all  [[email protected] yum.repos.d]# yum list

五、使用心得 1.不用去換原來yum源,安裝後會產生新repo 2.epel會有很多源地址,如果一個下不到,會去另外一個下 3.更新時如果下載的包不全,就不會進行安裝,這樣的話,依賴關係可以保重 六、yumdownloader 工具 說明:EPEL中有很多好軟體,我們可以直接用yumdownloader就可以直接下載yum源中的rpm包,下面我們說一下使用方法 1. 安裝 yum工具 [[email protected] ~]# yum -y install yum-utils

2.下載你想要下載軟體,如heartbeat [[email protected] src]# yumdownloader heartbeat

3.查看下載的rpm包 [[email protected] src]# ll  總用量 180  -rw-r--r-- 1 root root 14540 11月 5 2012 epel-release-6-8.noarch.rpm  -rw-r--r-- 1 root root 165244 5月 25 2011 heartbeat-3.0.4-1.el6.x86_64.rpm

七、卸載EPEL源 說明:如果你暫時不想使用EPEL的yum源的話,把對應檔案裡的enabled=1改成enabled=0就行了,如果你完全不需要了,那就直接卸載掉 [[email protected] src]# rpm -e epel-release

CentOS 5/6.X 使用 EPEL YUM源

相關文章

聯繫我們

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