I am trying to install the latest version of g++ in Cent OS. The best I managed is the following:
wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo
yum install devtoolset-2-gcc devtoolset-2-binutils
yum install devtoolset-2-gcc-c++ devtoolset-2-binutils
But this installs g++ 4.8.2 and not 4.9.2. Is there a way to install 4.9.2?