# How to install percona repositories on amazon linux 2023

**URL:** <https://forums.percona.com/t/how-to-install-percona-repositories-on-amazon-linux-2023/39927>\
**Category:** Percona Operator for MongoDB\
**Created:** [December 22, 2025, 1:56pm UTC](https://forums.percona.com/t/how-to-install-percona-repositories-on-amazon-linux-2023/39927 "2025-12-22T13:56:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anikessh](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@Anikessh](https://forums.percona.com/u/Anikessh)\
**Post date:** [December 22, 2025, 1:56pm UTC](https://forums.percona.com/t/how-to-install-percona-repositories-on-amazon-linux-2023/39927/1 "2025-12-22T13:56:03Z")

</div>

## Description:

How to install percona repostories on amazon linux 2023 for taking backup of full config and shard servers

## Steps to Reproduce:

[Step-by-step instructions on how to reproduce the issue, including any specific settings or configurations]

## Version:

[Insert the version number of the software]

## Logs:

[If applicable, include any relevant log files or error messages]

## Expected Result:

[What the user expected to see or happen before the issue occurred]

## Actual Result:

[What actually happened when the user encountered the issue]

## Additional Information:

[Include any additional information that could be helpful to diagnose the issue, such as browser or device information]

---

<div class="post-metadata">

**Author:** ![discourse\_ai\_spam](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@discourse\_ai\_spam](https://forums.percona.com/u/discourse_ai_spam)\
**Post date:** [December 22, 2025, 1:56pm UTC](https://forums.percona.com/t/how-to-install-percona-repositories-on-amazon-linux-2023/39927/2 "2025-12-22T13:56:05Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/system/32/9292_2.png) [@system](https://forums.percona.com/u/system)\
**Post date:** [December 22, 2025, 2:44pm UTC](https://forums.percona.com/t/how-to-install-percona-repositories-on-amazon-linux-2023/39927/3 "2025-12-22T14:44:33Z")

</div>



---

<div class="post-metadata">

**Author:** ![Vadim\_Yalovets](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vadim_yalovets/32/43_2.png) [@Vadim\_Yalovets](https://forums.percona.com/u/Vadim_Yalovets)\
**Post date:** [December 22, 2025, 3:14pm UTC](https://forums.percona.com/t/how-to-install-percona-repositories-on-amazon-linux-2023/39927/4 "2025-12-22T15:14:02Z")

</div>

Hi @Anikessh

Installing Percona software via the system’s corresponding package manager is recommended.

yum install -y [https://repo.percona.com/yum/percona-release-latest.noarch.rpm](https://repo.percona.com/yum/percona-release-latest.noarch.rpm)

 ![Screenshot 2025-12-22 at 17.12.40](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/3X/2/8/28b0e14e98755db55d2a09436747e64d74f8ee19.png)

---

<div class="post-metadata">

**Author:** ![Robert\_Bernier](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/robert_bernier/32/1367_2.png) [@Robert\_Bernier](https://forums.percona.com/u/Robert_Bernier)\
**Post date:** [December 22, 2025, 4:49pm UTC](https://forums.percona.com/t/how-to-install-percona-repositories-on-amazon-linux-2023/39927/5 "2025-12-22T16:49:03Z")

</div>

Hello Anikessh,

Unfortunately, while Percona postgres is supported on various linux flavours of Debian and Redhat derivatives, Amazon Linux 2023 is not one of them as it is a hybrid of redhat/centos/fedora.

_**However, that being said you CAN install our [tarball](https://docs.percona.com/postgresql/17/tarball.html) which does have everything you need and will work on Amazon Linux 2023**_

Beware, there are caveats that you should read about first. The openssl version for instance is something to keep in mind.

In addition to reading the aforementioned [documentation](https://docs.percona.com/postgresql/17/tarball.html) you can install the tarball distribution in the following manner on Amazon Linux 2023.

`dnf install -y net-tools less wget acl readline-devel passwd openssl tar`

```auto
useradd postgres -m
passwd postgres

```

`mkdir -p /opt/pgdistro/`  
`chown postgres:postgres /opt/pgdistro/`

`wget https://downloads.percona.com/downloads/postgresql-distribution-17/17.7/binary/tarball/percona-postgresql-17.7-ssl3-linux-x86_64.tar.gz`

`tar -xvf percona-postgresql-17.7-ssl3-linux-x86_64.tar.gz -C /opt/pgdistro/`

`mkdir -p /usr/local/pgsql/data`  
`chown postgres:postgres /usr/local/pgsql/data`

sudo as postgres and execute the following:

`/opt/pgdistro/percona-postgresql17/bin/initdb -D /usr/local/pgsql/data`  
`/opt/pgdistro/percona-postgresql17/bin/pg_ctl -D /usr/local/pgsql/data -l logfile start`

```auto
export PATH=:/opt/pgdistro/percona-haproxy/sbin/:/opt/pgdistro/percona-patroni/bin/:/opt/pgdistro/percona-pgbackrest/bin/:/opt/pgdistro/percona-pgbadger/:/opt/pgdistro/percona-pgbouncer/bin/:/opt/pgdistro/percona-pgpool-II/bin/:/opt/pgdistro/percona-postgresql17/bin/:/opt/pgdistro/percona-etcd/bin/:/opt/percona-perl/bin/:/opt/percona-tcl/bin/:/opt/percona-python3/bin/:$PATH

```

`export PAGER=less`

Finally, test

`psql --version`

regards

Robert
