使用EPEL和REMI第三方yum源



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]# ll total 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。

 

posted @ 2016-06-13 20:51  zengkefu  阅读(1665)  评论(0编辑  收藏  举报