Basic commands to get GCC-10 setup on CentOS 7…
sudo yum -y install scl-utils sudo yum -y install devtoolset-10-gcc* source scl_source enable devtoolset-10
To verify gcc version…
gcc --version
To auto enable this…
echo "source scl_source enable devtoolset-10" >> ~/.bashrc