我已经添加了“EPEL”仓库:
Loaded plugins: changelog, downloadonly, fastestmirror, presto
Loading mirror speeds from cached hostfile
* elrepo: repos.mia.lax-noc.com
* epel: epel.gtdinternet.com
* remi-safe: remi.xpg.com.br
* rpmforge: mirror.rit.edu
repo id repo name status
base CentOS-6 - Base 6,518
elrepo ELRepo.org Community Enterprise Linux Repository - el6 333
epel Extra Packages for Enterprise Linux 6 - x86_64 11,743
extras CentOS-6 - Extras 38
mongodb-org-3.0 MongoDB Repository 40
remi-safe Safe Remi's RPM repository for Enterprise Linux 6 - x86_64 11
rpmforge RHEL 6 - RPMforge.net - dag 4,718
updates CentOS-6 - Updates 1,370
zabbix Zabbix Official Repository - x86_64 289
repolist: 25,060
但每次我跑步时:
sudo yum install redis
我明白了:
No package redis available.
Error: Nothing to do
笔记: 我已经跑过了:
sudo yum clean metadata
但是还是无法安装redis。
答案1
你是如何添加 EPEL 仓库的?以下是我在 CentOS 6.6-final 上可以使用的方法
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
yum install redis -y
答案2
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum --enablerepo=remi,remi-test install redis
答案3
sudo yum list redis
sudo yum install redis.x86_64 # something list before.
您可以使用 yum list 列出软件包,然后选择要安装的软件包。您收到“软件包不可用”的提示,是因为您输入的名称不存在,因此请在安装前列出。