epel yum源
如果既想獲得?RHEL?的高質(zhì)量、高性能、高可靠性,又需要方便易用(關(guān)鍵是免費(fèi))的軟件包更新功能,那么?Fedora?Project?推出的?EPEL(Extra?Packages?for?Enterprise?Linux)正好適合你。EPEL(http://fedoraproject.org/wiki/EPEL)?是由?Fedora?社區(qū)打造,為?RHEL?及衍生發(fā)行版如?CentOS、Scientific?Linux?等提供高質(zhì)量軟件包的項(xiàng)目。裝上了?EPEL,就像在?Fedora?上一樣,可以通過(guò)?yum?install?package-name,隨意安裝軟件。??
1、RHEL/CentOS/SL?Linux?6.x?下安裝?EPEL6?yum源:
32位系統(tǒng)選擇:
rpm?-ivh?http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm
或者?rpm?-ivh?ftp://ftp.muug.mb.ca/mirror/fedora/epel/6/i386/epel-release-6-5.noarch.rpm
64位系統(tǒng)選擇:
rpm?-ivh?http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
?rpm?-ivh?ftp://ftp.muug.mb.ca/mirror/fedora/epel/6/x86_64/epel-release-6-5.noarch.rpm
rpm?-Uvh?http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/x86_64/epel-release-6-5.noarch.rpm
導(dǎo)入key:
rpm?--import?/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
2、默認(rèn)會(huì)在/etc/yum.repos.d/下創(chuàng)建epel.repo和epel-testing.repo兩個(gè)配置文件,epel.repo的內(nèi)容如下:
[epel]
name=Extra?Packages?for?Enterprise?Linux?6?–?$basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
[epel-debuginfo]
name=Extra?Packages?for?Enterprise?Linux?6?–?$basearch?–?Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1
[epel-source]
name=Extra?Packages?for?Enterprise?Linux?6?–?$basearch?–?Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1
如果想使用比較新的軟件,可以啟用[epel-testing]源,把里面的enabled=0改成enabled=1就可以。
3、yum安裝heartbeat測(cè)試看看:
yum?install?heartbeat
?
轉(zhuǎn)載于:https://blog.51cto.com/shitouququ/1219553
總結(jié)
- 上一篇: 【杨中科】问苍天,微软的技术更新真的快吗
- 下一篇: 高温津贴:关键是消除劳动者“权利贫困”