在CentOS上安装第三方软件库EPEL
Extra Packages for Enterprise Linux (EPEL)【企业版 Linux 附加软件包(以下简称 EPEL)】是一个由特别兴趣小组创建、维护并管理的,针对 红帽企业版 Linux(RHEL)及其衍生发行版(比如 CentOS、 Scientific Linux)的一个高质量附加软件包项目。
EPEL 的软件包通常不会与企业版Linux官方源中的软件包发生冲突,或者互相替换文件。EPEL与Fedora项目基本一致,包含完整的构建系统、升级管理器、镜像管理器等等。
EPEL
包含一个叫做epel-release的包,这个包包含了EPEL源的gpg密钥和软件源信息。您可以通过yum安装到您的企业版Linux发行版上。除了epel-release源,还有一个叫做epel-testing的源,这个源包含最新的测试软件包,其版本很新但是安装有风险,请自行斟酌。
注意: 有些第三方软件源需要 EPEL 的'epel-testing'源来安装依赖组件,请务必在系统设置中启用本源。 这里 有相关的开启教程。(相关配置文件位于:/etc/yum.repos.d/epel-testing.repo)。
1.首先检查系统是否安装epel-release
- [root@localhost ~]
- # rpm -q epel-release
- package epel-release is not installed
2.安装EPEL
- [root@localhost ~]# rpm -ivh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
- Retrieving http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
- Preparing... ########################################### [100%]
- 1:epel-release ########################################### [100%]
注意:
1、要安装最新版本的EPEL,请前往 http://mirrors.ustc.edu.cn/fedora/epel/ 中查找最新版本的URL地址,这里采用的是6.8版本
32位:http://mirrors.ustc.edu.cn/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
64位:http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
2、若出现下面类似错误,则表示对应的URL已经不存在,需要重新找EPEL的版本,请前往 http://mirrors.ustc.edu.cn/fedora/epel/ 获取需要的版本
- [root@localhost ~]# rpm -ivh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
- Retrieving http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
- curl: (22) The requested URL returned error: 404 Not Found
- error: skipping http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm - transfer failed
#2.1 安装成功
- [root@localhost ~]# rpm -q epel-release
- epel-release-6-8.noarch
#2.2 查看其所依附的软件文件
- [root@localhost ~]# rpm -qR epel-release
- /bin/sh
- /bin/sh
- config(epel-release) = 6-8
- redhat-release >= 6
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(FileDigests) <= 4.6.0-1
- rpmlib(PayloadFilesHavePrefix) <= 4.0-1
- rpmlib(PayloadIsXz) <= 5.2-1
#2.3 卸载
- [root@localhost ~]# rpm -e epel-release
- warning: /etc/yum.repos.d/epel.repo saved as /etc/yum.repos.d/epel.repo.rpmsave
#2.4 设置源级别
- [root@localhost ~]# vi /etc/yum.repos.d/epel.repo
- 设置 /etc/yum.repos.d/epel.repo 中源的级别为 priority=11
#2.5 搜索软件包
若要查看 EPEL Repo 中是否存在某个软件包:yum search package-name,若搜索git
- [root@localhost ~]# yum search git
- Loaded plugins: fastestmirror, refresh-packagekit, security
- Loading mirror speeds from cached hostfile
- * base: mirrors.aliyun.com
- * epel: mirrors.hust.edu.cn
- * extras: mirrors.aliyun.com
- * updates: mirror.bit.edu.cn
- ============================== N/S Matched: git ===============================
- nodejs-github-url-from-git.noarch : Parse a GitHub git URL and return the GitHub repository URL
- php-phpunit-git.noarch : Simple wrapper for Git
- trac-git-plugin.noarch : GIT version control plugin for Trac
- GitPython.noarch : Python Git Library
- cgit.x86_64 : A fast web interface for git
- git-annex.x86_64 : Manage files with git, without checking their contents into git
- git-ftp.noarch : Git powered FTP client written as shell script
- git-gui.noarch : Git GUI tool
- git-review.noarch : A git helper for integration with Gerrit
- git2cl.noarch : Converts git logs to GNU style ChangeLog format
- gitolite.noarch : Highly flexible server for git directory version tracker
- gitosis.noarch : Git repository hosting application
- gitstats.noarch : Generates statistics based on GIT repository activity
- // ……(略)
- tkgate-fr.x86_64 : Locales and examples for tkgate, Digital Circuit Simulator
- tkgate-it.x86_64 : Locales and examples for tkgate, Digital Circuit Simulator
- tkgate-ja.x86_64 : Locales and examples for tkgate, Digital Circuit Simulator
- tuxpaint.x86_64 : Drawing program designed for young children
- xmlsec1-devel.i686 : Libraries, includes, etc. to develop applications with XML Digital
- : Signatures and XML Encryption support.
- xmlsec1-devel.x86_64 : Libraries, includes, etc. to develop applications with XML Digital
- : Signatures and XML Encryption support.
- Name and summary matches only, use "search all" for everything.
3. 安装第三方软件
使用yum install package-name命令安装第三方软件,如使用yum install git安装git
- [root@localhost ~]# yum install git
- Loaded plugins: fastestmirror, refresh-packagekit, security
- Loading mirror speeds from cached hostfile
- epel/metalink | 5.5 kB 00:00
- * base: mirrors.aliyun.com
- * epel: ftp.sjtu.edu.cn
- * extras: mirrors.aliyun.com
- * updates: mirror.bit.edu.cn
- epel | 4.4 kB 00:00
- epel/primary_db | 6.0 MB 01:19
- Setting up Install Process
- Resolving Dependencies
- --> Running transaction check
- ---> Package git.x86_64 0:1.7.1-3.el6_4.1 will be installed
- --> Processing Dependency: perl-Git = 1.7.1-3.el6_4.1 for package: git-1.7.1-3.el6_4.1.x86_64
- --> Processing Dependency: perl(Git) for package: git-1.7.1-3.el6_4.1.x86_64
- --> Processing Dependency: perl(Error) for package: git-1.7.1-3.el6_4.1.x86_64
- --> Running transaction check
- ---> Package perl-Error.noarch 1:0.17015-4.el6 will be installed
- ---> Package perl-Git.noarch 0:1.7.1-3.el6_4.1 will be installed
- --> Finished Dependency Resolution
- Dependencies Resolved
- ==================================================================================
- Package Arch Version Repository Size
- ==================================================================================
- Installing:
- git x86_64 1.7.1-3.el6_4.1 base 4.6 M
- Installing for dependencies:
- perl-Error noarch 1:0.17015-4.el6 base 29 k
- perl-Git noarch 1.7.1-3.el6_4.1 base 28 k
- Transaction Summary
- ==================================================================================
- Install 3 Package(s)
- Total download size: 4.7 M
- Installed size: 15 M
- Is this ok [y/N]: y
- Downloading Packages:
- (1/3): git-1.7.1-3.el6_4.1.x86_64.rpm | 4.6 MB 00:33
- (2/3): perl-Error-0.17015-4.el6.noarch.rpm | 29 kB 00:00
- (3/3): perl-Git-1.7.1-3.el6_4.1.noarch.rpm | 28 kB 00:00
- ----------------------------------------------------------------------------------
- Total 140 kB/s | 4.7 MB 00:34
- warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
- Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
- Importing GPG key 0xC105B9DE:
- Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>
- Package: centos-release-6-4.el6.centos.10.x86_64 (@anaconda-CentOS-201303020151.x86_64/6.4)
- From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
- Is this ok [y/N]: y (注:这里为输入的内容,导入GPG key)
- Running rpm_check_debug
- Running Transaction Test
- Transaction Test Succeeded
- Running Transaction
- Warning: RPMDB altered outside of yum.
- Installing : 1:perl-Error-0.17015-4.el6.noarch 1/3
- Installing : perl-Git-1.7.1-3.el6_4.1.noarch 2/3
- Installing : git-1.7.1-3.el6_4.1.x86_64 3/3
- Verifying : git-1.7.1-3.el6_4.1.x86_64 1/3
- Verifying : perl-Git-1.7.1-3.el6_4.1.noarch 2/3
- Verifying : 1:perl-Error-0.17015-4.el6.noarch 3/3
- Installed:
- git.x86_64 0:1.7.1-3.el6_4.1
- Dependency Installed:
- perl-Error.noarch 1:0.17015-4.el6 perl-Git.noarch 0:1.7.1-3.el6_4.1
- Complete!
在CentOS上安装第三方软件库EPEL的更多相关文章
- CentOS 如何使用第三方软件库-EPEL与RPMForge、RPMFusion软件库
在CentOS下运行yum install flash-plugin或yum install mplayer的时候,提示库里没有找到这个软件?为什么会这样?因为CentOS是RHEL编译过来的,去掉了 ...
- 如何在centos上安装epel源
一.EPEL是什么? EPEL (Extra Packages for Enterprise Linux,企业版Linux的额外软件包) 是Fedora小组维护的一个软件仓库项目,为RHEL/Cent ...
- 什么是EPEL 及 Centos上安装EPEL
RHEL以及他的衍生发行版如CentOS为了稳定,官方的rpm repository提供的rpm包为了服务器安全稳定更新往往是很滞后的,很多时候需要自己编译那太辛苦了,而EPEL恰恰可以解决这两方面的 ...
- 什么是EPEL 及 Centos上安装EPEL(转)
什么是EPEL 及 Centos上安装EPEL 转自:http://www.unxmail.com/read.php?67 RHEL以及他的衍生发行版如CentOS.Scientific Linux为 ...
- Linux系统入门学习:在CentOS上安装phpMyAdmin
问题:我正在CentOS上运行一个MySQL/MariaDB服务,并且我想要通过网络接口来用phpMyAdmin来管理数据库.在CentOS上安装phpMyAdmin的最佳方法是什么? phpMyAd ...
- 在CentOS上安装Java环境
如何使用yum方式在CentOS上安装Java环境,系统以CentOS6.4为例. 工具/原料 Java JDK yum库 CentOS6.4 方法/步骤 1 查看CentOS自带JDK是否已安装. ...
- centos上安装python环境
1.安装python-pip 首先安装epel扩展源: yum -y install epel-release 更新完成之后,安装pip: yum -y install python- ...
- NoSql1 在Linux(CentOS)上安装memcached及使用
前言: 今天是初五,生活基本要从过年的节奏中回归到正常的生活了,所以想想也该想想与工作有关的事情了.我之前在工作中会经常使用memcached和redis,但是自己一直没有时间系统的好好看 ...
- 在Ubuntu|CentOS上安装Shutter截图工具及快捷键设置
简介 Shutter前身叫GScrot,它是一款相当棒的截图软件. 通过Shutter,你可以截取包括选定区域.全屏幕.窗口.窗口内的控件甚至网页的图像.通过内置的强大插件机制,你可以在截图后,对图像 ...
随机推荐
- 用Python实现gmail邮箱服务,实现两个邮箱之间的绑定(上)
一.本程序的起源 当我决定去中科院实习的时候,我给刘奎恩老师发了封邮件.我对此事是非常看重的,因此经常使用浏览器,打开gmail去查看刘老师有没有给我回复.因为gmail的新邮件推送的功能仅限于打开浏 ...
- What's New in Core Data in iOS 7
What's New in Core Data in iOS 7 该文档主要描述coredata 在ios7的新功能特性. Core Data and iCloud 我们添加改进了对Core Data ...
- 关于MEF
MEF(Managed Extensibility Framework)是.NET Framework 4.0一个重要的库,Visual Studio 2010 Code Editor的扩展支持也是基 ...
- Redis系统学习 三、使用数据结构
前言:上一章,简单介绍了5种数据结构,并给出了一些用例.现在是时候来看看一些高级的,但依然很常见的主题和设计模式 一.大O表示法(Big O Notation ) 常用时间复杂度O(1)被认为是最快速 ...
- iOS多线程的初步研究
iOS多线程的初步研究(四) 理解run loop后,才能彻底理解NSTimer的实现原理,也就是说NSTimer实际上依赖run loop实现的. 先看看NSTimer的两个常用方法: + (NST ...
- node包管理器
NPM小结 nodejs的出现,可以算是前端里程碑式的一个事件,它让前端攻城狮们摆脱了浏览器的束缚,踏上了一个更加宽广的舞台.前端的可能性,从此更加具有想象空间. 随着一系列基于nodes的应用/ ...
- synchronized和volatile的使用
synchronized和volatile的使用 一步一步掌握线程机制(三)---synchronized和volatile的使用 现在开始进入线程编程中最重要的话题---数据同步,它是线程编程的核心 ...
- Alfred工具
神兵利器——Alfred 有人的地方就有江湖,有江湖就有纷争. 很多人说我的文字风格相对轻松和温和,那是因为我很早就认识到,我们没有教育脑残和喷子的义务.在网际多年,看过太多虚拟的刀锋和鲜血,很多人被 ...
- JSTL(JSP Standard Tag Library ,JSP标准标签库)
JSTL标签之核心标签 JSTL(JSP Standard Tag Library ,JSP标准标签库)是一个实现 Web应用程序中常见的通用功能的定制标记库集,这些功能包括迭代和条件判断.数据管 ...
- Android应用中使用AsyncHttpClient来异步网络数据
首先下载AsyncHttpClient的库文件,可以自行搜索,可以到下面地址下载 http://download.csdn.net/detail/xujinyang1234/5767419 测试的Ac ...