How To Install ProxySQL:


Ubuntu and Debian:

Configuring APT repository

apt-get update && apt-get install -y --no-install-recommends lsb-release wget apt-transport-https ca-certificates
wget -nv -O /usr/share/keyrings/proxysql-3.0.x-keyring.gpg 'https://repo.proxysql.com/ProxySQL/proxysql-3.0.x/repo_pub_key.gpg'
echo "deb [signed-by=/usr/share/keyrings/proxysql-3.0.x-keyring.gpg] https://repo.proxysql.com/ProxySQL/proxysql-3.0.x/$(lsb_release -sc)/ ./" | tee /etc/apt/sources.list.d/proxysql.list
Note: the signed-by keyring method above works on Debian 9+ and Ubuntu 16.04+. The older apt-key add method is deprecated and has been removed in Debian 12 and Ubuntu 24.04. Note: on older EOL distros, due to expired ca-certificates, you may need to use http:// instead of https:// or manualy update ca-certificates

Installing package

apt update -y
apt install -y proxysql
or install specific version
apt update -y
apt install -y proxysql=[version]
e.g.: install ProxySQL v3.0.9 (using the 3.0.x repository configured above)
apt update -y
apt install -y proxysql=3.0.9
e.g.: install ProxySQL v2.7.3 (requires switching to the 2.7.x repository)
apt-get update && apt-get install -y --no-install-recommends lsb-release wget apt-transport-https ca-certificates
wget -nv -O /usr/share/keyrings/proxysql-2.7.x-keyring.gpg 'https://repo.proxysql.com/ProxySQL/proxysql-2.7.x/repo_pub_key.gpg'
echo "deb [signed-by=/usr/share/keyrings/proxysql-2.7.x-keyring.gpg] https://repo.proxysql.com/ProxySQL/proxysql-2.7.x/$(lsb_release -sc)/ ./" | tee /etc/apt/sources.list.d/proxysql.list
apt update -y
apt install -y proxysql=2.7.3

RHEL and CentOS:

Configuring YUM repository

cat > /etc/yum.repos.d/proxysql.repo << EOF
[proxysql]
name=ProxySQL YUM repository
baseurl=https://repo.proxysql.com/ProxySQL/proxysql-3.0.x/centos/\$releasever
gpgcheck=1
gpgkey=https://repo.proxysql.com/ProxySQL/proxysql-3.0.x/repo_pub_key
EOF

Installing package

yum install proxysql
or install specific version
yum install proxysql-[version]
e.g.: install ProxySQL v3.0.9 (using the 3.0.x repository configured above)
yum install proxysql-3.0.9
e.g.: install ProxySQL v2.7.3 (requires switching to the 2.7.x repository)
cat > /etc/yum.repos.d/proxysql.repo << EOF
[proxysql]
name=ProxySQL YUM repository
baseurl=https://repo.proxysql.com/ProxySQL/proxysql-2.7.x/centos/\$releasever
gpgcheck=1
gpgkey=https://repo.proxysql.com/ProxySQL/proxysql-2.7.x/repo_pub_key
EOF
yum install proxysql-2.7.3

Almalinux:

Configuring YUM repository

cat > /etc/yum.repos.d/proxysql.repo << EOF
[proxysql]
name=ProxySQL YUM repository
baseurl=https://repo.proxysql.com/ProxySQL/proxysql-3.0.x/almalinux/\$releasever
gpgcheck=1
gpgkey=https://repo.proxysql.com/ProxySQL/proxysql-3.0.x/repo_pub_key
EOF

Installing package

yum install proxysql
or install specific version
yum install proxysql-[version]

OpenSUSE:

Configuring Zypper repository

cat > /etc/zypp/repos.d/proxysql.repo << EOF
[proxysql]
name=ProxySQL Zypper repository
enabled=1
autorefresh=0
baseurl=https://repo.proxysql.com/ProxySQL/proxysql-3.0.x/opensuse/\$releasever_major
gpgcheck=1
EOF
or
zypper addrepo -g -n 'ProxySQL Zypper repository' 'https://repo.proxysql.com/ProxySQL/proxysql-3.0.x/opensuse/$releasever_major' proxysql

Installing package

zypper --gpg-auto-import-keys install proxysql
or install specific version
zypper --gpg-auto-import-keys install proxysql-[version]


Repository file location: https://repo.proxysql.com/ProxySQL/