Apt Installation for IBM Z

From PostgreSQL wiki

Jump to: navigation, search

PostgreSQL packages for Ubuntu for Linux on IBM Z (s390x)

Currently, we support

  • 16.04 (xenial), 18.04 (bionic)
  • Architectures: s390x (IBM Z)
  • PostgreSQL 10

Quickstart

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

deb http://packages.2ndquadrant.com/postgresql-z/apt/ bionic-pgdg main

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

sudo sh -c 'echo "deb http://packages.2ndquadrant.com/postgresql-z/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

Import the repository key from http://packages.2ndquadrant.com/postgresql-z/07F98489.asc, update the package lists, and start installing packages:

sudo apt-get install wget ca-certificates
wget --quiet -O - http://packages.2ndquadrant.com/postgresql-z/07F98489.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install postgresql-10


Note: This repository provides "postgresql", "postgresql-contrib", and "postgresql-client" meta-packages that depend on the latest postgresql-x.y, ... 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-10" instead of "postgresql".

Personal tools