install mongodb shell client without server
Where is the shell client for mongodb, I found a number of packages related to mongodb in Ubuntu 18.04 LTS but can't seem to find information where exactly is this client and what I should install.
I know that if I install the mongodb package the shell will be included but I don't need the server and other stuff because I have Atlas (cloud db server).
Here are the links I found on the internet:
https://packages.ubuntu.com/bionic/database/mongodb-clients
https://packages.ubuntu.com/bionic/mongo-tools
Does it make sense going trough all the trouble above and should I simply install the mongodb package?
18.04 package-management mongodb
add a comment |
Where is the shell client for mongodb, I found a number of packages related to mongodb in Ubuntu 18.04 LTS but can't seem to find information where exactly is this client and what I should install.
I know that if I install the mongodb package the shell will be included but I don't need the server and other stuff because I have Atlas (cloud db server).
Here are the links I found on the internet:
https://packages.ubuntu.com/bionic/database/mongodb-clients
https://packages.ubuntu.com/bionic/mongo-tools
Does it make sense going trough all the trouble above and should I simply install the mongodb package?
18.04 package-management mongodb
add a comment |
Where is the shell client for mongodb, I found a number of packages related to mongodb in Ubuntu 18.04 LTS but can't seem to find information where exactly is this client and what I should install.
I know that if I install the mongodb package the shell will be included but I don't need the server and other stuff because I have Atlas (cloud db server).
Here are the links I found on the internet:
https://packages.ubuntu.com/bionic/database/mongodb-clients
https://packages.ubuntu.com/bionic/mongo-tools
Does it make sense going trough all the trouble above and should I simply install the mongodb package?
18.04 package-management mongodb
Where is the shell client for mongodb, I found a number of packages related to mongodb in Ubuntu 18.04 LTS but can't seem to find information where exactly is this client and what I should install.
I know that if I install the mongodb package the shell will be included but I don't need the server and other stuff because I have Atlas (cloud db server).
Here are the links I found on the internet:
https://packages.ubuntu.com/bionic/database/mongodb-clients
https://packages.ubuntu.com/bionic/mongo-tools
Does it make sense going trough all the trouble above and should I simply install the mongodb package?
18.04 package-management mongodb
18.04 package-management mongodb
asked Mar 19 at 22:31
Vitaliy TerzievVitaliy Terziev
16310
16310
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
If you just want the mongo shell, you could install the mongodb-clients package mentioned in your question. However, note that this includes an older shell version (3.6.3).
The official MongoDB packages are updated with each minor release and you should ideally install a shell version matching your MongoDB server's major version (3.6, 4.0). Significant mismatches in shell versus server versions can result in some subtle errors as well as missing or outdated helpers. For example, the MongoDB 3.6.x shell doesn't have helpers for transactions (which were added in 4.0).
The MongoDB documentation includes information on Installing the official packages on Ubuntu. There is a mongodb-org-shell package which only includes the MongoDB shell, and you may also want to install mongodb-org-tools for other command-line tools (mongodump, mongorestore, ...).
It would be best to follow the instructions in the MongoDB documentation as some details may change in future (such as the signing key), but the general steps to follow for MongoDB 4.0 on Ubuntu 18.04 (Bionic) are:
Import the public key used to sign packages from MongoDB, Inc
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
Create a package list file for MongoDB
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
Update your local package database
sudo apt-get update
Install the desired MongoDB package(s)
sudo apt-get install -y mongodb-org-shell
Thanks for your insights Stennie, I think this is exactly what I wanted to know!
– Vitaliy Terziev
Mar 20 at 9:29
P.S. I ended up installing the clients package from Ubuntu reps, I always favor officially supported packages (by Ubuntu I mean, it's just easier most of the time) over installing from the internet, I needed it for testing purposes (the shell), 3.6.3 has the SSL and everything. However, I agree that in order to avoid as much issues as possible one should install recent versions of software (especially in production and stuff). And again - great and complete answer, very helpful!
– Vitaliy Terziev
Mar 20 at 13:39
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1127055%2finstall-mongodb-shell-client-without-server%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
If you just want the mongo shell, you could install the mongodb-clients package mentioned in your question. However, note that this includes an older shell version (3.6.3).
The official MongoDB packages are updated with each minor release and you should ideally install a shell version matching your MongoDB server's major version (3.6, 4.0). Significant mismatches in shell versus server versions can result in some subtle errors as well as missing or outdated helpers. For example, the MongoDB 3.6.x shell doesn't have helpers for transactions (which were added in 4.0).
The MongoDB documentation includes information on Installing the official packages on Ubuntu. There is a mongodb-org-shell package which only includes the MongoDB shell, and you may also want to install mongodb-org-tools for other command-line tools (mongodump, mongorestore, ...).
It would be best to follow the instructions in the MongoDB documentation as some details may change in future (such as the signing key), but the general steps to follow for MongoDB 4.0 on Ubuntu 18.04 (Bionic) are:
Import the public key used to sign packages from MongoDB, Inc
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
Create a package list file for MongoDB
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
Update your local package database
sudo apt-get update
Install the desired MongoDB package(s)
sudo apt-get install -y mongodb-org-shell
Thanks for your insights Stennie, I think this is exactly what I wanted to know!
– Vitaliy Terziev
Mar 20 at 9:29
P.S. I ended up installing the clients package from Ubuntu reps, I always favor officially supported packages (by Ubuntu I mean, it's just easier most of the time) over installing from the internet, I needed it for testing purposes (the shell), 3.6.3 has the SSL and everything. However, I agree that in order to avoid as much issues as possible one should install recent versions of software (especially in production and stuff). And again - great and complete answer, very helpful!
– Vitaliy Terziev
Mar 20 at 13:39
add a comment |
If you just want the mongo shell, you could install the mongodb-clients package mentioned in your question. However, note that this includes an older shell version (3.6.3).
The official MongoDB packages are updated with each minor release and you should ideally install a shell version matching your MongoDB server's major version (3.6, 4.0). Significant mismatches in shell versus server versions can result in some subtle errors as well as missing or outdated helpers. For example, the MongoDB 3.6.x shell doesn't have helpers for transactions (which were added in 4.0).
The MongoDB documentation includes information on Installing the official packages on Ubuntu. There is a mongodb-org-shell package which only includes the MongoDB shell, and you may also want to install mongodb-org-tools for other command-line tools (mongodump, mongorestore, ...).
It would be best to follow the instructions in the MongoDB documentation as some details may change in future (such as the signing key), but the general steps to follow for MongoDB 4.0 on Ubuntu 18.04 (Bionic) are:
Import the public key used to sign packages from MongoDB, Inc
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
Create a package list file for MongoDB
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
Update your local package database
sudo apt-get update
Install the desired MongoDB package(s)
sudo apt-get install -y mongodb-org-shell
Thanks for your insights Stennie, I think this is exactly what I wanted to know!
– Vitaliy Terziev
Mar 20 at 9:29
P.S. I ended up installing the clients package from Ubuntu reps, I always favor officially supported packages (by Ubuntu I mean, it's just easier most of the time) over installing from the internet, I needed it for testing purposes (the shell), 3.6.3 has the SSL and everything. However, I agree that in order to avoid as much issues as possible one should install recent versions of software (especially in production and stuff). And again - great and complete answer, very helpful!
– Vitaliy Terziev
Mar 20 at 13:39
add a comment |
If you just want the mongo shell, you could install the mongodb-clients package mentioned in your question. However, note that this includes an older shell version (3.6.3).
The official MongoDB packages are updated with each minor release and you should ideally install a shell version matching your MongoDB server's major version (3.6, 4.0). Significant mismatches in shell versus server versions can result in some subtle errors as well as missing or outdated helpers. For example, the MongoDB 3.6.x shell doesn't have helpers for transactions (which were added in 4.0).
The MongoDB documentation includes information on Installing the official packages on Ubuntu. There is a mongodb-org-shell package which only includes the MongoDB shell, and you may also want to install mongodb-org-tools for other command-line tools (mongodump, mongorestore, ...).
It would be best to follow the instructions in the MongoDB documentation as some details may change in future (such as the signing key), but the general steps to follow for MongoDB 4.0 on Ubuntu 18.04 (Bionic) are:
Import the public key used to sign packages from MongoDB, Inc
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
Create a package list file for MongoDB
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
Update your local package database
sudo apt-get update
Install the desired MongoDB package(s)
sudo apt-get install -y mongodb-org-shell
If you just want the mongo shell, you could install the mongodb-clients package mentioned in your question. However, note that this includes an older shell version (3.6.3).
The official MongoDB packages are updated with each minor release and you should ideally install a shell version matching your MongoDB server's major version (3.6, 4.0). Significant mismatches in shell versus server versions can result in some subtle errors as well as missing or outdated helpers. For example, the MongoDB 3.6.x shell doesn't have helpers for transactions (which were added in 4.0).
The MongoDB documentation includes information on Installing the official packages on Ubuntu. There is a mongodb-org-shell package which only includes the MongoDB shell, and you may also want to install mongodb-org-tools for other command-line tools (mongodump, mongorestore, ...).
It would be best to follow the instructions in the MongoDB documentation as some details may change in future (such as the signing key), but the general steps to follow for MongoDB 4.0 on Ubuntu 18.04 (Bionic) are:
Import the public key used to sign packages from MongoDB, Inc
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
Create a package list file for MongoDB
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
Update your local package database
sudo apt-get update
Install the desired MongoDB package(s)
sudo apt-get install -y mongodb-org-shell
answered Mar 20 at 7:02
StennieStennie
32628
32628
Thanks for your insights Stennie, I think this is exactly what I wanted to know!
– Vitaliy Terziev
Mar 20 at 9:29
P.S. I ended up installing the clients package from Ubuntu reps, I always favor officially supported packages (by Ubuntu I mean, it's just easier most of the time) over installing from the internet, I needed it for testing purposes (the shell), 3.6.3 has the SSL and everything. However, I agree that in order to avoid as much issues as possible one should install recent versions of software (especially in production and stuff). And again - great and complete answer, very helpful!
– Vitaliy Terziev
Mar 20 at 13:39
add a comment |
Thanks for your insights Stennie, I think this is exactly what I wanted to know!
– Vitaliy Terziev
Mar 20 at 9:29
P.S. I ended up installing the clients package from Ubuntu reps, I always favor officially supported packages (by Ubuntu I mean, it's just easier most of the time) over installing from the internet, I needed it for testing purposes (the shell), 3.6.3 has the SSL and everything. However, I agree that in order to avoid as much issues as possible one should install recent versions of software (especially in production and stuff). And again - great and complete answer, very helpful!
– Vitaliy Terziev
Mar 20 at 13:39
Thanks for your insights Stennie, I think this is exactly what I wanted to know!
– Vitaliy Terziev
Mar 20 at 9:29
Thanks for your insights Stennie, I think this is exactly what I wanted to know!
– Vitaliy Terziev
Mar 20 at 9:29
P.S. I ended up installing the clients package from Ubuntu reps, I always favor officially supported packages (by Ubuntu I mean, it's just easier most of the time) over installing from the internet, I needed it for testing purposes (the shell), 3.6.3 has the SSL and everything. However, I agree that in order to avoid as much issues as possible one should install recent versions of software (especially in production and stuff). And again - great and complete answer, very helpful!
– Vitaliy Terziev
Mar 20 at 13:39
P.S. I ended up installing the clients package from Ubuntu reps, I always favor officially supported packages (by Ubuntu I mean, it's just easier most of the time) over installing from the internet, I needed it for testing purposes (the shell), 3.6.3 has the SSL and everything. However, I agree that in order to avoid as much issues as possible one should install recent versions of software (especially in production and stuff). And again - great and complete answer, very helpful!
– Vitaliy Terziev
Mar 20 at 13:39
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1127055%2finstall-mongodb-shell-client-without-server%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown