cheng029 发表于 2019-2-15 13:02:55

CentOS EPEL yum源

  用yum安装软件时,经常发现我们的yum源里面没有该软件,比如htop。网上查到的一个方案是需要自己去wget源码,然后configure,make,make install,总体比较麻烦。
  其实,CentOS还有一个源叫做 EPEL (Extra Packages for Enterprise Linux),为“红帽系”的操作系统提供额外的软件包,适用于RHEL、CentOS等,里面有1万多个软件,强烈建议安装。
  安装 epel-release
  首先我们需要安装一个叫“epel-release”的软件包,这个软件包会自动配置yum的软件仓库。到下面的网址找你对应的CentOS版本和计算机架构:http://download.fedoraproject.org/pub/epel
  我的是64位的CentOS7,对应的地址是:https://mirrors.ustc.edu.cn/epel//7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
  下载并安装epel-release-7-11.noarch.rpm
  # wget https://mirrors.ustc.edu.cn/epel//7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
  –2018-01-06 03:11:37–https://mirrors.ustc.edu.cn/epel//7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
  Resolving docker.for.mac.localhost (docker.for.mac.localhost)… 192.168.65.1, 192.168.65.1
  Connecting to docker.for.mac.localhost (docker.for.mac.localhost)|192.168.65.1|:2323… connected.
  Proxy request sent, awaiting response… 200 OK
  Length: 15080 (15K)
  Saving to: ‘epel-release-7-11.noarch.rpm’
  100%[=========================================================================================================>] 15,080      –.-K/s   in 0s
  2018-01-06 03:11:37 (160 MB/s) – ‘epel-release-7-11.noarch.rpm’ saved
  # rpm -ivh epel-release-7-11.noarch.rpm

  warning: epel-release-7-11.noarch.rpm: Header V3 RSA/SHA256 Signature, key>  Preparing…                        #################################
  Updating / installing…
  1:epel-release-7-11                #################################
  更新yum源
  # yum clean all
  # yum update
  安装所需软件
  # yum install htop
  ——————— ————————————————————————————————————————————————————————————-

页: [1]
查看完整版本: CentOS EPEL yum源