[DOCS-9210] Comment on: "manual/tutorial/install-mongodb-on-red-hat.txt" Created: 26/Oct/16  Updated: 03/Nov/17  Resolved: 26/Oct/16

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Andrew Aldridge
Resolution: Duplicate Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

centos7

Location: https://docs.mongodb.com/master/tutorial/install-mongodb-on-red-hat/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
Screen Resolution: 1920 x 1080


Issue Links:
Duplicate
duplicates DOCS-9167 Repo install instructions for 3.4.0-r... Closed
Participants:
Days since reply: 7 years, 16 weeks ago

 Description   

I want to install mongodb , use yum.
when I run "sudo yum -y install mongodb-org" , it tell me "No package mongodb-org available."

ps:
[root@VM_201_217_centos yum.repos.d]# pwd
/etc/yum.repos.d
[root@VM_201_217_centos yum.repos.d]# cat mongodb-org-3.4.repo
[mongodb-org-3.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.3/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.4.asc
[root@VM_201_217_centos yum.repos.d]# sudo yum -y install mongodb-org
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile

  • base: mirrors.aliyun.com
  • extras: mirrors.aliyun.com
  • updates: mirrors.aliyun.com
    No package mongodb-org available.
    Error: Nothing to do
    [root@VM_201_217_centos yum.repos.d]#


 Comments   
Comment by Andrew Aldridge [ 26/Oct/16 ]

Hello,

If you want to install the stable release of MongoDB, please remove the mongodb-org-3.4.repo file you created, and follow the instructions here[1].

If you intended to follow the instructions to install our upcoming release's release candidate, there is a bug in the documentation that should be resolved shortly. The baseurl line in your repo file should read:

baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/testing/x86_64/

Please let me know if I can be of any more assistance!

Thanks,
Andrew Aldridge
The MongoDB Documentation Team

[1]: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/

Generated at Thu Feb 08 07:57:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.