Mongodb installation

If I download Mongodb compatible with SLES12 and install in openSuse 42.2, will Mongodb work. Will we face any issue?

There’s no need because MongoDB 3.2.11 is available in the server:database repository; https://software.opensuse.org/package/mongodb

Hi. There is a 3.4 version there, but it misses the mongodb-tools package, so the tools like mongoimport/mongoexport are missing in this installation. Installing a matching version of mongodb-tools rpm for SUSE12 from mongodb.org conflicts with this package. Can you suggest how to install mongodb-tools?

Why not use the 3.4.4 SLE12 version of MongoDB itself from them as well?

I may be wrong, but mongodb-tools looks to be a completely separate project from mongodb, so version numbers are probably unimportant and not necessarily related to the mongodb version. The following is the mongodb-tools project, and a cursory skim of the README (which is also the default page you see at the project) doesn’t list any specific mongodb dependencies.

https://github.com/mongodb/mongo-tools

As for your “conflict” when you installed that version of mongodb-tools, I’d have to see the exact error to evaluate whether it’s a show-stopper or not.

So,
That suggests…

  • You can try using any mongodb-tools RPM package from software.opensuse.org and it will likely work. You <may> prefer to use a later build. You might even download a TW RPM and try installing it (I’d caution against adding the repo, just d/l the RPM).
  • If you’d <really> like to have the latest and greatest mongodb-tools, the instructions for building looks very easy… It’s practically all automated. You only need to install the Go language on your system and then execute the few required commands on the project page.

HTH,
TSU