博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Install EPEL Repo on a CentOS and RHEL 7.x
阅读量:7183 次
发布时间:2019-06-29

本文共 2982 字,大约阅读时间需要 9 分钟。

hot3.png

How to install RHEL EPEL repository on Centos 7.x or RHEL 7.x

The following instuctions assumes that you are running command as root user on a CentOS/RHEL 7.x system and want to use use Fedora Epel repos.

Install the extra EPEL repositories

The command is as follows to download epel release for CentOS and RHEL 7.x using wget command:

wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

To install epel-release-7-0.2.noarch.rpm, type:

  sudo yum install epel-release-7-5.noarch.rpm 

Sample outputs:

Loaded plugins: amazon-id, rhui-lbExamining epel-release-7-0.2.noarch.rpm: epel-release-7-0.2.noarchMarking epel-release-7-0.2.noarch.rpm to be installedResolving Dependencies--> Running transaction check---> Package epel-release.noarch 0:7-0.2 will be installed--> Finished Dependency Resolution Dependencies Resolved  =========================================================================================== Package             Arch          Version         Repository Size =========================================================================================== Installing: epel-release        noarch 7-0.2 /epel-release-7-0.2.noarch 22 k Transaction Summary =========================================================================================== Install 1 Package Total size: 22 kInstalled size: 22 kIs this ok [y/d/N]: yDownloading packages:Running transaction checkRunning transaction testTransaction test succeededRunning transaction  Installing : epel-release-7-0.2.noarch 1/1 Verifying  : epel-release-7-0.2.noarch 1/1  Installed:  epel-release.noarch 0:7-0.2  Complete! 

List your new repos

Once installed you should see epel repo using the following 

$ sudo yum repolist
Sample outputs:

Loaded plugins: amazon-id, rhui-lbrepo id                                         repo name                            statusepel/x86_64                                     Extra Packages for Enterprise Linux  4,444rhui-REGION-client-config-server-7/x86_64       Red Hat Update Infrastructure 2.0 Cl     1rhui-REGION-rhel-server-releases/7Server/x86_64 Red Hat Enterprise Linux Server 7 (R 4,457repolist: 8,902

Search and install package

To list all avialble packages under a repo called epel, enter:

$ sudo yum --disablerepo="*" --enablerepo="epel" list available
OR
$ sudo yum --disablerepo="*" --enablerepo="epel" list available | grep 'package'
OR
$ sudo yum --disablerepo="*" --enablerepo="epel" list available | less
Sample outputs:

Fig. 01: List all available packages under a EPEL Repo on a CentOS/RHEL/Fedora Linux

Example: Search and install htop package from epel repo on a CentOS/RHEL 7.x

The commands are as follows:

## search it ## sudo yum search htop  ## get more info, if found ## sudo yum info htop  ## install it ## sudo yum install htop 

And, there you have it, a larger number of packages to install from EPEL repo on a CentOS and Red Hat Enterprise Linux (RHEL) version 7.x.

转载于:https://my.oschina.net/renguijiayi/blog/288355

你可能感兴趣的文章
探索两种优雅的表单验证——策略设计模式和ES6的Proxy代理模式
查看>>
Linux系统如何低于TCP洪水攻击
查看>>
【117天】尚学堂高琪Java300集视频精华笔记(13-17)
查看>>
redis数据迁移
查看>>
NodeJS文档之Module(1)-Module的简介
查看>>
使用User authentication and permissions
查看>>
Yii2 数据库复制和读写分离
查看>>
Facebook 将关闭旗下云端服务器 Parse
查看>>
解耦小技巧 - 接口最基本的使用策略
查看>>
[ ES6 ] 二. 使用 Babel 编译你的ES6代码
查看>>
java线程
查看>>
为医疗信息化插上智慧的翅膀
查看>>
Linux下的自动化运维ansible工具
查看>>
第九节:python pickle序列化、装饰器、模块
查看>>
我的友情链接
查看>>
windows XP 获取网卡MAC和IP地址
查看>>
python对象类型与运算
查看>>
SNMP 诊断方法
查看>>
ELK日志分析集群部署笔记
查看>>
随机挑几个--脚本
查看>>