dacker

نصب PostgreSQL در ایران

پایگاه‌دادهٔ PostgreSQL از مخزن رسمی PGDG؛ چند نسخهٔ اصلی در یک مخزن. از مخزن داخلی dacker، بدون خطای ۴۰۳؛ توزیع و نسخه را انتخاب کنید و دستور کامل را کپی کنید.

دستور نصب

توزیع سرور
نسخه

مرورگر شما انتخاب بدون JavaScript را پشتیبانی نمی‌کند؛ دستورهای همهٔ ترکیب‌ها زیر هم آمده‌اند.

PostgreSQL 1818.6

  • Ubuntu 24.04
  • 54.8 MB
  • امضا و بررسی‌شده
bash · Ubuntu 24.04
  1. ۱کلید امضای dacker
    # 1) Add the dacker signing keysudo curl -fsSL https://repo.dacker.ir/dacker.gpg -o /usr/share/keyrings/dacker.gpg
  2. ۲افزودن مخزن
    # 2) Add the repositorysudo curl -fsSL https://repo.dacker.ir/apt/sources/dacker-postgresql.sources -o /etc/apt/sources.list.d/dacker-postgresql.sources
  3. ۳نصب
    # 3) Installsudo apt updatesudo apt install postgresql-18
  4. ۴بررسی نصب
    # 4) Check the installationpsql --version
به‌جای فایل .sources، یک خط .list می‌خواهید؟
  1. جایگزین مرحلهٔ ۲
    echo "deb [arch=amd64 signed-by=/usr/share/keyrings/dacker.gpg] https://repo.dacker.ir/apt/postgresql noble main" | sudo tee /etc/apt/sources.list.d/dacker-postgresql.list

PostgreSQL 1818.6

  • Ubuntu 22.04
  • 59.0 MB
  • امضا و بررسی‌شده
bash · Ubuntu 22.04
  1. ۱کلید امضای dacker
    # 1) Add the dacker signing keysudo curl -fsSL https://repo.dacker.ir/dacker.gpg -o /usr/share/keyrings/dacker.gpg
  2. ۲افزودن مخزن
    # 2) Add the repositorysudo curl -fsSL https://repo.dacker.ir/apt/sources/dacker-postgresql.list -o /etc/apt/sources.list.d/dacker-postgresql.list
  3. ۳نصب
    # 3) Installsudo apt updatesudo apt install postgresql-18
  4. ۴بررسی نصب
    # 4) Check the installationpsql --version

PostgreSQL 1818.6

  • AlmaLinux / Rocky / RHEL 9
  • 30.0 MB
  • امضا و بررسی‌شده
bash · EL 9
  1. ۱کلید امضای سازنده
    # 1) Import the vendor signing keysudo rpm --import https://repo.dacker.ir/el/keys/PGDG-RPM-GPG-KEY-RHEL
  2. ۲افزودن مخزن
    # 2) Add the repositorysudo curl -fsSL https://repo.dacker.ir/el/repos/dacker-postgresql.repo -o /etc/yum.repos.d/dacker-postgresql.repo
  3. ۳نصب
    # 3) Installsudo dnf install postgresql18-server postgresql18
  4. ۴راه‌اندازی سرویس
    # 4) Enable and start the servicesudo /usr/pgsql-18/bin/postgresql-18-setup initdbsudo systemctl enable --now postgresql-18
  5. ۵بررسی نصب
    # 5) Check the installation/usr/pgsql-18/bin/psql --version

PostgreSQL 1818.6

  • AlmaLinux / Rocky / RHEL 8
  • 30.7 MB
  • امضا و بررسی‌شده
bash · EL 8
  1. ۱کلید امضای سازنده
    # 1) Import the vendor signing keysudo rpm --import https://repo.dacker.ir/el/keys/PGDG-RPM-GPG-KEY-RHEL
  2. ۲افزودن مخزن
    # 2) Add the repositorysudo curl -fsSL https://repo.dacker.ir/el/repos/dacker-postgresql.repo -o /etc/yum.repos.d/dacker-postgresql.repo
  3. ۳نصب
    # 3) Installsudo dnf install postgresql18-server postgresql18
  4. ۴راه‌اندازی سرویس
    # 4) Enable and start the servicesudo /usr/pgsql-18/bin/postgresql-18-setup initdbsudo systemctl enable --now postgresql-18
  5. ۵بررسی نصب
    # 5) Check the installation/usr/pgsql-18/bin/psql --version

PostgreSQL 18

  • CentOS 7
PostgreSQL 18 برای CentOS 7 در دسترس نیست.
  • PGDG برای این توزیع مخزن PostgreSQL 18 منتشر نمی‌کند.

برای این توزیع‌ها هست: Ubuntu 24.04، Ubuntu 22.04، AlmaLinux / Rocky / RHEL 9، AlmaLinux / Rocky / RHEL 8

PostgreSQL 1717.11

  • Ubuntu 24.04
  • 54.8 MB
  • امضا و بررسی‌شده
bash · Ubuntu 24.04
  1. ۱کلید امضای dacker
    # 1) Add the dacker signing keysudo curl -fsSL https://repo.dacker.ir/dacker.gpg -o /usr/share/keyrings/dacker.gpg
  2. ۲افزودن مخزن
    # 2) Add the repositorysudo curl -fsSL https://repo.dacker.ir/apt/sources/dacker-postgresql.sources -o /etc/apt/sources.list.d/dacker-postgresql.sources
  3. ۳نصب
    # 3) Installsudo apt updatesudo apt install postgresql-17
  4. ۴بررسی نصب
    # 4) Check the installationpsql --version
به‌جای فایل .sources، یک خط .list می‌خواهید؟
  1. جایگزین مرحلهٔ ۲
    echo "deb [arch=amd64 signed-by=/usr/share/keyrings/dacker.gpg] https://repo.dacker.ir/apt/postgresql noble main" | sudo tee /etc/apt/sources.list.d/dacker-postgresql.list

PostgreSQL 1717.11

  • Ubuntu 22.04
  • 59.0 MB
  • امضا و بررسی‌شده
bash · Ubuntu 22.04
  1. ۱کلید امضای dacker
    # 1) Add the dacker signing keysudo curl -fsSL https://repo.dacker.ir/dacker.gpg -o /usr/share/keyrings/dacker.gpg
  2. ۲افزودن مخزن
    # 2) Add the repositorysudo curl -fsSL https://repo.dacker.ir/apt/sources/dacker-postgresql.list -o /etc/apt/sources.list.d/dacker-postgresql.list
  3. ۳نصب
    # 3) Installsudo apt updatesudo apt install postgresql-17
  4. ۴بررسی نصب
    # 4) Check the installationpsql --version

PostgreSQL 1717.11

  • AlmaLinux / Rocky / RHEL 9
  • 30.0 MB
  • امضا و بررسی‌شده
bash · EL 9
  1. ۱کلید امضای سازنده
    # 1) Import the vendor signing keysudo rpm --import https://repo.dacker.ir/el/keys/PGDG-RPM-GPG-KEY-RHEL
  2. ۲افزودن مخزن
    # 2) Add the repositorysudo curl -fsSL https://repo.dacker.ir/el/repos/dacker-postgresql.repo -o /etc/yum.repos.d/dacker-postgresql.repo
  3. ۳نصب
    # 3) Installsudo dnf install postgresql17-server postgresql17
  4. ۴راه‌اندازی سرویس
    # 4) Enable and start the servicesudo /usr/pgsql-17/bin/postgresql-17-setup initdbsudo systemctl enable --now postgresql-17
  5. ۵بررسی نصب
    # 5) Check the installation/usr/pgsql-17/bin/psql --version

PostgreSQL 1717.11

  • AlmaLinux / Rocky / RHEL 8
  • 30.7 MB
  • امضا و بررسی‌شده
bash · EL 8
  1. ۱کلید امضای سازنده
    # 1) Import the vendor signing keysudo rpm --import https://repo.dacker.ir/el/keys/PGDG-RPM-GPG-KEY-RHEL
  2. ۲افزودن مخزن
    # 2) Add the repositorysudo curl -fsSL https://repo.dacker.ir/el/repos/dacker-postgresql.repo -o /etc/yum.repos.d/dacker-postgresql.repo
  3. ۳نصب
    # 3) Installsudo dnf install postgresql17-server postgresql17
  4. ۴راه‌اندازی سرویس
    # 4) Enable and start the servicesudo /usr/pgsql-17/bin/postgresql-17-setup initdbsudo systemctl enable --now postgresql-17
  5. ۵بررسی نصب
    # 5) Check the installation/usr/pgsql-17/bin/psql --version

PostgreSQL 17

  • CentOS 7
PostgreSQL 17 برای CentOS 7 در دسترس نیست.
  • PGDG برای این توزیع مخزن PostgreSQL 17 منتشر نمی‌کند.

برای این توزیع‌ها هست: Ubuntu 24.04، Ubuntu 22.04، AlmaLinux / Rocky / RHEL 9، AlmaLinux / Rocky / RHEL 8

PostgreSQL 1616.15

  • Ubuntu 24.04
  • 54.8 MB
  • امضا و بررسی‌شده
bash · Ubuntu 24.04
  1. ۱کلید امضای dacker
    # 1) Add the dacker signing keysudo curl -fsSL https://repo.dacker.ir/dacker.gpg -o /usr/share/keyrings/dacker.gpg
  2. ۲افزودن مخزن
    # 2) Add the repositorysudo curl -fsSL https://repo.dacker.ir/apt/sources/dacker-postgresql.sources -o /etc/apt/sources.list.d/dacker-postgresql.sources
  3. ۳نصب
    # 3) Installsudo apt updatesudo apt install postgresql-16
  4. ۴بررسی نصب
    # 4) Check the installationpsql --version
به‌جای فایل .sources، یک خط .list می‌خواهید؟
  1. جایگزین مرحلهٔ ۲
    echo "deb [arch=amd64 signed-by=/usr/share/keyrings/dacker.gpg] https://repo.dacker.ir/apt/postgresql noble main" | sudo tee /etc/apt/sources.list.d/dacker-postgresql.list

PostgreSQL 1616.15

  • Ubuntu 22.04
  • 59.0 MB
  • امضا و بررسی‌شده
bash · Ubuntu 22.04
  1. ۱کلید امضای dacker
    # 1) Add the dacker signing keysudo curl -fsSL https://repo.dacker.ir/dacker.gpg -o /usr/share/keyrings/dacker.gpg
  2. ۲افزودن مخزن
    # 2) Add the repositorysudo curl -fsSL https://repo.dacker.ir/apt/sources/dacker-postgresql.list -o /etc/apt/sources.list.d/dacker-postgresql.list
  3. ۳نصب
    # 3) Installsudo apt updatesudo apt install postgresql-16
  4. ۴بررسی نصب
    # 4) Check the installationpsql --version

PostgreSQL 1616.15

  • AlmaLinux / Rocky / RHEL 9
  • 30.0 MB
  • امضا و بررسی‌شده
bash · EL 9
  1. ۱کلید امضای سازنده
    # 1) Import the vendor signing keysudo rpm --import https://repo.dacker.ir/el/keys/PGDG-RPM-GPG-KEY-RHEL
  2. ۲افزودن مخزن
    # 2) Add the repositorysudo curl -fsSL https://repo.dacker.ir/el/repos/dacker-postgresql.repo -o /etc/yum.repos.d/dacker-postgresql.repo
  3. ۳نصب
    # 3) Installsudo dnf install postgresql16-server postgresql16
  4. ۴راه‌اندازی سرویس
    # 4) Enable and start the servicesudo /usr/pgsql-16/bin/postgresql-16-setup initdbsudo systemctl enable --now postgresql-16
  5. ۵بررسی نصب
    # 5) Check the installation/usr/pgsql-16/bin/psql --version

PostgreSQL 1616.15

  • AlmaLinux / Rocky / RHEL 8
  • 30.7 MB
  • امضا و بررسی‌شده
bash · EL 8
  1. ۱کلید امضای سازنده
    # 1) Import the vendor signing keysudo rpm --import https://repo.dacker.ir/el/keys/PGDG-RPM-GPG-KEY-RHEL
  2. ۲افزودن مخزن
    # 2) Add the repositorysudo curl -fsSL https://repo.dacker.ir/el/repos/dacker-postgresql.repo -o /etc/yum.repos.d/dacker-postgresql.repo
  3. ۳نصب
    # 3) Installsudo dnf install postgresql16-server postgresql16
  4. ۴راه‌اندازی سرویس
    # 4) Enable and start the servicesudo /usr/pgsql-16/bin/postgresql-16-setup initdbsudo systemctl enable --now postgresql-16
  5. ۵بررسی نصب
    # 5) Check the installation/usr/pgsql-16/bin/psql --version

PostgreSQL 16

  • CentOS 7
PostgreSQL 16 برای CentOS 7 در دسترس نیست.
  • PGDG برای این توزیع مخزن PostgreSQL 16 منتشر نمی‌کند.

برای این توزیع‌ها هست: Ubuntu 24.04، Ubuntu 22.04، AlmaLinux / Rocky / RHEL 9، AlmaLinux / Rocky / RHEL 8

نسخه‌ها روی هر توزیع

نسخه Ubuntu 24.04Ubuntu 22.04EL 9EL 8CentOS 7
18 18.654.8 MB 18.659.0 MB 18.630.0 MB 18.630.7 MB N/A
17 17.1154.8 MB 17.1159.0 MB 17.1130.0 MB 17.1130.7 MB N/A
16 16.1554.8 MB 16.1559.0 MB 16.1530.0 MB 16.1530.7 MB N/A

N/A: سازنده این نسخه را برای آن توزیع منتشر نمی‌کند یا ساخته نمی‌شود (دلیلش در بخش دستور نصب آمده). «—»: این محصول برای آن خانوادهٔ توزیع ارائه نمی‌شود.

پیش از نصب

روی EL 8 اگر dnf بسته را به‌خاطر ماژول‌های AppStream فیلتر کرد، این پرسش را ببینید.

راهنمای نصب PostgreSQL برای هر توزیع

هر صفحه دستور کامل، نسخهٔ دقیق بسته‌ها و خطاهای رایج همان توزیع را دارد.

محصولات مرتبط

فهرست کامل بسته‌ها

همهٔ بسته‌هایی که هر مخزن برای هر توزیع دارد، از manifest مخزن.

postgresql · Ubuntu 24.04 · 54.8 MB · ۱۰ بسته
بستهنسخه
postgresql-1616.15-1.pgdg24.04+2
postgresql-client-1616.15-1.pgdg24.04+2
postgresql-1717.11-1.pgdg24.04+2
postgresql-client-1717.11-1.pgdg24.04+2
postgresql-1818.6-1.pgdg24.04+2
postgresql-client-1818.6-1.pgdg24.04+2

وابستگی‌های موجود در همین مخزن: libpq5، postgresql-18-jit، postgresql-client-common، postgresql-common

postgresql · Ubuntu 22.04 · 59.0 MB · ۱۰ بسته
بستهنسخه
postgresql-1616.15-1.pgdg22.04+2
postgresql-client-1616.15-1.pgdg22.04+2
postgresql-1717.11-1.pgdg22.04+2
postgresql-client-1717.11-1.pgdg22.04+2
postgresql-1818.6-1.pgdg22.04+2
postgresql-client-1818.6-1.pgdg22.04+2

وابستگی‌های موجود در همین مخزن: libpq5، postgresql-18-jit، postgresql-client-common، postgresql-common

postgresql · AlmaLinux / Rocky / RHEL 9 · 30.0 MB · ۱۲ بسته
بستهنسخه
postgresql16-server16.15-1PGDG.rhel9.8
postgresql1616.15-1PGDG.rhel9.8
postgresql16-contrib16.15-1PGDG.rhel9.8
postgresql17-server17.11-1PGDG.rhel9.8
postgresql1717.11-1PGDG.rhel9.8
postgresql17-contrib17.11-1PGDG.rhel9.8
postgresql18-server18.6-1PGDG.rhel9.8
postgresql1818.6-1PGDG.rhel9.8
postgresql18-contrib18.6-1PGDG.rhel9.8

وابستگی‌های موجود در همین مخزن: postgresql16-libs، postgresql17-libs، postgresql18-libs

postgresql · AlmaLinux / Rocky / RHEL 8 · 30.7 MB · ۱۲ بسته
بستهنسخه
postgresql16-server16.15-1PGDG.rhel8.10
postgresql1616.15-1PGDG.rhel8.10
postgresql16-contrib16.15-1PGDG.rhel8.10
postgresql17-server17.11-1PGDG.rhel8.10
postgresql1717.11-1PGDG.rhel8.10
postgresql17-contrib17.11-1PGDG.rhel8.10
postgresql18-server18.6-1PGDG.rhel8.10
postgresql1818.6-1PGDG.rhel8.10
postgresql18-contrib18.6-1PGDG.rhel8.10

وابستگی‌های موجود در همین مخزن: postgresql16-libs، postgresql17-libs، postgresql18-libs