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

# Use a YUM repository to install Percona XtraBackup

Ready-to-use packages are available from the Percona XtraBackup software repositories and the [Percona Software Downloads](https://www.percona.com/downloads) . The Percona yum repository supports popular `RPM`-based operating systems, including the `Amazon Linux AMI`.

Specific information on the supported platforms, products, and versions is described in [Percona Software and Platform Lifecycle](https://www.percona.com/release-lifecycle-overview/#mysql) .

## Install Percona XtraBackup from Percona `yum` repository

To install Percona XtraBackup from Percona `yum` repository, do the following steps:

1. Install the Percona yum repository by running the following command as the `root` user or with **sudo**:

   ```shell
   sudo yum install \
   https://repo.percona.com/yum/percona-release-latest.\
   noarch.rpm
   ```

   Expected output

   ```text
   Oracle Linux 9 BaseOS Latest (x86_64)           8.4 MB/s |  43 MB     00:05    
   Oracle Linux 9 Application Stream Packages (x86 8.6 MB/s |  47 MB     00:05    
   Last metadata expiration check: 0:00:06 ago on Wed Dec 11 14:12:54 2024.
   percona-release-latest.noarch.rpm                62 kB/s |  27 kB     00:00    
   Dependencies resolved.
   ...
   For more information, please visit:
   https://docs.percona.com/percona-software-repositories/percona-release.html


   Verifying        : percona-release-1.0-29.noarch                          1/1 

   Installed:
   percona-release-1.0-29.noarch                                                 

   Complete!
   ```

1. Enable the repository:

   ```shell
   sudo percona-release enable pxb-97-lts
   ```

   Expected output

   ```text
   * Enabling the Percona Packaging Repository repository
   <*> All done!
   ```

1. Install Percona XtraBackup.

   ```shell
   sudo yum install percona-xtrabackup-97
   ```

   Expected output

   ```text
   Percona Release release/noarch YUM repository    16 kB/s | 2.8 kB     00:00
   Percona Packaging Repository release/x86_64 YUM 209 kB/s |  60 kB     00:00
   Percona Telemetry release/x86_64 YUM repository  25 kB/s | 5.4 kB     00:00
   Dependencies resolved.
   ...
   Installing:
    percona-xtrabackup-97    x86_64  9.7.1-1.rc1.el9     pxb-97-lts-release-x86_64   41 M
   ...
   Complete!
   ```

1. Verify the installation.

   ```shell
   xtrabackup --version
   ```

   Expected output

   ```text
   xtrabackup version 9.7.2-3 based on MySQL server 9.7.1 Linux (x86_64) (revision id: b1c9c341)
   ```

1. To decompress backups made using `LZ4` or `ZSTD` compression algorithm, install the corresponding package:

   **Install the lz4 package**

   ```shell
   sudo yum install lz4
   ```

   **Install the zstd package**

   ```shell
   sudo yum install zstd
   ```

See also

To install Percona XtraBackup using downloaded rpm packages, see [Install with package manager](https://docs.percona.com/percona-xtrabackup/9.7/yum-download-rpm.md).

To uninstall Percona XtraBackup, see [Uninstall Percona XtraBackup](https://docs.percona.com/percona-xtrabackup/9.7/yum-uninstall-xtrabackup.md)
