标签:ted 方案 安装 manage load attribute date 12c rpm -ivh
用yum安装软件时,经常发现我们的yum源里面没有该软件,比如htop。网上查到的一个方案是需要自己去wget源码,然后configure,make,make install,总体比较麻烦。
其实,CentOS还有一个源叫做 EPEL (Extra Packages for Enterprise Linux),为“红帽系”的操作系统提供额外的软件包,适用于RHEL、CentOS等,里面有1万多个软件,强烈建议安装。
首先我们需要安装一个叫“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%]
[root@99b8f912c857 ~]# yum clean all
[root@99b8f912c857 ~]# yum update
[root@99b8f912c857 ~]# yum install nginx
标签:ted 方案 安装 manage load attribute date 12c rpm -ivh
原文地址:https://www.cnblogs.com/davidshen/p/10334178.html