Skip to content
Rate this page
☆ ☆ ☆ ☆ ☆
Thanks for your feedback
Thank you! The feedback has been submitted.

Get free database assistance or contact our experts for personalized support.

Configure Percona repositories with percona-release

The percona-release configuration tool enables users to automatically configure which Percona Software repositories are enabled or disabled. It supports both apt and yum repositories.

Usage

percona-release has the following syntax:

percona-release <COMMAND> (<REPOSITORY> | all) [<COMPONENT> | all] [<FLAGS>]

Run all commands as the root user or via sudo.

Commands

Available commands are enable, enable-only, disable, setup and show.

Important

The telemetry repository is enabled by default. Other Percona repositories are not enabled automatically beyond the selected product repository. Commands such as enable-only and setup disable other repositories. If required repositories are not enabled, package installation may fail or result in missing dependencies. Ensure that all required repositories for your environment are explicitly enabled.

show

The command shows the enabled repositories in your system:

$ sudo percona-release show

Note

The command shows enabled repositories, not available packages.

enable

The command turns on an additional Percona repository location. For example, the following command enables the ps-97-lts release repository location:

$ sudo percona-release enable ps-97-lts release

enable-only

This command turns off all Percona repository locations, and enables the listed repository location after that. The following example first disables all Percona repository locations and then enables psmdb-40 experimental:

$ sudo percona-release enable-only psmdb-40 experimental

disable

The command disables the specified repositories. The all flag disables all repositories.

For example, the following command will disable all repository locations:

$ sudo percona-release disable all

Note

The prel repository remains enabled. This repository stores the percona-release packages and is always enabled for percona-release to operate.

setup

The setup <PRODUCT> command disables all current Percona repository locations, then enables the correct release repositories given a product use, and updates the platform’s package manager database.

<PRODUCT> is the only parameter of this command, please refer to Repository locations for an overview of the available product repositories.

setup does not enable the Percona Server for MySQL 9.7 repository. Use enable-only instead. The following command disables all Percona repository locations and then enables the ps-97-lts release repository:

$ sudo percona-release enable-only ps-97-lts release

In non-interactive contexts, such as in scripts, requests for extra input may halt the program. Run setup with the -y option to provide the affirmative answer where input from the user would be requested in the interactive mode. enable-only does not prompt.

Flags

Available flags are: --scheme

--scheme

The --scheme flag enables you to choose what protocol to use when enabling repositories. Available options are HTTP and HTTPS. Default value is HTTP.

This flag is useful when you want to use HTTPS for security reasons or when your environment requires it.

For example, to use https when accessing the repository URL, run the following command:

$ sudo percona-release enable ps-97-lts release --scheme https

If no --scheme flag is specified, the default HTTP protocol is used.

You can use this flag with the enable, enable-only, disable, and setup commands.

Examples: All steps for installing a specific Percona product

Percona XtraDB Cluster 9.7 on RHEL 9:

$ sudo yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm
$ sudo percona-release enable-only pxc-97-lts release
$ sudo percona-release enable pxb-97-lts release
$ sudo yum install percona-xtrabackup-97

Percona Server for MySQL 9.7, Percona Toolkit, and Sysbench on Ubuntu 24.04:

$ sudo apt update
$ sudo apt install curl
$ curl -O https://repo.percona.com/apt/percona-release_latest.generic_all.deb
$ sudo apt install gnupg2 lsb-release ./percona-release_latest.generic_all.deb
$ sudo percona-release enable-only ps-97-lts release
$ sudo percona-release enable pt release
$ sudo apt update
$ sudo apt install percona-server-server percona-toolkit sysbench

Percona Server for MySQL 9.7 release package on RPM-based systems:

$ sudo yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm
$ sudo percona-release enable-only ps-97-lts release
$ sudo yum install percona-server-server

Percona Server for MongoDB 8.0 release package on Ubuntu or another DEB-based GNU/Linux distribution:

$ sudo apt update
$ sudo apt install curl gnupg2 lsb-release wget
$ wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb
$ sudo apt install ./percona-release_latest.$(lsb_release -sc)_all.deb
$ sudo percona-release enable psmdb-80 release
$ sudo apt update
$ sudo apt install percona-server-mongodb