Install it by:

sudo yum install centos-release-scl
sudo yum install devtoolset-4

The first command installs and enables Software Collections Repository on your CentOS machine. That repository provides the devtoolset package.

Answer from 13dimitar on Stack Exchange
🌐
Softwarecollections
softwarecollections.org › en › scls › rhscl › devtoolset-6
Developer Toolset 6 — Software Collections
devtoolset-6 - Developer Toolset is designed for developers working on CentOS or Red Hat Enterprise Linux platform.
Browse collections
go-toolset-7 - Go Toolset is designed for developers on the CentOS or Red Hat Enterprise Linux platform. It provides the Go programming language tools and libraries. Go is alternatively known as golang. ... devtoolset-8 - Developer Toolset is designed for developers working on CentOS or Red ...
Guides
On CentOS, install the SCL release package `centos-release-scl`: · On RHEL, enable the RHSCL repository. Note that you may also need to enable the Optional channel and attach a subscription providing access to RHSCL to be able to use that repository
About
SoftwareCollections.org is the home for projects creating Software Collections (SCLs) for Red Hat Enterprise Linux, Fedora, CentOS, and Scientific Linux. This is where you create and host Software Collections, as well as connect with other developers working on SCLs · SoftwareCollections.org ...
🌐
Stack Overflow
stackoverflow.com › questions › 53708189 › how-to-install-devtoolset-7-i686-on-centos-6
centos6 - How to install devtoolset-7 i686 on CentOS 6? - Stack Overflow
yum --disablerepo=\* --enablerepo=cloudlinux install devtoolset-4-gcc devtoolset-4-gcc-c++ devtoolset-4-binutils scl enable devtoolset root@/etc/yum.repos.d $ gcc --version gcc (GCC) 5.3.1 20160406 (Red Hat 5.3.1-6) Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > Reference: Centos6安装gcc4.8及以上版本 (Chinese)
🌐
Centos
buildlogs.centos.org › c7-devtoolset-6.x86_64 › Packages
Index of /c7-devtoolset-6.x86_64/Packages
This server contains a mix of raw/unsigned packages and/or build logs It should be used mainly for testing purposes
🌐
Centos
cbs.centos.org › koji › packageinfo
devtoolset-6-gcc | Package Info | CentOS Community Build Service
September 17, 2019 - Main Site Links: · Summary · Packages · Builds · Tasks · Build Targets · Users · Hosts · Reports · Search
🌐
Centos
buildlogs.centos.org › c7-devtoolset-6.x86_64
Index of /c7-devtoolset-6.x86_64 - CentOS Buildlogs Mirror
This server contains a mix of raw/unsigned packages and/or build logs It should be used mainly for testing purposes
🌐
Docker Hub
hub.docker.com › r › centos › devtoolset-6-toolchain-centos7
centos/devtoolset-6-toolchain-centos7 - Docker Image
FROM rhscl/devtoolset-6-toolchain-rhel7 USER 0 RUN yum install -y --setopt=tsflags=nodocs boost-devel && yum clean all -y USER 1001 Copy
🌐
Stack Overflow
stackoverflow.com › questions › 51661630 › devtoolset-3-not-found-on-centos-6
centos6 - devtoolset-3 not found on Centos 6 - Stack Overflow
I am using Centos 6 in Docker for my CI system. geisshirt – geisshirt · 2018-08-17 17:12:23 +00:00 Commented Aug 17, 2018 at 17:12 · Maybe centos.org/forums/viewtopic.php?f=14&t=67978 is a hint · geisshirt – geisshirt · 2018-08-17 17:18:23 +00:00 Commented Aug 17, 2018 at 17:18 · Add a comment | Sorted by: Reset to default · Highest score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first) 0 · Devtoolset-3 is end-of-life, and the community has not maintained all of its packages.
Find elsewhere
🌐
Stack Exchange
unix.stackexchange.com › questions › 266065 › centos-6-and-devtoolset-3
CentOS 6 and Devtoolset-3 - Unix & Linux Stack Exchange
bash-4.2# yum install devtoolset-3-gcc-c++ Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.dhakacom.com * extras: mirror.dhakacom.com * updates: centosr4.centos.org Resolving Dependencies --> Running transaction check ---> Package devtoolset-3-gcc-c++.x86_64 0:4.9.2-6.el6 will be installed --> Processing Dependency: devtoolset-3-gcc = 4.9.2-6.el6 for package: devtoolset-3-gcc-c++-4.9.2-6.el6.x86_64 --> Processing Dependency: devtoolset-3-libstdc++-devel = 4.9.2-6.el6 for package: devtoolset-3-gcc-c++-4.9.2-6.el6.x86_64 --> Processing Dependency: libgmp.s
🌐
Stack Overflow
stackoverflow.com › questions › 35653111 › centos-6-and-devtoolset-3
centos6 - CentOS 6 and Devtoolset-3 - Stack Overflow
bash-4.2# yum install devtoolset-3-gcc-c++ Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.dhakacom.com * extras: mirror.dhakacom.com * updates: centosr4.centos.org Resolving Dependencies --> Running transaction check ---> Package devtoolset-3-gcc-c++.x86_64 0:4.9.2-6.el6 will be installed --> Processing Dependency: devtoolset-3-gcc = 4.9.2-6.el6 for package: devtoolset-3-gcc-c++-4.9.2-6.el6.x86_64 --> Processing Dependency: devtoolset-3-libstdc++-devel = 4.9.2-6.el6 for package: devtoolset-3-gcc-c++-4.9.2-6.el6.x86_64 --> Processing Dependency: libgmp.s
🌐
GitHub
github.com › centminmod › centminmod › blob › master › addons › devtoolset-6.sh
centminmod/addons/devtoolset-6.sh at master · centminmod/centminmod
# install devtoolset-6 package for centos 6 or 7 · # 64bit only · # https://www.softwarecollections.org/en/scls/rhscl/devtoolset-6/ # written by George Liu (eva2000) centminmod.com · # · # requires at least an extra 1GB of disk free space for install · # install to obtain side install of gcc and g++ 6.2.x ·
Author   centminmod
🌐
Stack Exchange
unix.stackexchange.com › questions › 461277 › how-can-i-install-old-software-collections-packages-on-centos-6
How can I install old software collections packages on CentOS 6? - Unix & Linux Stack Exchange
August 8, 2018 - FROM centos:6 RUN yum -y update && yum -y install centos-release-scl RUN yum -y update && yum -y install devtoolset-4-gcc-c++ RUN scl enable devtoolset-4 ./build.sh #Build with gcc 5
🌐
Tech-Artists.Org
tech-artists.org › coding
Devtoolset 6 with gcc 6.3.1 on Centos 7.7 - Coding - Tech-Artists.Org
June 8, 2020 - How do you guys get this version of devtoolset? Can’t find it. What already tried and did not worked is: yum install centos-release-scl yum-config-manager --enable rhel-s sudo yum install devtoolset-6 I get No pack…
🌐
Google Groups
groups.google.com › g › vfx-platform-discuss › c › _-_CPw1fD3c
Removal of Devtoolset-6 from CentOS 7.7
When a new CentOS version is released, the prior point release is left up for a temporary time before being archived. 7.6.1810 is currently in the process of being archived and will soon be unavailable from the original mirror. The new home of the DTS will be here: http://vault.centos.org/7.6.1810/sclo/x86_64/rh/devtoolset-6/ Cheers, Mike
🌐
GitHub
gist.github.com › 9fbed00315f5338c9fb1
Script to install devtoolset-based environment on Scientific Linux 6.x or CentOS 6.x · GitHub
September 20, 2019 - Script to install devtoolset-based environment on Scientific Linux 6.x or CentOS 6.x - install-build-system.sh