Yum install mongodb-org on CentOS broken?

1,322 views
Skip to first unread message

Aaron Shirk

unread,
Jan 28, 2015, 9:26:56 AM1/28/15
to mongod...@googlegroups.com
I'm currently having issues installing mongodb-org on centos via yum.  This worked before but today is not working and trying to resolve the issue. 

I've been following instruction on installing mongodb via yum on CentOS.  


My mongodb.repo
==================
[mongodb]
name=MongoDB Repository
gpgcheck=0
enabled=1
==================


When I run the command 'yum install mongodb-org'  I get the following output:
==================
No package mongodb-org available.
Error: Nothing to do
==================


However, I noticed that only the 'unstable' version is being listed.  If I run 'yum search mongodb-org-unstable'   I see all the packages that I want installed.  
None of the stable versions appear to be available to yum, or yum simply does not see them. 

I've tried running:
- yum clean all
- yum update yum


And still no affect.  Any ideas what I'm doing incorrect?  Or perhaps is there an issue with the mongodb repo?


akira.k...@10gen.com

unread,
Feb 3, 2015, 11:46:27 PM2/3/15
to mongod...@googlegroups.com

Hi Aaron.

I would step back into the operation of yum a bit first. On a CentOS system I had to manually add a repo file first (per http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/). But it looks like you did that perfectly already.

So just to check yum does have the repo in it's repolist:

[root@ip-172-31-2-127 ~]# yum repolist
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: centos.nsw.au.glomirror.com.au
 * extras: centos.mirror.uber.com.au
 * updates: centos.nsw.au.glomirror.com.au
repo id                             repo name                                       status
base                                CentOS-6 - Base                                 6,518
cr                                  CentOS-6 - CR                                       0
extras                              CentOS-6 - Extras                                  36
mongodb                             MongoDB Repository                                250
updates                             CentOS-6 - Updates                                710
repolist: 7,514
 

If mongodb repo is there, then the following package name search should find something.

[root@ip-172-31-2-127 ~]# yum search mongodb-org
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: centos.mirror.digitalpacific.com.au
 * extras: centos.mirror.uber.com.au
 * updates: centos.mirror.uber.com.au
=================== N/S Matched: mongodb ===================
mongodb-org.x86_64 : MongoDB cross-platform document-oriented database system
                   : (metapackage)
mongodb-org-mongos.x86_64 : MongoDB sharding router
mongodb-org-server.x86_64 : MongoDB database server
....
....


And alternative to the search above would be to yum list | grep '\bmongodb\s*$' to see all packages found in the repo.

If those succeed I can't think of any other reason why "yum install mongodb-org" would give a "No package <X> available." message.

Cheers,

Akira

(P.S. it would be helpful to know the CentOS version you have.)

Reply all
Reply to author
Forward
0 new messages