
Mirrorlist=$releasever&arch=$basearch&repo=centosplus&infra=$$īy using CentOS 8 it is just one command to exclude PostgreSQL from the distribution repository: $ dnf -y module disable postgresqlĪdd PostgreSQL Repository to CentOS 7, in this example it is ProstgreSQL 12 $ yum install

#additional packages that extend functionality of existing packages Mirrorlist=$releasever&arch=$basearch&repo=extras&infra=$infra Mirrorlist=$releasever&arch=$basearch&repo=updates&infra=$inf$ Gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Mirrorlist=$releasever&arch=$basearch&repo=os&infra=$infra # If the mirrorlist= does not work for you, as a fall back you can try the # unless you are manually picking other mirrors. # update status of each mirror to pick mirrors that are updated to and # The mirror system uses the connecting IP address of the client and the

On a minimal installation in my mind a few things are missing, the net-tools package and nano as editor, I’m a friend of using nano instead of vi.įor using the PostgreSQL repository it is important to exclude PostgreSQL from the CentOS Repository.īy using CentOS 7 you need to edit the CentOS-Base repofile to exclude PostgreSQL from Base and Updates. This blog entry based on PostgreSQL 12 with CentOS 7 and CentOS 8. One issue with the packages is the hard coded PGDATA, which will be overwritten in the Servicefile with each update of PostgreSQL. In this blog I will show how to handle a PostgreSQL installation with a customized PGDATA using the packages provided by the PostgreSQL community.
