Unable to activate rhel-server-rhscl-7-rpms on RHEL7

Jonathan asked:

I am trying to install PHP7.1 on my RHEL7 server and I am unable to get the repository where it exists to attach.

From various redhat support articles I have been following don’t seem to do the trick.

[[email protected]:~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.4 (Maipo)
[[email protected]:~]# subscription-manager repos --enable rhel-server-rhscl-7-beta-rpms
Error: 'rhel-server-rhscl-7-beta-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories.
[[email protected]:~]# subscription-manager repos --list | egrep rhscl
[[email protected]:~]# subscription-manager repos --enable rhel-7-server-extras-rpms
Repository 'rhel-7-server-extras-rpms' is enabled for this system.
[[email protected]:~]# subscription-manager repos --enable rhel-7-server-optional-rpms
Repository 'rhel-7-server-optional-rpms' is enabled for this system.
[[email protected]:~]# subscription-manager repos --enable rhel-server-    rhscl-7-rpms
Error: 'rhel-server-rhscl-7-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories.

[[email protected]:~]# subscription-manager list

+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name:   Red Hat Enterprise Linux Server
Product ID:     69
Version:        7.4
Arch:           x86_64
Status:         Subscribed
Status Details:
Starts:         12/20/2017
Ends:           12/19/2018

Any help is greatly appreciated.

I added a pastebin with the output of the repos I have as it is pretty extensive:

https://pastebin.com/AxkSvi9f

added pastebin of repo list

  • rhel-7-server-eus-thirdparty-oracle-java-isos
    • rhel-7-server-eus-supplementary-isos
    • rhel-7-server-eus-source-isos
    • rhel-7-server-eus-isos
    • rhel-sap-hana-for-rhel-7-server-eus-debug-rpms
    • rhel-sap-hana-for-rhel-7-server-eus-rpms
    • rhel-sap-hana-for-rhel-7-server-eus-source-rpms
    • rhel-sjis-for-rhel-7-server-eus-debug-rpms
    • rhel-sjis-for-rhel-7-server-eus-rpms
    • rhel-sjis-for-rhel-7-server-eus-source-rpms
    • rhel-7-server-eus-thirdparty-oracle-java-source-rpms
    • rhel-7-server-eus-thirdparty-oracle-java-rpms
    • rhel-rs-for-rhel-7-server-eus-debug-rpms
    • rhel-rs-for-rhel-7-server-eus-rpms
    • rhel-rs-for-rhel-7-server-eus-source-rpms
    • rhel-ha-for-rhel-7-server-eus-rpms
    • rhel-ha-for-rhel-7-server-eus-source-rpms
    • rhel-ha-for-rhel-7-server-eus-debug-rpms
    • rhel-7-server-eus-rpms
    • rhel-7-server-eus-rh-common-source-rpms
    • rhel-7-server-eus-supplementary-debuginfo
    • rhel-7-server-eus-satellite-tools-6.2-source-rpms
    • rhel-7-server-eus-optional-rpms
    • rhel-7-server-eus-rh-common-rpms
    • rhel-7-server-eus-supplementary-source-rpms
    • rhel-7-server-eus-debug-rpms
    • rhel-7-server-eus-satellite-tools-6.2-debug-rpms
    • rhel-7-server-eus-source-rpms
    • rhel-7-server-eus-supplementary-rpms
    • rhel-7-server-eus-rh-common-debug-rpms
    • rhel-7-server-eus-optional-debug-rpms
    • rhel-7-server-eus-rhn-tools-debug-rpms
    • rhel-7-server-eus-rhn-tools-rpms
    • rhel-7-server-eus-rhn-tools-source-rpms
    • rhel-7-server-eus-optional-source-rpms
    • rhel-7-server-eus-satellite-tools-6.1-source-rpms
    • rhel-7-server-eus-satellite-tools-6.1-debug-rpms
    • rhel-7-server-eus-satellite-tools-6.1-rpms
    • rhel-7-server-eus-satellite-tools-6.2-rpms
    • rhel-sap-for-rhel-7-server-eus-rpms
    • rhel-sap-for-rhel-7-server-eus-source-rpms
    • rhel-sap-for-rhel-7-server-eus-debug-rpms

My answer:


The correct name of the repo is rhel-server-rhscl-7-rpms. You seem to have some sort of nonprinting or whitespace character embedded in the middle of your command line. Try copying and pasting.

Repo ID:   rhel-server-rhscl-7-rpms
Repo Name: Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/rhscl/1/os
Enabled:   0

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.