Hi there,
I installed a fresh Debian 13 and added the packages from https://www.postgresql.org/download/linux/debian/.
Afterwards I wanted to install PostgreSQL 17, but I ended up with PostgreSQL 18.
I named 17, the installation messages said it is 17.
I copied commands and output from the terminal. As that system is in German, all messages are in German, too.
/Stefanie
sudo apt install postgresql-17
Installiere:
postgresql-17
Installiere Abhängigkeiten:
postgresql-client-17
Vorgeschlagene Pakete:
postgresql-doc-17
Zusammenfassung:
Aktualisiere: 0, Installiere: 2, Entferne: 0, Aktualisiere nicht: 0
Herunterlade-Größe: 18,6 MB
Benötigter Platz: 69,4 MB / 90,4 GB verfügbar
Fortfahren? [J/n]
Holen:1 https://apt.postgresql.org/pub/repos/apt trixie-pgdg/main amd64 postgresql-client-17 amd64 17.6-2.pgdg13+1 [2.031 kB]
Holen:2 https://apt.postgresql.org/pub/repos/apt trixie-pgdg/main amd64 postgresql-17 amd64 17.6-2.pgdg13+1 [16,6 MB]
Es wurden 18,6 MB in 4 s geholt (4.962 kB/s).
Vorkonfiguration der Pakete ...
Vormals nicht ausgewähltes Paket postgresql-client-17 wird gewählt.
(Lese Datenbank ... 101091 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../postgresql-client-17_17.6-2.pgdg13+1_amd64.de
b ...
Entpacken von postgresql-client-17 (17.6-2.pgdg13+1) ...
Vormals nicht ausgewähltes Paket postgresql-17 wird gewählt.
Vorbereitung zum Entpacken von .../postgresql-17_17.6-2.pgdg13+1_amd64.deb ...
Entpacken von postgresql-17 (17.6-2.pgdg13+1) ...
postgresql-client-17 (17.6-2.pgdg13+1) wird eingerichtet ...
postgresql-17 (17.6-2.pgdg13+1) wird eingerichtet ...
Trigger für postgresql-common (283.pgdg13+1) werden verarbeitet ...
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
de_at
de_ch
de_de
en_us
Then I became postgres and started psql:
sudo su postgres
psql
psql (18.0 (Debian 18.0-1.pgdg13+3))
Geben Sie »help« für Hilfe ein.
postgres=# select version();
version
--------------------------------------------------------------------------------------------------------------------
PostgreSQL 18.0 (Debian 18.0-1.pgdg13+3) on x86_64-pc-linux-gnu, compiled by gcc (Debian 14.2.0-19) 14.2.0, 64-bit