Skip to content

Install Percona Server for MySQL using downloaded RPM packages

You should be aware that when you install packages manually, you must resolve and install any dependencies. This process may involve finding and installing the necessary dependencies before installing the packages. Dependencies are other packages that a package may need to function correctly. For example, a package may rely on a specific library. If that library is not installed, or if the installed library is the wrong version, the package may not work correctly.

Package managers, like APT or YUM install the dependencies for you.

Download the packages from Percona Product Downloads. If needed, Instructions for the Percona Product Download are available.

The following example downloads Percona Server for MySQL 8.0.29-21 release packages for RHEL 8.

  1. Using Wget, the following command downloads a specific version of Percona Server for MySQL on Red Hat Enterprise Linux 8 from the Percona website.

    $ wget
  2. The following command extracts the contents of Percona Server for MySQL tarball. The tar command uses these options for the extraction:

    • x - extract

    • v - a verbose description of the tar extraction

    • f - name of the archive file

    $ tar xvf Percona-Server-8.0.29-21-rc59f87d2854-el8-x86_64-bundle.tar
  3. The following command uses the ls utility to list the RPM files in the current directory. The command uses the *.rpm pattern. The * is a wildcard that matches any number of characters. The .rpm specifies that we only want the files that end in this extension.

    $ ls *.rpm
    The output should look like the following:

    Expected output
  4. [Optional] Install jemalloc. The following command downloads a specific version of jemalloc for RHEL 8 from the Percona repository.

    $ wget
  5. An EL8-based RHEL distribution or derivatives package installation requires you to disable the mysql module. We are installing a different version than the one provided by the module, so we must disable the module before installation.

    $ sudo yum module disable mysql
  6. The following command uses superuser privileges to install RPM packages in the current directory using the rpm command. The rpm command uses the following options:

    • i - install

    • v - verbose, describe the process in detail

    • h - display hash marks (#) to display installation progress

    $ sudo rpm -ivh *.rpm

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.

Last update: 2024-03-22