apt-get update && apt-get install -y --no-install-recommends lsb-release wget apt-transport-https ca-certificates gnupg wget -O - 'https://repo.proxysql.com/ProxySQL/proxysql-2.7.x/repo_pub_key' | apt-key add - echo "deb https://repo.proxysql.com/ProxySQL/proxysql-2.7.x/$(lsb_release -sc)/ ./" | tee /etc/apt/sources.list.d/proxysql.listor for distros without apt-key
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.listNote: on older EOL distros (ubuntu 14.04, debian 8) due to expired ca-certificates, you may need to use http:// instead of https:// or manualy update ca-certificates
apt-get -y update apt-get -y install proxysqlor install specific version
apt-get -y update apt-get -y install proxysql=[version]
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 proxysqlor install specific version
yum install proxysql-[version]
cat > /etc/yum.repos.d/proxysql.repo << EOF [proxysql] name=ProxySQL YUM repository baseurl=https://repo.proxysql.com/ProxySQL/proxysql-2.7.x/almalinux/\$releasever gpgcheck=1 gpgkey=https://repo.proxysql.com/ProxySQL/proxysql-2.7.x/repo_pub_key EOF
yum install proxysqlor install specific version
yum install proxysql-[version]
cat > /etc/zypp/repos.d/proxysql.repo << EOF [proxysql] name=ProxySQL Zypper repository enabled=1 autorefresh=0 baseurl=https://repo.proxysql.com/ProxySQL/proxysql-2.7.x/opensuse/\$releasever_major gpgcheck=1 EOFor
zypper addrepo -g -n 'ProxySQL Zypper repository' 'https://repo.proxysql.com/ProxySQL/proxysql-2.7.x/opensuse/$releasever_major' proxysql
zypper --gpg-auto-import-keys install proxysqlor install specific version
zypper --gpg-auto-import-keys install proxysql-[version]
Repository file location: https://repo.proxysql.com/ProxySQL/