博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
使用EPEL和REMI第三方yum源
阅读量:4516 次
发布时间:2019-06-08

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

http://dl.fedoraproject.org/pub/epel/ epel-release-latest-5.noarch.rpm       redhat5 epel-release-latest-6.noarch.rpm       redhat6 epel-release-latest-7.noarch.rpm       redhat7 安装他们系统中
验证查看是否安装成功:yum repolist

[root@localhost yum.repos.d]# yum repolist

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: mirror01.idc.hinet.net
repo id repo name status
base CentOS-5Server - Base 3,667
epel Extra Packages for Enterprise Linux 5 - x86_64 6,674
extras CentOS-5Server - Extras 266
updates CentOS-5Server - Updates 749
repolist: 11,356

查看某个包的详细信息:yum --enablerepo=epel info htop

root@localhost yum.repos.d]# yum --enablerepo=epel info htop

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: mirror01.idc.hinet.net
Available Packages
Name : htop
Arch : x86_64
Version : 1.0.3
Release : 1.el5
Size : 88 k
Repo : epel
Summary : Interactive process viewer
URL : http://hisham.hm/htop/
License : GPL+
Description: htop is an interactive text-mode process viewer for Linux, similar to

列出epel源的所有包列表: yum --disablerepo="*" --enablerepo="epel" list available | less [root@localhost yum.repos.d]# yum --disablerepo="*" --enablerepo="epel" list available |grep htop

   htop.x86_64 1.0.3-1.el5 epel

   这个可用于:查找相关的包集合,然后选择

remi库 http://rpms.famillecollet.com/enterprise/

  remi-release-4.rpm

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

   

   remi-release-5.rpm

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

  

   remi-release-6.rpm

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

  

   remi-release-7.rpm

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

 

yum --enablerepo=remi info htop  
两个源已安装OK [root@localhost yum.repos.d]# pwd/etc/yum.repos.d[root@localhost yum.repos.d]# lltotal 24-rw------- 1 root root 1528 Jun 30  2015 CenOS-Base.repo-rw------- 1 root root    0 Jun 30  2015 CenOS-Base.repo~-rw-r--r-- 1 root root  954 Aug 11  2010 epel.repo-rw-r--r-- 1 root root 1054 Aug 11  2010 epel-testing.repo-rw-r--r-- 1 root root 2298 Mar  1  2014 remi.repo
注意:安装REMI库不要在启用了REMI库时运行yum update。因为REMI库的包名与RHEL/CentOS默认库中的相同,运行yum update可能会触发意外的更新。平时禁用REMI库,在你需要安装RMEI库中独有的包时再启用。安装REMI库之前,首先需要启用EPEL库,因为REMI中的一些包依赖于EPEL。

 

转载于:https://www.cnblogs.com/zengkefu/p/5582033.html

你可能感兴趣的文章
程序员为什么热衷造轮子?
查看>>
有关排序的贪心策略的一种证明思想
查看>>
异常继承限制
查看>>
POJ 1083 Moving Tables
查看>>
用Android-X86和VirtualBox打造高性能Android开发环境
查看>>
【机器学习】粗糙集属性约简算法与mRMR算法的本质区别
查看>>
【Luogu4921】情侣?给我烧了!(组合计数)
查看>>
关于html中对换行的处理
查看>>
Influence Maximazation
查看>>
二叉查找树
查看>>
screen乱码问题
查看>>
Java HashSet的元素内容变化导致的问题
查看>>
pymysql模块
查看>>
jgGrid pivot reload重新加载及刷新数据
查看>>
C# 根据空格数截取
查看>>
清爽配色16种
查看>>
海量数据 & 网站中用户积分排名问题
查看>>
MySQL 5.7.25 在Windows 7中安装的记录
查看>>
原型以及原型链的学习随笔
查看>>
2-3树
查看>>