Skip to content

Instantly share code, notes, and snippets.

@jadbaz
Created January 30, 2019 15:25
Show Gist options
  • Save jadbaz/1c8600d59443c3911fbdb265c32fbe6f to your computer and use it in GitHub Desktop.
Save jadbaz/1c8600d59443c3911fbdb265c32fbe6f to your computer and use it in GitHub Desktop.
Enable RHSCL (RedHat Software Collections) repository on AWS RHEL 7
# Verified on AWS RHEL 7.6 ARM: https://aws.amazon.com/marketplace/server/procurement?productId=c95b737d-270a-4f6a-9429-b7dc4b5d14c2
Login as root
AS root user, edit the repo file (different suffix for intel machines):
$ vi /etc/yum.repos.d/redhat-rhui-arm.repo
Find the below section:
[rhui-rhel-7-server-for-arm-64-rhscl-rhui-rpms]
name=Red Hat Software Collections (for RHEL 7 Server for ARM 64) RPMs from RHUI
mirrorlist=https://rhui3.REGION.aws.ce.redhat.com/pulp/mirror//content/dist/rhel-alt/rhui/server/7/7Server/armv8-a/$basearch/rhscl/1/os
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
sslverify=1
sslcacert=/etc/pki/rhui/cdn.redhat.com-chain.crt
sslclientcert=/etc/pki/rhui/product/content-rhel7-arm.crt
sslclientkey=/etc/pki/rhui/content-rhel7-arm.key
=> Set enabled=1
To test, the below should find the package
$ yum list httpd24-httpd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment