meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:databases:psql:upgradeto17 [2025/08/05 09:35] – created niziaklinux:databases:psql:upgradeto17 [2025/11/07 19:18] (current) niziak
Line 2: Line 2:
  
 <code bash> <code bash>
-sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main> /etc/apt/sources.list.d/pgdg.list' +sudo apt install curl ca-certificates 
-wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -+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 
 + 
 +. /etc/os-release 
 +sudo sh -c "echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $VERSION_CODENAME-pgdg main> /etc/apt/sources.list.d/pgdg.list" 
 sudo apt update sudo apt update
 </code> </code>
Line 9: Line 14:
 <code bash> <code bash>
 apt install postgresql-17 apt install postgresql-17
-pg_upgradecluster 15 main+pg_upgradecluster 15 main -v 17
  
 Success. Please check that the upgraded cluster works. If it does, Success. Please check that the upgraded cluster works. If it does,