如何在CentOS 5/6上安装EPEL源
来源:互联网 发布:美国阿富汗战争知乎 编辑:程序博客网 时间:2024/05/24 04:01
在CentOS 上安装EPEL
要想安装EPEL,我们先要下载EPEL的rpm安装包。
CentOS/RHEL下的6.x和5.x版本下载页面如下
http://download.fedoraproject.org/pub/epel/6/i386/repoview/epel-release.htmlhttp://download.fedoraproject.org/pub/epel/5/i386/repoview/epel-release.html
以上网址可能会被重定向到特定的镜像站而加快下载速度。这个页面包含可以直接获取到rpm包的下载链接。直接的下载链接如下:
http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpmhttp://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
根据你的CentOS 版本来选择正确的下载地址。
请注意EPEL 的安装包是独立编译的,所以它可以安装在32位和64位系统中。
1. 确认你的CentOS 的版本
首先通过以下命令确认你的CentOS 版本
$ cat /etc/RedHat-release CentOS release 6.4 (Final)
2. 下载EPEL 的rpm 安装包
现在从上面的地址下载CentOS 版本所对应的EPEL 的版本
$ wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
3. 安装EPEL
通过以下命令安装EPEL 软件包
$ sudo rpm -ivh epel-release-6-8.noarch.rpm
或
$ sudo rpm -ivh epel-release*
5. 检查EPEL 源
安装好EPEL 源后,用yum 命令来检查是否添加到源列表
# yum repolistLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: mirrors.vonline.vn * epel: buaya.klas.or.id * extras: centos-hn.viettelidc.com.vn * updates: mirrors.fibo.vnrepo id repo name statusbase CentOS-6 - Base 6,381epel Extra Packages for Enterprise Linux 6 - x86_64 10,023extras CentOS-6 - Extras 13nginx nginx repo 47updates CentOS-6 - Updates 1,555repolist: 18,019
EPEL已经在repo 后列出,并且显示提供了上万个软件包,所以EPEL 已经安装到你的CentOS了。
EPEL源的配置安装到了 /etc/yum.repos.d/epel.repo 文件。
现在来试一下从EPEL 获取软件包
$ sudo yum install htop
相关阅读:
CentOS 5/6.X 使用 EPEL YUM源 http://www.linuxidc.com/Linux/2013-08/88523.htm
RHEL/CentOS/Fedora各种源(EPEL、Remi、RPMForge、RPMFusion)配置 http://www.linuxidc.com/Linux/2013-05/85077.htm
配置EPEL YUM源 http://www.linuxidc.com/Linux/2012-10/71850.htm
为CentOS/RHEL添加EPEL软件仓库 http://www.linuxidc.com/Linux/2010-04/25734.htm
RedHat配置EPEL软件源 http://www.linuxidc.com/Linux/2012-04/58309.htm
- 如何在CentOS 5/6上安装EPEL 源
- 如何在CentOS 5/6上安装EPEL源
- <转>如何在CentOS 5/6上安装EPEL 源
- 如何在CentOS 5/6上安装EPEL源
- 如何在CentOS 5/6上安装EPEL源
- 如何在CentOS 5/6上安装EPEL源
- 如何在CentOS 5/6/7上安装EPEL 源
- 如何在CentOS 5/6上安装EPEL 源
- 如何在CentOS 5/6上安装EPEL 源
- 如何在CentOS 5/6上安装EPEL源
- 如何在CentOS 5/6上安装EPEL 源
- 如何在CentOS 5/6上安装EPEL 源
- 如何在CentOS 5/6上安装EPEL 源
- 如何在centos上安装epel源
- 如何在CentOS上安装EPEL源
- 如何在CentOS 5/6上安装EPEL源(备忘)
- 如何在CentOS 6.5上安装EPEL 源
- 在CentOS 上安装EPEL源
- 2522A simple problem
- Codeforces Round #337 (Div. 2) E. Alphabet Permutations (线段树lazy 或 set)
- XAML那些事儿
- 详细分析推荐系统和搜索引擎的差异陈运文
- 树
- 如何在CentOS 5/6上安装EPEL源
- IOS之Info.plist文件简介
- haproxy简单配置说明
- Android学习路线指南
- 含文本框的提示框的使用->UIAlertController类的使用(用户登录界面实例)
- dom4j简单使用
- MVVM实践教程
- 文章标题
- vs2010 如何去掉红色波浪线