CentOS安装第三方yum源EPEL

简介:

一、简介

EPEL是企业版 Linux 附加软件包的简称,EPEL是一个由Fedora特别兴趣小组创建、维护并管理的,针对 红帽企业版 Linux(RHEL)及其衍生发行版(比如 CentOS、Scientific Linux、Oracle Enterprise Linux)的一个高质量附加软件包项目。

EPEL 的软件包通常不会与企业版 Linux 官方源中的软件包发生冲突,或者互相替换文件。EPEL 项目与 Fedora 基本一致,包含完整的构建系统、升级管理器、镜像管理器等等。

附EPEL官网:http://fedoraproject.org/wiki/EPEL/zh-cn

二、下载并安装EPEL

CentOS 7 64位安装EPEL

1
2
3
[root@localhost ~] # wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
[root@localhost ~] # rpm -ivh epel-release-latest-7.noarch.rpm
[root@localhost ~] # yum repolist      ##检查是否已添加至源列表

CentOS 6 64位安装EPEL

1
2
3
4
5
[root@localhost ~] # wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
[root@localhost ~] # rpm -ivh epel-release-6-8.noarch.rpm
[root@localhost ~] # yum repolist      ##检查是否已添加至源列表
 
需要相应的兼容操作系统版本的epel包可以直接访问http: //dl .fedoraproject.org /pub/epel 查看,然后使用wget下载

RPM安装出现的错误:

错误:解压压缩文件  在文件/usr/share/doc/epel-release-7/GPL;55d6d507 失败:cpio: read 失败 - 没有该文件名或目录

出现该错误是由于下载的源文件出现错误,重新下载一遍就好了

三、使用yum安装epel

1
yum -y  install  epel-release















本文转自lq201151CTO博客,原文链接:http://blog.51cto.com/liuqun/1984107 ,如需转载请自行联系原作者



相关文章
|
13天前
|
Linux C语言
linux yum安装ffmpeg 图文详解
linux yum安装ffmpeg 图文详解
31 0
|
13天前
|
Linux
linux yum 安装rar和unrar
linux yum 安装rar和unrar
46 0
|
1天前
|
存储 Linux 网络安全
centos7使用yum网络安装
这些是使用Yum进行网络安装的基本步骤。根据你的需求,你可以重复步骤3和4来安装其他软件包。请注意,执行Yum操作需要root或具有sudo权限的用户。
10 1
|
4天前
|
应用服务中间件 nginx
yum 安装报错 No package nginx available Error:Nothing to do
yum 安装报错 No package nginx available Error:Nothing to do
11 1
|
13天前
|
缓存 Linux
linux centos7 挂载本地iso yum源
linux centos7 挂载本地iso yum源
57 0
|
13天前
|
关系型数据库 MySQL Linux
CentOS 7 下使用yum安装MySQL5.7.20 最简单 图文详解
CentOS 7 下使用yum安装MySQL5.7.20 最简单 图文详解
65 0
|
6月前
|
Web App开发 Linux 开发工具
Centos7 yum 安装chrome
Centos7 yum 安装chrome配置yum源vim /etc/yum.repos.d/google-chrome.repo写入以下内容[google-chrome]name=google-chromebaseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearchenabled=1gpgcheck=1gpgkey=http...
165 0
|
5月前
|
Linux
解决CentOS yum安装Mysql8提示“公钥尚未安装”或“密钥已安装,但是不适用于此软件包”的问题
解决CentOS yum安装Mysql8提示“公钥尚未安装”或“密钥已安装,但是不适用于此软件包”的问题
1369 0
|
2月前
|
Linux Shell
Linux:centos yum安装指令指南
Linux:centos yum安装指令指南
173 0
Linux:centos yum安装指令指南
|
8月前
|
消息中间件 Linux
centos7 yum快速安装rabbitmq服务
centos7 yum快速安装rabbitmq服务
137 0