Probably you have a mess with env paths. Check files .bashrc or .bash_profile and remove old version path.

Last chance is to use direct/explicitly:

 source /opt/rh/devtoolset-7/enable
Answer from Nikola Lukic on Stack Overflow
🌐
Stack Exchange
unix.stackexchange.com › questions › 278061 › how-can-i-enable-centos-release-scl-on-centos-6-7
yum - How can I enable centos-release-SCL on Centos 6.7? - Unix & Linux Stack Exchange
sudo yum --disablerepo=\* --enablerepo=extras install centos-release-SCL Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Install Process Loading mirror speeds from cached hostfile * extras: anorien.csc.warwick.ac.uk No package centos-release-SCL available.
🌐
GitHub
github.com › sclorg › centos-release-scl
GitHub - sclorg/centos-release-scl: yum Configs and basic docs for Software Collections as delivered via the CentOS SCLo SIG. · GitHub
DEPRECATED Please, mind that CentOS 7 is out of support already, so it's possible that even this repository will not get needed updates. Users of this repos are advised to not depend on the content here, as it can be removed anytime. On CentOS, there are packages centos-release-scl and centos-release-scl-rh available in centos-extra repository, so for installing SCLo reposo on CentOS, run:
Starred by 70 users
Forked by 15 users
Languages   Shell
Discussions

install gcc successful, but can't enable - Stack Overflow
I follow the tutorial install GCC in centos7, install success, but can't enable. here is the commands. sudo yum group install "Development Tools" sudo yum install centos-release-scl sud... More on stackoverflow.com
🌐 stackoverflow.com
Installing centos-release-scl
Hey, I want to migrate from centos-7 to Rocky Linux. I was using centos-release-scl-rh with older centos version. But while building with rockylinux this package was not found. Can someone please share any alternative on how i can get this dependency or what i can do here? More on forums.rockylinux.org
🌐 forums.rockylinux.org
0
0
January 25, 2023
yum install centos-release-scl-rh failing
yum -y install centos-release-scl-rh Loaded plugins: fastestmirror, ovl Loading mirror speeds from cached hostfile No package centos-release-scl-rh available. More on github.com
🌐 github.com
6
March 27, 2021
Problem with missing yum package CentOS (Virtualmin) - Unix & Linux Stack Exchange
You could try to rebuild the rh-php71 ... I have not found any information that anyone has tried to do that. You can find information about available software collections from their website or from the configured YUM repository ... I see. So the best way is to cat /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo | grep http, follow link and broswe available packages, ... More on unix.stackexchange.com
🌐 unix.stackexchange.com
🌐
GitHub
github.com › sclorg › centos-release-scl › blob › master › README.md
centos-release-scl/README.md at master · sclorg/centos-release-scl
DEPRECATED Please, mind that CentOS 7 is out of support already, so it's possible that even this repository will not get needed updates. Users of this repos are advised to not depend on the content here, as it can be removed anytime. On CentOS, there are packages centos-release-scl and centos-release-scl-rh available in centos-extra repository, so for installing SCLo reposo on CentOS, run:
Author   sclorg
🌐
Theforeman
projects.theforeman.org › issues › 7899
Bug #7899: CentOS: foreman seems to depend on centos-release-SCL, not the packages it actually needs - Foreman
centos-release-SCL does not currently exist for CentOS (and will likely not exist for the foreseeable future) - the individual packages that foreman needs are available from http://projects.theforeman.org/projects/foreman/issues/new
🌐
Rocky Linux Forum
forums.rockylinux.org › rocky linux help & support
Installing centos-release-scl - Rocky Linux Help & Support - Rocky Linux Forum
January 25, 2023 - Hey, I want to migrate from centos-7 to Rocky Linux. I was using centos-release-scl-rh with older centos version. But while building with rockylinux this package was not found. Can someone please share any alternative o…
🌐
GitHub
github.com › nealef › clefos › issues › 7
yum install centos-release-scl-rh failing · Issue #7 · nealef/clefos
March 27, 2021 - yum -y install centos-release-scl-rh Loaded plugins: fastestmirror, ovl Loading mirror speeds from cached hostfile No package centos-release-scl-rh available.
Author   nealef
🌐
Pvpgn
forums.pvpgn.pro › viewtopic.php
[Solved] Error: Unable to find a match: centos-release-scl (CentOS 8) (Page 1) — [EN] Tech Support — forums.pvpgn.pro
Do not ask for support in PM. ... This worked! The only thing that was different was the mysql items (dnf install mysql-devel worked without the suffix .x86_64) Thank you so much!!! ... Lua 5.1 is required for pvpgn, but there is only version 5.3 in CentOS 8 (remove it first).
Find elsewhere
🌐
CSDN
bbs.csdn.net › topics › 392267742
No package centos-release-SCL available 找不到包-CSDN论坛
September 24, 2017 - Error: Nothing to do 没有centos-release-SCL这样的包, 只有centos-release-xxx的包。不知道是不是这种。 你可以"yum install centos-release*"试试 ... 我的Linux版本6.8x64 依次执行以下命令解决 cd /home wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm ... -ivh epel-release-6-8.noarch.rpm yum install XXX 完毕。 · CentOS中yum安装软件时报错:No package XXX available(转载)
🌐
Red Hat
bugzilla.redhat.com › show_bug.cgi
1550377 – centos-release-scl-rh doesn't work well for aarch64 right now
Red Hat Bugzilla – Bug 1550377 · This site requires JavaScript to be enabled to function correctly, please enable it · Privacy Contact FAQ Legal
🌐
RPMfind
rpmfind.net › linux › rpm2html › search.php
RPM resource centos-release-SCL
The search service can find package by either name (apache), provides(webserver), absolute file names (/usr/bin/apache), binaries (gprof) or shared libraries (libXm.so.2) in standard path. It does not support multiple arguments yet...
🌐
Stack Exchange
unix.stackexchange.com › questions › 278061 › how-can-i-enable-centos-release-scl-on-centos-6-7 › 303443
python - How can I enable centos-release-SCL on Centos 6.7? - Unix & Linux Stack Exchange
sudo yum --disablerepo=\* --enablerepo=extras install centos-release-SCL Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Install Process Loading mirror speeds from cached hostfile * extras: anorien.csc.warwick.ac.uk No package centos-release-SCL available.
🌐
Linuxcnf
linuxcnf.com › 2019 › 09 › how-to-enable-software-collections-scl.html
The Linux Guide: How to Enable Software Collections (SCL) yum repository on CentOS 7
Now the SCL repository is enabled using yum command. Method 2. Download RPM package and its dependency from CentOS official site and install using rpm command. The RPM package configures SCL repository. Step 1. Package downloading: Run the following command to download SCL rpm package and its dependency from CentOS official site:
🌐
RPMfind
rpmfind.net › linux › rpm2html › search.php
RPM resource centos-release-scl-rh
The search service can find package by either name (apache), provides(webserver), absolute file names (/usr/bin/apache), binaries (gprof) or shared libraries (libXm.so.2) in standard path. It does not support multiple arguments yet · The System and Arch are optional added filters, for example ...
🌐
Xmodulo
xmodulo.com › enable-software-collections-centos.html
How to enable Software Collections (SCL) on CentOS
September 23, 2020 - The SCL is available on CentOS 6.5 and later. To set up the SCL, simply run: ... To enable and run applications from the SCL, you also need to install the following package. ... Now that you have set up the SCL, you can go ahead and install any package from the SCL.