Skip to content

Installing Percona Server for MongoDB from binary tarball

Find links to the binary tarball under the Generic Linux menu item on the Percona website

There are two tarballs available:

  • percona-server-mongodb-4.4.29-28-x86_64.glibc2.17.tar.gz is the general tarball, compatible with any supported operating system except Ubuntu 22.04.

  • percona-server-mongodb-4.4.29-28-x86_64.glibc2.35.tar.gz is the tarball for Ubuntu 22.04.

Preconditions

The following packages are required for the installation.

  • libcurl4

  • libsasl2-modules

  • libsasl2-modules-gssapi-mit

  • libcurl

  • cyrus-sasl-gssapi

  • cyrus-sasl-plain

Check that they are installed in your operating system. Otherwise install them.

Procedure

The steps below describe the installation on Debian 10 (“buster”).

  1. Fetch and extract the binary tarball:

    $ wget https://downloads.percona.com/downloads/percona-server-mongodb-4.4/percona-server-mongodb-4.4.15-15/binary/tarball/percona-server-mongodb-4.4.15-15-x86_64.glibc2.17.tar.gz
    $ tar -xf percona-server-mongodb-4.4.15-15-x86_64.glibc2.17.tar.gz
    
  2. Add the location of the binaries to the PATH variable:

    $ export PATH=~/percona-server-mongodb-4.4.15-15/bin/:$PATH
    
  3. Create the default data directory:

    $ mkdir -p /data/db
    
  4. Make sure that you have read and write permissions for the data directory and run mongod.

Next steps

Connect to MongoDB

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.