Create PostgreSQL child channel, CentOS 7, Spacewalk

Create a new Channel:
Fill the fields!

Channel Name:
postgresql-9-5-rhel-7-x86_64
Channel Label:
postgresql-9-5-rhel-7-x86_64
Parent Channel:
CentOS 7 Base x86_64
Architecture:
x86_64
Channel Summary:
postgresql-9-5-rhel-7-x86_64
Scroll down the page and enter:
GPG key URL:
https://apt.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG
GPG key ID:
442DF0F8
GPG key Fingerprint:
68C9 E2B9 1A37 D136 FE74  D176 1F16 D2E1 442D F0F8
This is the same key from:
curl https://apt.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG > /etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG
cp /etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG /var/www/html/pub/RPM-GPG-KEY-PGDG
gpg --with-fingerprint /etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG
pub  1024D/442DF0F8 2008-01-08 PostgreSQL RPM Building Project <pgsqlrpms-hackers@pgfoundry.org>
      Key fingerprint = 68C9 E2B9 1A37 D136 FE74  D176 1F16 D2E1 442D F0F8
sub  2048g/D43F1AF8 2008-01-08
Click [Create Channel] at the end:
Open [Channels] section, go for [Manage Software Channels],
go for [Manage Repositories], click [Create Repository]:
Fill down:
Repository Label:
postgresql-9-5-rhel-7-x86_64
Repository URL:
https://yum.postgresql.org/9.5/redhat/rhel-7-x86_64/
Click [Create Repository]:
Now open your child channel:
Assing child repository to child channel and press [Update Repositories] button:
Now at the command line execute:
spacewalk-repo-sync -c postgresql-9-5-rhel-7-x86_64

No comments: