Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install mongodb-clients latest version on Ubuntu?

Tags:

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.

like image 975
Alexander Zeitler Avatar asked Sep 01 '17 07:09

Alexander Zeitler


People also ask

What is the latest MongoDB version?

MongoDB Latest Version - 6.0 | MongoDB | MongoDB.


2 Answers

On Ubuntu 16.04 to get the 4.2 mongo client

wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add - echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list  sudo apt-get update sudo apt-get install mongodb-org-shell 
like image 90
Alexander Zeitler Avatar answered Oct 13 '22 00:10

Alexander Zeitler


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

like image 42
Vineet Jain Avatar answered Oct 13 '22 00:10

Vineet Jain