Install Percona Server for MongoDB from binary tarball¶
You can find links to the binary tarballs under the Generic Linux menu item on the Percona website
There are the following tarballs available:
-
percona-server-mongodb-7.0.12-7-x86_64.glibc2.17.tar.gz
is the general tarball, compatible with any supported operating system except Ubuntu 22.04. -
percona-server-mongodb-7.0.12-7-x86_64.glibc2.35.tar.gz
is the tarball for Ubuntu 22.04. -
percona-mongodb-mongosh-7.0.12-7-x86_64.tar.gz
is the tarball formongosh
shell.
To check which glibc
version your system is using, run the following command:
$ ldd --version
Sample output
ldd (GNU libc) 2.28
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
What tarballs to choose¶
The following table helps you understand what tarball to download based on the glibc version of your operating system.
Operating system | Tarball to download | glibc version |
---|---|---|
Ubuntu 22.04 | percona-server-mongodb-7.0.12-7-x86_64.glibc2.35.tar.gz | glibc2.35 |
Ubuntu 20.04 | percona-server-mongodb-7.0.12-7-x86_64.glibc2.17.tar.gz | glibc2.31 |
Debian 12 | percona-server-mongodb-7.0.12-7-x86_64.glibc2.35.tar.gz | glibc2.36 |
Debian 11 | percona-server-mongodb-7.0.12-7-x86_64.glibc2.17.tar.gz | glibc2.31 |
Red Hat Enterprise 9 | percona-server-mongodb-7.0.12-7-x86_64.glibc2.17.tar.gz | glibc2.34 |
Red Hat Enterprise 8 | percona-server-mongodb-7.0.12-7-x86_64.glibc2.17.tar.gz | glibc2.28 |
Red Hat Enterprise 7 | percona-server-mongodb-7.0.12-7-x86_64.glibc2.17.tar.gz | glibc2.17 |
Tarball types¶
Type | Name | Description |
---|---|---|
Full | percona-server-mongodb-7.0.12-7-x86_64. |
Contains binaries and libraries |
Minimal | percona-server-mongodb-7.0.12-7-x86_64. |
Contains binaries and libraries without debug symbols |
Checksum | percona-server-mongodb-7.0.12-7-x86_64. |
Contains the MD5 checksum to verify the integrity of the files after extraction |
Preconditions¶
The following packages are required for the installation.
-
libcurl4
-
libsasl2-modules
-
libsasl2-modules-gssapi-mit
-
libcurl
-
cyrus-sasl-gssapi
-
cyrus-sasl-plain
Procedure¶
The steps below describe the installation on Debian 10 (“buster”).
-
Fetch and the binary tarballs:
2. Extract the tarballs$ wget https://www.percona.com/downloads/percona-server-mongodb-7.0/percona-server-mongodb-7.0.12-7/binary/tarball/percona-server-mongodb-7.0.12-7-x86_64.glibc2.17.tar.gz\ $ wget https://www.percona.com/downloads/percona-server-mongodb-7.0/percona-server-mongodb-7.0.12-7/binary/tarball/percona-mongodb-mongosh-2.2.10-x86_64.tar.gz
$ tar -xf percona-server-mongodb-7.0.12-7-x86_64.glibc2.17.tar.gz $ tar -xf percona-mongodb-mongosh-7.0.12-7-x86_64.tar.gz
-
Add the location of the binaries to the
PATH
variable:$ export PATH=~/percona-server-mongodb-7.0.12-7/bin/:~/percona-mongodb-mongosh-2.2.10/bin/:$PATH
-
Create the default data directory:
$ mkdir -p /data/db
-
Make sure that you have read and write permissions for the data directory and run
mongod
.
Next steps¶
Get expert help¶
If you need assistance, visit the community forum for comprehensive and free database knowledge, or contact our Percona Database Experts for professional support and services.