...
To use the newer versions in a bash script after the RPMs are installed :(or see below for another method)
#-----------------------------------------
# to enable newer gcc from software collections:
# (replace devtoolset-6 with current version of devtoolset)
#-----------------------------------------
if [ -x /opt/rh/devtoolset-6/enable ]; then
echo Enabling GCC from Developer Toolset
source /opt/rh/devtoolset-6/enable
fi
...
How to use the Software Collections version of a runtime program (eg, perl, python) from a script :(the alternative process above might be safer since it checks to see if the software collection is installed first)
#!/usr/bin/scl enable rh-perl524 -- perl
print "$^V\n";
...