Edited at

mongo 2.6.4 install on Ubuntu 14.04

More than 5 years have passed since last update.

http://tecadmin.net/install-mongodb-on-ubuntu/


$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
$ echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
$ sudo apt-get update
$ sudo apt-get install mongodb-org-server=2.6.4 mongodb-org-shell=2.6.4 mongodb-org-mongos=2.6.4 mongodb-org-tools=2.6.4
$ mongo --version
MongoDB shell version: 2.6.4

versionホールド(たぶん)


% echo "mongodb-org-server hold" | sudo dpkg --set-selections
% echo "mongodb-org-shell hold" | sudo dpkg --set-selections
% echo "mongodb-org-mongos hold" | sudo dpkg --set-selections
% echo "mongodb-org-tools hold" | sudo dpkg --set-selections