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
(As discussed in comments) Note that the Software Collections repo is not available on systems which are on Extended Update Support. The system will need to be taken off EUS and updated to the most current minor release in order to use Red Hat's Software Collections.
Answer from Michael Hampton on serverfault.comThe 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
(As discussed in comments) Note that the Software Collections repo is not available on systems which are on Extended Update Support. The system will need to be taken off EUS and updated to the most current minor release in order to use Red Hat's Software Collections.
I would install it from the extra packages (EPEL) repo. First, you'll want to ensure that the EPEL repository is configured (and enable the optional channel for RHEL too):
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm
For RHEL, run this command as well:
subscription-manager repos --enable=rhel-7-server-optional-rpms
Next, enable the remi-php71 repository:
yum install yum-utils
yum-config-manager --enable remi-php71
And now you can install PHP 7.1:
yum install php71
Doesnt answer your question about enabling your repo ( your fault seems to be with a weird whitespace in the middle of your penultimate command ) :
[root@nj-way-intranet:~]# subscription-manager repos --enable rhel-server- rhscl-7-rpms
RHEL 7 offline, extended license, update help please.
rhel7 - Red Hat Development Suite missing rhel-7-server-devtools-rpms - Stack Overflow
RHEL 7: Error getting repository data for rhel-7-server-extras-rpms, repository not found
Unable to install / update packages from RHEL 7 Server repository
I am a maintainer (very loosely called a sysadmin, so too technical questions and I might not be able to answer you) of an RHEL 7.9 system that is offline - not connected to the internet - system.
Before asked, cannot move to a newer version of RHEL at the moment - when we set it up, RHEL8 had problems running diskless and meeting FIPS requirements and no budget to upgrade at the moment.
I am required to updates, especially security updates, monthly.
As we know, RHEL 7 lost support in June - which is the last month I was able to get updates.
I was able to convince the powers that be to purchase extended license support.
The problem I have is, when I run my update command, I still only get updates from June.
When I log into my Red Hat account I can see my active subscriptions:
Developer for Individuals
Red Hat Beta Access
Extended Support for Red Hat Enterprise Linux
This is how things worked (before adding the extended license):
subscription-manager unregister
subscription-manager clean
yum clean all
subscription-manager register
subscription-manager subscribe --pool=longIDnumber
Then add:
subscription-manager repos --enable rhel-7-server-extras-rpms
subscription-manager repos --enable rhel-7-server-devtools-rpms
subscription-manager repos --enable rhel-7-server-optional-rpms
subscription-manager repos --enable rhel-ha-for-rhel-7-server-rpms
subscription-manager repos --enable rhel-7-server-rpms
I'd then run the following command:
yum install $(cat /installers/release/lab-rpms.txt|xargs) --installroot=/installers/release/lab-rpms --nogpgcheck --releasever=/ --downloadonly --downloaddir=/installers/release/lab-rpms
but now get his error:
Error: Multilib version problems found. This often means that the root
cause is something else and multilib version checking is just
pointing out that there is a problem. Eg.:
-
You have an upgrade for shim-x64 which is missing some
dependency that another package requires. Yum is trying to
solve this by installing an older version of shim-x64 of the
different architecture. If you exclude the bad architecture
yum will tell you what the root cause is (which package
requires what). You can try redoing the upgrade with
--exclude shim-x64.otherarch ... this should give you an error
message showing the root cause of the problem.
2. You have multiple architectures of shim-x64 installed, but
yum can only see an upgrade for one of those architectures.
If you don't want/need both architectures anymore then you
can remove the one with the missing update and everything
will work.
3. You have duplicate versions of shim-x64 installed already.
You can use "yum check" to get yum show these errors.
...you can also use --setopt=protected_multilib=false to remove
this checking, however this is almost never the correct thing to
do as something else is very likely to go wrong (often causing
much more problems).
Protected multilib versions: shim-x64-15-11.el7.x86_64 != shim-x64-15.8-1.el7.x86_64
Error: Protected multilib versions: mokutil-15-11.el7.x86_64 != mokutil-15.8-1.el7.x86_64
so, I run it with:
--setopt=protected_multilib=false
for it to run
I got a new pool ID to use with the extended license, but when I try to subscrib to it, it comes back not found.
if/when I add any of these it errors out, saying to remove them:
subscription-manager repos --enable rhel-7-server-eus-rpms
subscription-manager repos --enable rhel-7-server-eus-optional-rpms
I'm not sure what else to add here.
Anyone have any idea what I can do to get the latest updares?
Thank you.
EDIT:
So searching Red Hat site and found what appears to be prof that I got the ELS subscription, I think?
Not sure where to go next, heard back on my trouble ticket yet.