Differences of MongoDB Installation Methods on Linux

29 views
Skip to first unread message

Bruce YU

unread,
Sep 28, 2016, 10:31:20 PM9/28/16
to mongodb-user
I am new to MongoDB and try to install MongoDB 3.2.9 on Ubuntu 14.01 LTS.
I found there are different ways to install it as below:
  1. The MongoDB official guidance use the apt-get install.
  2. Download the package and create folders like bin, data, log, conf etc. and then manually and copy the corresponding modules to the bin when needed.

I am wondering which method should I use. Seems the second one is more flexible as it's hard to make sense what the first one has done to the OS. 
Could you advise any other impact and differences about the two methods for installation? Thanks in advance!

Wan Bachtiar

unread,
Oct 6, 2016, 3:01:20 AM10/6/16
to mongodb-user

Could you advise any other impact and differences about the two methods for installation?

The MongoDB official guidance use the apt-get install.

Hi Bruce,

apt-get is a command line package management tool supplied with Debian package apt. See also Advanced Packaging Tool .

Mostly, apt-get does two things:

  • Checks for dependencies and asks to install them.

  • Downloads the package, verifies it and executes dpkg to install it. In this case the package is mongodb-org_x.x.x.deb

Note that apt-get is the default package manager in Ubuntu, it's not a MongoDB specific tool. See Ubuntu: Package Management.

Please refer to MongoDB: Ubuntu install for more information.

Download the package and create folders like bin, data, log, conf etc. and then manually and copy the corresponding modules to the bin when needed.

Generally it is recommended to install from the supported packages related to the specific platforms. i.e. .deb for debian, .rpm for RHEL, etc. As these packages provide improved performance and TLS/SSL support. For systems without supported packages, MongoDB provides a generic Linux release via a tarball package. These versions of MongoDB may not include TLS/SSL support and may not perform as well as the targeted packages, but are compatible on most contemporary Linux systems.

Please refer to MongoDB: Install from Tarball for more information.

You may also find Verity Integrity of MongoDB Packages useful.

Regards,

Wan.

Reply all
Reply to author
Forward
0 new messages