نشانیها
- مخزن apt (Debian و Ubuntu)
https://mirror-postgresql.pkg.shecan.ir/apt/ - مخزن yum/dnf (RHEL و سازگارها)
https://mirror-postgresql.pkg.shecan.ir/yum/
Ubuntu و Debian
Shell
sudo install -d /usr/share/postgresql-common/pgdg
sudo curl -fsSLo /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc https://mirror-postgresql.pkg.shecan.ir/apt/ACCC4CF8.asc
. /etc/os-release
echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://mirror-postgresql.pkg.shecan.ir/apt $VERSION_CODENAME-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
sudo apt update && sudo apt install -y postgresql-17Shell
sudo rm -f /etc/apt/sources.list.d/pgdg.list /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc
sudo apt updateAlmaLinux، Rocky و RHEL 9
/etc/yum.repos.d/pgdg.repo/etc/yum.repos.d/pgdg.repoINI
[pgdg17]
name=PostgreSQL 17 - $basearch
baseurl=https://mirror-postgresql.pkg.shecan.ir/yum/17/redhat/rhel-9-$basearch
enabled=1
gpgcheck=1
gpgkey=https://mirror-postgresql.pkg.shecan.ir/yum/keys/PGDG-RPM-GPG-KEY-RHEL
[pgdg-common]
name=PostgreSQL common RPMs - $basearch
baseurl=https://mirror-postgresql.pkg.shecan.ir/yum/common/redhat/rhel-9-$basearch
enabled=1
gpgcheck=1
gpgkey=https://mirror-postgresql.pkg.shecan.ir/yum/keys/PGDG-RPM-GPG-KEY-RHELShell
sudo rm -f /etc/yum.repos.d/pgdg.repo
sudo dnf clean allShell
sudo dnf -qy module disable postgresql
sudo dnf install -y postgresql17-serverنکتهها و محدودیتها
- apt و dnf امضای رسمی PGDG را بررسی میکنند. افزونههایی مثل pgvector و PostGIS هم از همین مخزن نصب میشوند.