How do I install latest version of mongodb-clients
on Ubuntu using apt-get
?
apt-get install mongodb-clients
only installs version 2.4.9
.
How do I install latest version of mongodb-clients
on Ubuntu using apt-get
?
apt-get install mongodb-clients
only installs version 2.4.9
.
On Ubuntu 16.04:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
sudo apt-get update
sudo apt-get install mongodb-org-tools
So the important thing is: use mongodb-org-tools
instead of mongodb-clients
Edit: mongodb-org-shell
has to be used to install the mongo
shell.
Use official MongoDB Documents they already mentioned how to install a version of your choice. Steps for installation for Ubuntu 12.04 and 14.04
For Ubuntu 16.04 use this
NOTE:- Before that beware that you don't have any existing repository file for MongoDB. You can check using sudo apt-get update
.While updating it will show if you have any. If you have then delete it using sudo rm /etc/apt/sources.list.d/mongodb*.list
and then install MongoDB
For mongodb 3.2, below packages are supported. In order to use mongo shell, you need to install mongo-org-shell. Choose the right package according to your requreiements.
install mongodb on ubuntu
mongodb-org-tools
instead ofmongodb-clients
– Alexander Zeitler Sep 1 '17 at 7:35