YUM Installation on z Systems

From PostgreSQL wiki

Jump to: navigation, search

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.



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-redhat/RPM-GPG-KEY-2NDQ-RHEL7

Configure your YUM repository

The YUM repository can be added using the following command:

RedHat Enterprise Linux 6

yum-config-manager --add-repo http://packages.2ndquadrant.com/postgresql-z-redhat/yum/rhel-6-s390x

RedHat Enterprise Linux 7

yum-config-manager --add-repo http://packages.2ndquadrant.com/postgresql-z-redhat/yum/rhel-7-s390x

Install RPM files

At this point, installation, setup and service instructions can be followed on the YUM Installation page.

Using reposync

To synchronize a repository to a local directory:

RedHat Enterprise Linux 6

reposync -r packages.2ndquadrant.com_postgresql-z-redhat_yum_rhel-6-s390x

RedHat Enterprise Linux 7

reposync -r packages.2ndquadrant.com_postgresql-z-redhat_yum_rhel-7-s390x
Personal tools