zoukankan      html  css  js  c++  java
  • CentOS EPEL yum源

    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

    [root@99b8f912c857 ~]# 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) [application/x-redhat-package-manager]
    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 [15080/15080]
    
    [root@99b8f912c857 ~]# rpm -ivh epel-release-7-11.noarch.rpm
    warning: epel-release-7-11.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:epel-release-7-11                ################################# [100%]

    更新yum源

    [root@99b8f912c857 ~]# yum clean all
    [root@99b8f912c857 ~]# yum update

    安装所需软件

    [root@99b8f912c857 ~]# yum install nginx
  • 相关阅读:
    2018福大软工实践第二次结对作业
    2018福大软工实践第一次结对作业
    《构建之法》第三章读书笔记
    《构建之法》第八章读书笔记
    Beta版本冲刺前准备
    项目测评
    Alpha版本事后诸葛亮
    Alpha版本冲刺(十)
    Alpha版本冲刺(九)
    Alpha版本冲刺(八)
  • 原文地址:https://www.cnblogs.com/davidshen/p/10334178.html
Copyright © 2011-2022 走看看