Skip to content

Instantly share code, notes, and snippets.

@hpherzog
Created September 13, 2015 11:34
Show Gist options
  • Save hpherzog/edec024375773286c7e9 to your computer and use it in GitHub Desktop.
Save hpherzog/edec024375773286c7e9 to your computer and use it in GitHub Desktop.
Install mongodb version 3.0.x on debian jessie
#!/bin/sh
apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 main" | tee /etc/apt/sources.list.d/mongodb-org-3.0.list
apt-get update
apt-get install -y mongodb-org
@uwang
Copy link

uwang commented May 16, 2016

oh.it does not work.
E: Unable to locate package mongodb-org

@agrothe
Copy link

agrothe commented May 16, 2016

Works fine, just need to be root for the echo command. Sudo didn't like it.

@saburo70
Copy link

Does not work for me :(
Using a debian 8 32 bit VM, can install mongo 2.4, but not 3.0, I still get
E: Unable to locate package mongodb-org
I am logged in the VM as root

@saburo70
Copy link

... and it worked on a Debian 8 64 bit VM.
Guess the package is just not available for 32 bit architectures

@duolaaa
Copy link

duolaaa commented Oct 12, 2016

it work on debian 8.2 jessie, 64 bit VM, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment