How to install GDB 8 in CentOS 7
Olivia Zamora
I need to install GDB 8.0 or above in my CentOS 7. My current version of gdb is 7.6.1.
I have followed the guide at devtoolset-7-gdb | Install HowTo:
yum install centos-release-scl-rhyum --enablerepo=centos-sclo-rh-testing install devtoolset-7-gdb
but when I hit gdb -v, I get my old version: 7.6.1 and not 8.0.
1 Answer
I would suggest you to follow below mentioned steps, which have been referred from here.
Step 1. Install a package with repository for your system:
On CentOS, install package centos-release-scl available in CentOS repository:
sudo yum -y install centos-release-sclOn RHEL, enable RHSCL repository for you system:
sudo yum-config-manager --enable rhel-server-rhscl-7-rpmsStep 2. Install the collection:
sudo yum -y install devtoolset-7Step 3. Start using software collections:
scl enable devtoolset-7 bash