pg_repack pre-compiled binaries.
Use at your own risk.
Direct link: https://github.com/vhadianto/pg-repack-bin/raw/main/linux-amd64/1.4.4/pg_repack
https://centos.pkgs.org/7/postgresql-11-x86_64/pg_repack11-1.4.4-1.rhel7.x86_64.rpm.html
sudo amazon-linux-extras install epel
sudo tee /etc/yum.repos.d/pgdg.repo<<EOF
[pgdg11]
name=PostgreSQL 11 for RHEL/CentOS 7 - x86_64
baseurl=https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-x86_64
enabled=1
gpgcheck=0
EOF
sudo yum install pg_repack11
File location:
/usr/pgsql-11/bin/
https://techviewleo.com/install-postgresql-13-on-amazon-linux/
sudo amazon-linux-extras install epel
sudo tee /etc/yum.repos.d/pgdg.repo<<EOF
[pgdg13]
name=PostgreSQL 13 for RHEL/CentOS 7 - x86_64
baseurl=https://download.postgresql.org/pub/repos/yum/13/redhat/rhel-7-x86_64
enabled=1
gpgcheck=0
EOF
sudo yum install postgresql13
sudo yum install pg_repack13
File location:
/usr/pgsql-13/bin/pg_repack