> For the complete documentation index, see [llms.txt](https://docs.percona.com/percona-clustersync-for-mongodb/llms.txt).

# Install Percona ClusterSync for MongoDB from Percona repositories

To install the software from Percona repositories means to subscribe to them. Percona provides the [`percona-release`](https://www.percona.com/doc/percona-repo-config/index.html) repository management tool. It automatically enables the required repository so that you can install and update both Percona ClusterSync for MongoDB packages and required dependencies smoothly.

## Before you start

Check the following resources:

- [system requirements](https://docs.percona.com/percona-clustersync-for-mongodb/system-requirements.md)
- [known limitations](https://docs.percona.com/percona-clustersync-for-mongodb/limitations.md)
- [supported operating systems](https://www.percona.com/services/policies/percona-software-support-lifecycle#mongodb) .

Data migration is a resource-intensive task. Therefore, we recommend installing PCSM on the instance closest to the target to reduce the network lag as much as possible.s

## Procedure

*Warning:* Run the following commands as root or via the `sudo` command.

**On Debian and Ubuntu**

1. Install `percona-release`:

   1. Install the `curl` download utility if it’s not installed already:

      ```bash
      $ sudo apt update
      $ sudo apt install curl
      ```

   1. Download the `percona-release` repository package:

      ```bash
      $ curl -O https://repo.percona.com/apt/percona-release_latest.generic_all.deb
      ```

   1. Install the downloaded repository package and its dependencies using `apt`:

      ```bash
      $ sudo apt install gnupg2 lsb-release ./percona-release_latest.generic_all.deb
      ```

   1. Refresh the local cache to update the package information:

      ```bash
      $ sudo apt update
      ```

1. Enable the repository

   ```bash
   $ sudo percona-release enable pcsm release
   ```

1. Install the package:

   ```bash
   $ sudo apt install percona-clustersync-mongodb
   ```

**On RHEL and derivatives**

1. Install `percona-release`:

   Run the following command as the `root` user or with `sudo` privileges:

   ```bash
   $ sudo yum install -y https://repo.percona.com/yum/percona-release-latest.noarch.rpm
   ```

1. Enable the repository

   ```bash
   $ sudo percona-release enable pcsm release
   ```

1. Install the package:

   ```bash
   $ sudo yum install percona-clustersync-mongodb
   ```

**On Amazon Linux 2023**

1. Install `percona-release`:

   Run the following command as the `root` user or with `sudo` privileges:

   ```bash
   $ sudo yum install -y https://repo.percona.com/yum/percona-release-latest.noarch.rpm
   ```

1. Enable the repository

   ```bash
   $ sudo percona-release enable pcsm release
   ```

1. Install the package:

   ```bash
   $ sudo yum install percona-clustersync-mongodb
   ```

Congratulations! You have successfully installed Percona ClusterSync for MongoDB. Now you must connect it to source and target MongoDB deployments.

## Next steps

[Configure authentication](https://docs.percona.com/percona-clustersync-for-mongodb/install/authentication.md)
