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.