I want to install mongodb in debian jessie, but debian repo only has mongodb 2.4 and I need mongodb 3.x.Mongodb web page instructions for installing latest mongodb in debian only supports wheezy.sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927echo deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 main | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.listsudo apt-get updatesudo apt-get install -y mongodb-orgCan I install it this way despite being for wheezy or would it be better to install it from the tar.gz and deal with unmet dependencies by hand?
How to install mongodb 3.x in debian jessie (8)?. mongodb web only supports wheezy
debian;mongodb
You can follow the instructions in the MongoDB official sitefirst, import the MongoDB public GPG Keysudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927add a source.list configuration fileDebian 7 (wheezy)echo deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 main | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list    Debian 8 (jessie)echo deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.2 main | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.listreload aptitude cachesudo apt-get updateand finally install the desired version of MongoDBsudo apt-get install -y mongodb-org=3.2.10 mongodb-org-server=3.2.10 mongodb-org-shell=3.2.10 mongodb-org-mongos=3.2.10 mongodb-org-tools=3.2.10