PostgreSQL/Installation/Apt: Unterschied zwischen den Versionen

Aus Foxwiki
Die Seite wurde neu angelegt: „==PostgreSQL packages for Debian and Ubuntu== The PostgreSQL Global Development Group (PGDG) maintains an APT repository of PostgreSQL packages for Debian and Ubuntu located at https://apt.postgresql.org/pub/repos/apt/. We aim at building PostgreSQL server packages as well as extensions and modules packages on several Debian/Ubuntu releases for all PostgreSQL versions supported. Currently, we support * '''Debian bullseye''' (11), '''bookworm''' (12), '…“
 
K Dirkwagner verschob die Seite PostgreSQL/Apt nach PostgreSQL/Installation/Apt
 
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
==PostgreSQL packages for Debian and Ubuntu==
== PostgreSQL packages for Debian and Ubuntu ==
 
The PostgreSQL Global Development Group (PGDG) maintains an APT repository of PostgreSQL packages for Debian and Ubuntu located at https://apt.postgresql.org/pub/repos/apt/.
The PostgreSQL Global Development Group (PGDG) maintains an APT repository of PostgreSQL packages for Debian and Ubuntu located at https://apt.postgresql.org/pub/repos/apt/.
We aim at building PostgreSQL server packages as well as extensions and modules packages on several Debian/Ubuntu releases for all PostgreSQL versions supported.
We aim at building PostgreSQL server packages as well as extensions and modules packages on several Debian/Ubuntu releases for all PostgreSQL versions supported.


; Support
Currently, we support
Currently, we support
* '''Debian bullseye''' (11), '''bookworm''' (12), '''trixie''' (testing/13) and '''sid''' (unstable)
* '''Debian bullseye''' (11), '''bookworm''' (12), '''trixie''' (testing/13) and '''sid''' (unstable)
* '''Ubuntu focal''' (20.04), '''jammy''' (22.04), '''noble''' (24.04), '''oracular''' (24.10, amd64 only)
* '''Ubuntu focal''' (20.04), '''jammy''' (22.04), '''noble''' (24.04), '''oracular''' (24.10, amd64 only)
Zeile 15: Zeile 14:
PostgreSQL versions down to 8.2 exist in the repositories for salvaging old installations. Packages for older Debian/Ubuntu distributions are moved to https://apt-archive.postgresql.org.
PostgreSQL versions down to 8.2 exist in the repositories for salvaging old installations. Packages for older Debian/Ubuntu distributions are moved to https://apt-archive.postgresql.org.


==Quickstart==
== Quickstart ==
 
'''TL;DR:'''
'''TL;DR:'''
  sudo apt install -y postgresql-common
  sudo apt install -y postgresql-common
  sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh
  sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh


==Manual Repository Configuration==
== Manual Repository Configuration ==
 
Import the repository key from '''https://www.postgresql.org/media/keys/ACCC4CF8.asc''':
Import the repository key from '''https://www.postgresql.org/media/keys/ACCC4CF8.asc''':


Zeile 29: Zeile 26:
  <nowiki>sudo curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc</nowiki>
  <nowiki>sudo curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc</nowiki>


Create '''/etc/apt/sources.list.d/pgdg.list'''. The distributions are called ''codename'''''-pgdg'''. In the example, replace ''bookworm'' with the actual distribution you are using. File contents:
Create '''/etc/apt/sources.list.d/pgdg.list'''. The distributions are called ''codename'''''-pgdg'''. In the example, replace ''bookworm'' with the actual distribution you are using. File contents:


  <nowiki>deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt</nowiki> '''bookworm'''-pgdg main
  <nowiki>deb [signed-by =/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt</nowiki> '''bookworm'''-pgdg main


(You may determine the codename of your distribution by running '''lsb_release -c'''). For a script version of the above file creation, presuming you are using a supported release:
(You may determine the codename of your distribution by running '''lsb_release -c'''). For a script version of the above file creation, presuming you are using a supported release:


  <nowiki>sudo sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'</nowiki>
  <nowiki>sudo sh -c 'echo "deb [signed-by =/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'</nowiki>


Finally, update the package lists, and start installing packages:
Finally, update the package lists, and start installing packages:
Zeile 42: Zeile 39:
  sudo apt install postgresql-16
  sudo apt install postgresql-16


==Notes==
== Notes ==
Have a look at the '''[[Apt/FAQ|FAQ]]'''.
Have a look at the '''[[Apt/FAQ|FAQ]]'''.


Zeile 51: Zeile 48:
For packages of development/alpha/beta versions of PostgreSQL, see the [[Apt/FAQ#I_want_to_try_the_beta_version_of_the_next_PostgreSQL_release|FAQ entry about beta versions]].
For packages of development/alpha/beta versions of PostgreSQL, see the [[Apt/FAQ#I_want_to_try_the_beta_version_of_the_next_PostgreSQL_release|FAQ entry about beta versions]].


==News==
== News ==
 
* 2024-07-30: EOL for Debian buster and 32-bit architectures: https://www.postgresql.org/message-id/Zqj_4nlZEqfbQ2aM%40msg.df7cb.de
* 2024-07-30: EOL for Debian buster and 32-bit architectures: https://www.postgresql.org/message-id/Zqj_4nlZEqfbQ2aM%40msg.df7cb.de
* 2024-04-16: Ubuntu lunar archived, Debian buster in LTS mode: https://www.postgresql.org/message-id/Zh4mhiDeYdtXPbIM%40msg.df7cb.de
* 2024-04-16: Ubuntu lunar archived, Debian buster in LTS mode: https://www.postgresql.org/message-id/Zh4mhiDeYdtXPbIM%40msg.df7cb.de
Zeile 77: Zeile 73:
Older news items: [[Apt/OldNews]]
Older news items: [[Apt/OldNews]]


==Resources==
== Resources ==
 
* [[Apt/FAQ|FAQ]]
* [[Apt/FAQ|FAQ]]
* [https://apt.postgresql.org/pub/repos/apt/ Package repository]
* [https://apt.postgresql.org/pub/repos/apt/ Package repository]
* [https://qa.debian.org/developer.php?login=pkg-postgresql-public@lists.alioth.debian.org PostgreSQL in Debian]
* [https://qa.debian.org/developer.php?login = pkg-postgresql-public@lists.alioth.debian.org PostgreSQL in Debian]
 
===Contact===


=== Contact ===
* Mailing list: pgsql-pkg-debian@postgresql.org ([https://archives.postgresql.org/pgsql-pkg-debian/ Archives])
* Mailing list: pgsql-pkg-debian@postgresql.org ([https://archives.postgresql.org/pgsql-pkg-debian/ Archives])
* IRC channel: #postgresql-apt @ irc.libera.chat
* IRC channel: #postgresql-apt @ irc.libera.chat


===Maintainers===
=== Maintainers ===
 
* Christoph Berg (Cybertec)
* Christoph Berg (Cybertec)
* Marco Nenciarini (EnterpriseDB)
* Marco Nenciarini (EnterpriseDB)
* Michael Banck (credativ)
* Michael Banck (credativ)


====Past Contributors====
==== Past Contributors ====
 
* Dimitri Fontaine
* Dimitri Fontaine
* Magnus Hagander
* Magnus Hagander


===Bugs===
=== Bugs ===
 
Please report bugs:
Please report bugs:
* on the pgsql-pkg-debian@postgresql.org mailing list, or
* on the pgsql-pkg-debian@postgresql.org mailing list, or
Zeile 106: Zeile 97:
* open a bug in the [https://bugs.debian.org/ Debian BTS].
* open a bug in the [https://bugs.debian.org/ Debian BTS].


===Documentation===
=== Documentation ===
 
* [[Apt/RepoDocs]]
* [[Apt/RepoDocs]]
* [[Apt/Jenkins]]
* [[Apt/Jenkins]]
* [[Apt/Packages]]
* [[Apt/Packages]]


==Acknowledgements==
== Acknowledgements ==
 
Work on setting up the archive was kindly supported by [https://www.credativ.de/ credativ], [https://www.2ndquadrant.com/ 2ndQuadrant], [https://redpill-linpro.com/ Redpill Linpro],
Work on setting up the archive was kindly supported by [https://www.credativ.de/ credativ], [https://www.2ndquadrant.com/ 2ndQuadrant], [https://redpill-linpro.com/ Redpill Linpro],
and funding from the European Union's Seventh Framework Programme (FP7/2007-2013) under grant agreement 258862.
and funding from the European Union's Seventh Framework Programme (FP7/2007-2013) under grant agreement 258862.
Zeile 126: Zeile 115:


The repository and the x86 build server are hosted on postgresql.org hardware.
The repository and the x86 build server are hosted on postgresql.org hardware.
[[Kategorie:PostgreSQL]]

Aktuelle Version vom 29. September 2024, 10:45 Uhr

PostgreSQL packages for Debian and Ubuntu

The PostgreSQL Global Development Group (PGDG) maintains an APT repository of PostgreSQL packages for Debian and Ubuntu located at https://apt.postgresql.org/pub/repos/apt/. We aim at building PostgreSQL server packages as well as extensions and modules packages on several Debian/Ubuntu releases for all PostgreSQL versions supported.

Support

Currently, we support

  • Debian bullseye (11), bookworm (12), trixie (testing/13) and sid (unstable)
  • Ubuntu focal (20.04), jammy (22.04), noble (24.04), oracular (24.10, amd64 only)
  • Architectures: amd64 (64-bit x86), arm64 (64-bit ARM), ppc64el (little-endian 64-bit POWER), s390x (IBM z-Series)
  • PostgreSQL 10, 11, 12, 13, 14, 15, 16, 17 devel
  • Server extensions such as PostGIS, various PL languages, and datatypes
  • Applications like omnidb, pgbouncer, and pgpool-II

PostgreSQL versions down to 8.2 exist in the repositories for salvaging old installations. Packages for older Debian/Ubuntu distributions are moved to https://apt-archive.postgresql.org.

Quickstart

TL;DR:

sudo apt install -y postgresql-common
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh

Manual Repository Configuration

Import the repository key from https://www.postgresql.org/media/keys/ACCC4CF8.asc:

sudo apt install curl ca-certificates
sudo install -d /usr/share/postgresql-common/pgdg
sudo curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc

Create /etc/apt/sources.list.d/pgdg.list. The distributions are called codename-pgdg. In the example, replace bookworm with the actual distribution you are using. File contents:

deb [signed-by =/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt bookworm-pgdg main

(You may determine the codename of your distribution by running lsb_release -c). For a script version of the above file creation, presuming you are using a supported release:

sudo sh -c 'echo "deb [signed-by =/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

Finally, update the package lists, and start installing packages:

sudo apt update
sudo apt install postgresql-16

Notes

Have a look at the FAQ.

The above does not add the sources repo (deb-src) commented out; if you need source packages, you will need to modify /etc/apt/sources.list.d/pgdg.list to add it.

This repository provides "postgresql" and "postgresql-client" meta-packages that depend on the latest postgresql-xy, ... packages, similar to the ones present in Debian and Ubuntu. Once a new PostgreSQL version is released, these meta-packages will be updated to depend on the new version. If you rather want to stay with a particular PostgreSQL version, you should install specific packages like "postgresql-15" instead of "postgresql".

For packages of development/alpha/beta versions of PostgreSQL, see the FAQ entry about beta versions.

News

Older news items: Apt/OldNews

Resources

Contact

  • Mailing list: pgsql-pkg-debian@postgresql.org (Archives)
  • IRC channel: #postgresql-apt @ irc.libera.chat

Maintainers

  • Christoph Berg (Cybertec)
  • Marco Nenciarini (EnterpriseDB)
  • Michael Banck (credativ)

Past Contributors

  • Dimitri Fontaine
  • Magnus Hagander

Bugs

Please report bugs:

  • on the pgsql-pkg-debian@postgresql.org mailing list, or
  • open an issue in Redmine, or
  • open a bug in the Debian BTS.

Documentation

Acknowledgements

Work on setting up the archive was kindly supported by credativ, 2ndQuadrant, Redpill Linpro, and funding from the European Union's Seventh Framework Programme (FP7/2007-2013) under grant agreement 258862.

The Jenkins CI server is kindly hosted by DG-i.

The ARM build server is kindly hosted by HUAWEI Cloud Services.

The ppc64el build server is kindly hosted by IBM Power Systems Linux Center, Montpellier.

The s390x build server is kindly hosted by the IBM LinuxONE Community Cloud at Marist College.

The repository and the x86 build server are hosted on postgresql.org hardware.