什么是EPEL 及 centos 6.5 epel上安装EPEL

--一步,二步,三步,N步,二行脚印
张映 发表于
分类目录:
在dell r410上面装的是centos6,64的操作系统,用的163的源,我一直都是用163的源,比较快。但是我发现这个源里面,根本没有libmcrypt libmcrypt-devel这二个包,装php扩展mcrypt时,又要用到这二个包,所以我手动装了libmcrypt包,但是给我的感觉是163源中的包不全。后来有一个朋友告诉我用epel,用了之后感觉很爽。
一,什么是epel
如果既想获得 RHEL 的高质量、高性能、高可靠性,又需要方便易用(关键是免费)的软件包更新功能,那么 Fedora Project 推出的 EPEL(Extra Packages for Enterprise Linux)正好适合你。EPEL(http://fedoraproject.org/wiki/EPEL) 是由 Fedora 社区打造,为 RHEL 及衍生发行版如 CentOS、Scientific Linux 等提供高质量软件包的项目。
二,使用心得
1,不用去换原来yum源,安装后会产生新repo
2,epel会有很多源地址,如果一个下不到,会去另外一个下
http://mirror.xfes.ru/fedora-epel/6/x86_64/ibus-table-chinese-scj-1.3.4-1.el6.noarch.rpm: [Errno 14] PYCURL ERROR 6 - ""
Trying other mirror.
http://mirrors./fedora/epel/6/x86_64/ibus-table-chinese-scj-1.3.4-1.el6.noarch.rpm: [Errno 14] PYCURL ERROR 6 - ""
Trying other mirror.
http://repo.boun.edu.tr/epel/6/x86_64/ibus-table-chinese-scj-1.3.4-1.el6.noarch.rpm: [Errno 14] PYCURL ERROR 6 - ""kjs
。。。。。。
3,更新时如果下载的包不全,就不会进行安装。这样的话,依赖关系可以保重
三,安装epel,centos6选6,5就选5
32位系统选择:
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
64位系统选择:
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-5
如果用比较新的软件,用epel-test.repo这个文件就行了
别忘了安装yum install yum-priorities
[root@localhost yum.repos.d]# ls |grep epel
epel-testing.repo
转载请注明作者:海底苍鹰地址:阿里云centos6.5安装VestaCP遇到EPEL error错误解决办法 - GeekV
目前伪极客和另外一位朋友遇到安装错误都是因为的CentOS6.5缺少VestaCP安装所需要的软件依赖包所导致的。具体错误代码为
: Failed dependencies :
epel-release &=6 is needed by remi -release-6.5-1.el6.remi.noarch
: Failed dependencies :epel-release &=6 is needed by remi -release-6.5-1.el6.remi.noarch
听说centos6.5被“优化”的很过分,以上问题便是缺少Extra Packages for Enterprise Linux (EPEL)导致的,可以理解为是企业Linux的额外的软件包,EPEL由一个Fedora特别网络小组共同创建、维护和管理,提供高质量额外的企业版Linux软件包。
我们只要安装EPEL包即可。
$ wget http://mirrors./fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
$ wget http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
$ sudo rpm -ivh epel-release-6-8.noarch.rpm
$ sudo rpm -ivh epel-release-6-8.noarch.rpm
安装好EPEL 后,用yum 命令来检查是否添加到源列表
# yum repolist
# yum repolist
# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.vonline.vn
* epel: buaya.klas.or.id
* extras: centos-.vn
* updates: mirrors.fibo.vn
CentOS-6 - Base
Extra Packages for Enterprise Linux 6 - x86_64
CentOS-6 - Extras
nginx repo
CentOS-6 - Updates
repolist: 18,019
1234567891011121314
# 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 nginx&&&&&&&&&&nginx repo&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& 47 updates&&&&&&&&CentOS-6 - Updates&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&1,555 repolist: 18,019
EPEL已经在repo 后列出,并且显示提供了上万个软件包,所以EPEL 已经安装到你的CentOS了。
然后重新执行VestaCP的安装即可。
赞助商链接(非联盟广告)
用心创造精彩微信公众号:centoscn
Centos安装EPEL扩展源
Centos官方源很多软件都没有,编译安装又比较麻烦,可以安装EPEL源解决此问题。
EPEL即Extra Packages for Enterprise Linux,也就是为企业级&Linux提供的扩展软件源,适用于 RHEL,CentOS,Scientific Linux系统。
Centos5安装
#http://www.haiyun.me
rpm -ivh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -ivh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
centos6安装
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
国内访问修改为sohu提供的镜像:
cat & /etc/yum.repos.d/epel.repo &&EOF
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
baseurl=/fedora-epel/6/$basearch
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
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
baseurl=/fedora-epel/6/$basearch/debug
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
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
baseurl=/fedora-epel/6/SRPMS
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1
------分隔线----------------------------How to set up EPEL repository on CentOS - Linux FAQ≡ MenuTutorialsBASH ShellTroubleshootingNginxNetworkingMySQLGoogle Cloud PlatformAmazon Cloud ComputingRackspace Cloud ComputingLinuxCentOSDebian / UbuntuUbuntu LinuxSuseRedHat and FriendsSlackware LinuxUNIXAIXMac OS XFreeBSDFreeBSD Jails (VPS)OpenbsdSolarisSee all tutorial topicsContact usLinux Scripting GuideRSS/FEEDShopHow do I enable EPEL (Extra Packages for Enterprise Linux) repo and install the packages under RHEL / CentOS Linux server systems?
EPEL (Extra Packages for Enterprise Linux) is a volunteer-based community effort from the Fedora project to create a repository of high-quality add-on packages that complement the Fedora-based Red Hat Enterprise Linux (RHEL) and its compatible spinoffs, such as CentOS and Scientific Linux.Tutorial detailsDifficultyEasy (rss)Root privilegesYesRequirementsNoneEstimated completion time10m EPEL provide lots of packages for CentOS / RHEL,
It is not part of RedHat or CentOS but is designed to work with these major distributions. Please note that EPEL only provides free and open source software unencumbered by patents or any legal issues. In short you will not find mp3, dvd and music / media player under EPEL. However, you will find many programs related to networking,
monitoring, sys admin, programming and so on.Packages are supplied in RPM format and in most cases are ready to use. Beware that some packages may break something and you should not blindly install those packages.How Do I Enable EPEL Repo under CentOS or RHEL Servers?You need to type the following command as per your distro version / release.RHEL 5.x / CentOS 5.x UsersType the following command as root user to install repo: # rpm -Uvh http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpmRHEL 6.x / CentOS 6.x UsersType the following command as root user to install repo: # rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpmProtect Base PackagesYou need to to protect base and core packages from EPEL and other repositories. Type the following command under RHEL 6/CentOS 6:Note for RHN (Red Hat) users: You need to also enable the 'optional' repository to use EPEL packages as they depend on packages in that repository. This can be done by enabling the RHEL optional subchannel for RHN-Classic. For certificate-based subscriptions see RHEL Deployment Guide# yum install yum-plugin-protectbase.noarch Sample outputs:
Loaded plugins: product-id, rhnplugin, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package yum-plugin-protectbase.noarch 0:1.1.30-10.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================
Repository
====================================================================================================
Installing:
yum-plugin-protectbase
1.1.30-10.el6
rhel-x86_64-server-optional-6
Transaction Summary
====================================================================================================
1 Package(s)
Total download size: 20 k
Installed size: 0
Is this ok [y/N]: y
Downloading Packages:
yum-plugin-protectbase-1.1.30-10.el6.noarch.rpm
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : yum-plugin-protectbase-1.1.30-10.el6.noarch
Installed products updated.
Installed:
yum-plugin-protectbase.noarch 0:1.1.30-10.el6
RHEL 5/ CentOS 5 user type the following command to protect packages: # yum install yum-protectbase.noarch This plugin allows certain repositories to be protected. Packages in the protected repositories can't be overridden by packages in non-protected repositories even if the non-protected repo has a later version.How Do I Use EPEL Repo?To list newly installed repo, enter: # yum repolist Sample output:Loading "skip-broken" plugin
Loading "fastestmirror" plugin
CentOS-5 - Addons
CentOS-5 - Base
Extra Packages for Enterprise Linux 5 -
CentOS-5 - Extras
CentOS-5 - Updates
enabledNow, use the yum command to list, view and install the packages: # yum search package-name # yum install package-nameSee how to use yum command for installing and searching packages using various repos.Further readings:EPEL Project Tweet itFacebook itGoogle+ itPDF itNext FAQ: BASH: Prepend A Text / Lines To a FilePrevious FAQ: How To Reuse SSH Connection To Speed Up Remote Login Process
Featured Articles:30 Cool Open Source Software I Discovered in 201330 Handy Bash Shell Aliases For Linux / Unix / Mac OS XTop 30 Nmap Command Examples For Sys/Network Admins25 PHP Security Best Practices For Sys Admins20 Linux System Monitoring Tools Every SysAdmin Should Know20 Linux Server Hardening Security TipsLinux: 20 Iptables Examples For New SysAdminsTop 20 OpenSSH Server Best Security Practices Top 20 Nginx WebServer Best Security Practices20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors15 Greatest Open Source Terminal Applications Of 2012My 10 UNIX Command Line MistakesTop 10 Open Source Web-Based Project Management SoftwareTop 5 Email Client For Linux, Mac OS X, and Windows UsersThe Novice Guide To Buying A Linux Laptop

我要回帖

更多关于 centos6 epel 的文章

 

随机推荐