yum install mongodb 3.2失败
问题描述:
我正在尝试在CentOS 7机器上安装mongodb 3.2,并且在查找软件包时遇到问题.
I am trying to install mongodb 3.2 on a CentOS 7 machine and facing issues in locating the packages.
我已根据文档更新了回购文件:
I have updated the repo file as per the documentation:
[mongodb-org-3.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/
gpgcheck=0
enabled=1
运行sudo yum install mongodb-org
时出现此错误:
[centos@ip-10-24-1-228 ~]$ sudo yum install mongodb-org
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.osuosl.org
* epel: linux.mirrors.es.net
* extras: mirror.lax.hugeserver.com
* updates: mirror.hmc.edu
No package mongodb-org available.
Error: Nothing to do
为什么会收到此消息?
Why do I get this message?
答
我弄清楚了我的问题所在.在我的yum.conf
文件中
I figured out what was my problem. It was in my yum.conf
file
exclude=mongodb-org,mongodb-org-server,mongodb-org-shell,mongodb-org-mongos,mongodb-org-tools
一旦我注释掉yum.conf
中的这一行,一切就很好了.
Once I commented out this line from yum.conf
, everything went fine.