YUM Installation on z Systems
PostgreSQL can be installed using RPMs (binary) or SRPMs (source) managed by YUM for Linux on IBM z Systems. Instructions for installing PostgreSQL on these systems have slightly different instructions while work is being done to integrate the z Systems packages with the other systems. This is currently available for RedHat Enterprise Linux 6 and 7.
Instructions
The first step is to import the package signing public key:
RedHat Enterprise Linux 6
rpm --import http://packages.2ndquadrant.com/postgresql-z-redhat/RPM-GPG-KEY-2NDQ-RHEL6
RedHat Enterprise Linux 7
rpm --import http://packages.2ndquadrant.com/postgresql-z/RPM-GPG-KEY-2NDQ-RHEL7
Configure your YUM repository
The YUM repository can be added using the following command:
RedHat Enterprise Linux 6
PostgreSQL 10:
yum-config-manager --add-repo http://packages.2ndquadrant.com/postgresql-z/yum/10/rhel6-s390x
PostgreSQL 11:
yum-config-manager --add-repo http://packages.2ndquadrant.com/postgresql-z/yum/11/rhel6-s390x
PostgreSQL 12:
yum-config-manager --add-repo http://packages.2ndquadrant.com/postgresql-z/yum/12/rhel6-s390x
RedHat Enterprise Linux 7
PostgreSQL 10:
yum-config-manager --add-repo http://packages.2ndquadrant.com/postgresql-z/yum/10/rhel7-s390x
PostgreSQL 11:
yum-config-manager --add-repo http://packages.2ndquadrant.com/postgresql-z/yum/11/rhel7-s390x
PostgreSQL 12:
yum-config-manager --add-repo http://packages.2ndquadrant.com/postgresql-z/yum/12/rhel7-s390x
Install RPM files
At this point, installation, setup and service instructions can be followed on the YUM Installation page.