Skip to content

Install Percona Distribution for MongoDB

We recommend to install Percona Distribution for MongoDB from Percona repositories using the package manager of your operating system. Find the list of supported Linux distributions on the Percona Software and Platform Lifecycle page.

Alternatively, you can download Percona Distribution for MongoDB from Percona website and install it manually from binary tarballs.

Choose how you wish to install Percona Distribution for MongoDB:

Run the following commands as root or by using the sudo command.

  1. Install percona-release

    Install the percona-release repository management tool to subscribe to Percona repositories:

    • Install curl:

      $ sudo apt update
      $ sudo apt install curl
      
    • Download the percona-release package

      $ curl -O https://repo.percona.com/apt/percona-release_latest.generic_all.deb
      
    • Install the package and dependancies

      $ sudo apt install gnupg2 lsb-release ./percona-release_latest.generic_all.deb
      
    • Refresh the local cache

      $ supo apt update
      
  2. Enable the repository

    Percona provides two repositories for Percona Distribution for MongoDB. To enable a repo, we recommend using the setup command:

    $ sudo percona-release setup pdmdb-4.4
    
  3. Install Percona Distribution for MongoDB packages:

    $ sudo apt install percona-server-mongodb percona-backup-mongodb
    

To set up monitoring of your Percona Distribution for MongoDB in PMM, see Set up PMM to monitor MongoDB

Uninstall Percona Distribution for MongoDB

To uninstall Percona Distribution for MongoDB, remove the packages using the package manager of your operation system. Optionally, disable Percona repository.

See also

Uninstalling Percona Server for MongoDB:

Uninstalling Percona Backup for MongoDB