How to install mongodb-clients latest version on Ubuntu?

后端 未结 5 802
说谎
说谎 2021-02-19 01:41

How do I install latest version of mongodb-clients on Ubuntu using apt-get?

apt-get install mongodb-clients only installs version

5条回答
  •  不知归路
    2021-02-19 02:12

    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
    

提交回复
热议问题