添加rpmforge源 centos 7

(原创)RHEL/CentOS 7.x使用EPEL第三方yum源

时间 2014-07-22 19:45:50  服务器运维与网站架构

PS:EPEL和remi的yum源是很稳定的第三方yum安装源,也是我经常使用的,基于CentOS/RHEL 7.x的也有了,整理如下:(2015.10.25更新地址)

一、安装EPEL源:

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

# rpm -ivh epel-release-7-5.noarch.rpm


验证查看是否安装成功:

yum repolist 

添加rpmforge源 centos 7 - 骡子 - stupidmule@126 的博客

查看某个包的详细信息:

yum --enablerepo=epel info htop 

添加rpmforge源 centos 7 - 骡子 - stupidmule@126 的博客

列出epel源的所有包列表:

yum --disablerepo="*" --enablerepo="epel" list available | less

附:1、RHEL/CentOS 6.x的EPEL源安装方法:

## RHEL/CentOS 6 64-Bit ##

# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

# rpm -ivh epel-release-6-8.noarch.rpm


2、RHEL/CentOS 5.x的EPEL源安装方法:

## RHEL/CentOS 5 64-Bit ##

# wget http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

# rpm -ivh epel-release-5-4.noarch.rpm


二、安装remi源:注意:安装REMI库不要在启用了REMI库时运行yum update。因为REMI库的包名与RHEL/CentOS默认库中的相同,运行yum update可能会触发意外的更新。平时禁用REMI库,在你需要安装RMEI库中独有的包时再启用。安装REMI库之前,首先需要启用EPEL库,因为 REMI中的一些包依赖于EPEL。

安装步骤:

在CentOS 7上:

# rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

# rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi


在CentOS 6上:

# rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

# rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi


默认REMI是禁用的。要搜索或安装REMI仓库中的包,使用这些命令:

# yum --enablerepo=remi search php-fpm

# yum --enablerepo=remi install php-fpm
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值