Installing MongoDB

Hi guys,

I’m working my way through the backend challenges but I’ve hit a road block trying to install MongoDB in my Cloud 9 environment. I followed the course instructions:

sudo apt-get install mongodb-org

But apparently the apt-get command has been replaced with yum on Amazon Linux, but that command does not work either, returning

No package mongodb-org available.
Error: Nothing to do

I’ve tried simply using npm install mongodb, mongod, mongodb-org but none of them seem to work. I’ve followed several guides ( to no avail.

I saw a post on the same subject and the poster seemed to have resolved the issue but did no specify how. I’m totally stumped and if anyone could help me figure out what I’m doing wrong it would be much appreciated.


If it’s using yum my guess is that it’s a CentOS or Fedora system instead of a Debian. I’d try looking at what Linux distro your c9 workspace is and googling “install MongoDB in <whatever> using yum” and use those resources.

Alternatively, you can look at the new MongoDB exercises that are still in Beta here. They don’t use Cloud9. Just keep in mind that they may not be perfect yet.