How To Install gcc-toolset-10-runtime on CentOS 8

gcc-toolset-10-runtime is Package that handles gcc-toolset-10 Software Collection.

Introduction

In this tutorial we learn how to install gcc-toolset-10-runtime on CentOS 8.

What is gcc-toolset-10-runtime

Package shipping essential scripts to work with gcc-toolset-10 Software Collection.

We can use yum or dnf to install gcc-toolset-10-runtime on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install gcc-toolset-10-runtime.

Install gcc-toolset-10-runtime on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install gcc-toolset-10-runtime using dnf by running the following command:

sudo dnf -y install gcc-toolset-10-runtime

Install gcc-toolset-10-runtime on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install gcc-toolset-10-runtime using yum by running the following command:

sudo yum -y install gcc-toolset-10-runtime

How To Uninstall gcc-toolset-10-runtime on CentOS 8

To uninstall only the gcc-toolset-10-runtime package we can use the following command:

sudo dnf remove gcc-toolset-10-runtime

gcc-toolset-10-runtime Package Contents on CentOS 8

/etc/scl/prefixes/gcc-toolset-10
/opt/rh
/opt/rh/gcc-toolset-10
/opt/rh/gcc-toolset-10/enable
/opt/rh/gcc-toolset-10/root
/opt/rh/gcc-toolset-10/root/bin
/opt/rh/gcc-toolset-10/root/boot
/opt/rh/gcc-toolset-10/root/dev
/opt/rh/gcc-toolset-10/root/etc
/opt/rh/gcc-toolset-10/root/etc/X11
/opt/rh/gcc-toolset-10/root/etc/X11/applnk
/opt/rh/gcc-toolset-10/root/etc/X11/fontpath.d
/opt/rh/gcc-toolset-10/root/etc/alternatives
/opt/rh/gcc-toolset-10/root/etc/opt
/opt/rh/gcc-toolset-10/root/etc/pki
/opt/rh/gcc-toolset-10/root/etc/pm
/opt/rh/gcc-toolset-10/root/etc/pm/config.d
/opt/rh/gcc-toolset-10/root/etc/pm/power.d
/opt/rh/gcc-toolset-10/root/etc/pm/sleep.d
/opt/rh/gcc-toolset-10/root/etc/selinux-equiv.created
/opt/rh/gcc-toolset-10/root/etc/skel
/opt/rh/gcc-toolset-10/root/etc/sysconfig
/opt/rh/gcc-toolset-10/root/etc/xdg
/opt/rh/gcc-toolset-10/root/etc/xdg/autostart
/opt/rh/gcc-toolset-10/root/etc/xinetd.d
/opt/rh/gcc-toolset-10/root/home
/opt/rh/gcc-toolset-10/root/lib
/opt/rh/gcc-toolset-10/root/lib64
/opt/rh/gcc-toolset-10/root/media
/opt/rh/gcc-toolset-10/root/mnt
/opt/rh/gcc-toolset-10/root/opt
/opt/rh/gcc-toolset-10/root/proc
/opt/rh/gcc-toolset-10/root/root
/opt/rh/gcc-toolset-10/root/run
/opt/rh/gcc-toolset-10/root/run/lock
/opt/rh/gcc-toolset-10/root/sbin
/opt/rh/gcc-toolset-10/root/srv
/opt/rh/gcc-toolset-10/root/sys
/opt/rh/gcc-toolset-10/root/tmp
/opt/rh/gcc-toolset-10/root/usr
/opt/rh/gcc-toolset-10/root/usr/bin
/opt/rh/gcc-toolset-10/root/usr/bin/sudo
/opt/rh/gcc-toolset-10/root/usr/etc
/opt/rh/gcc-toolset-10/root/usr/games
/opt/rh/gcc-toolset-10/root/usr/include
/opt/rh/gcc-toolset-10/root/usr/lib
/opt/rh/gcc-toolset-10/root/usr/lib64
/opt/rh/gcc-toolset-10/root/usr/lib64/X11
/opt/rh/gcc-toolset-10/root/usr/lib64/games
/opt/rh/gcc-toolset-10/root/usr/lib64/perl5
/opt/rh/gcc-toolset-10/root/usr/lib64/perl5/vendor_perl
/opt/rh/gcc-toolset-10/root/usr/lib64/perl5/vendor_perl/auto
/opt/rh/gcc-toolset-10/root/usr/lib64/pm-utils
/opt/rh/gcc-toolset-10/root/usr/lib64/pm-utils/module.d
/opt/rh/gcc-toolset-10/root/usr/lib64/pm-utils/power.d
/opt/rh/gcc-toolset-10/root/usr/lib64/pm-utils/sleep.d
/opt/rh/gcc-toolset-10/root/usr/lib64/sse2
/opt/rh/gcc-toolset-10/root/usr/lib64/tls
/opt/rh/gcc-toolset-10/root/usr/libexec
/opt/rh/gcc-toolset-10/root/usr/local
/opt/rh/gcc-toolset-10/root/usr/local/bin
/opt/rh/gcc-toolset-10/root/usr/local/etc
/opt/rh/gcc-toolset-10/root/usr/local/games
/opt/rh/gcc-toolset-10/root/usr/local/include
/opt/rh/gcc-toolset-10/root/usr/local/lib
/opt/rh/gcc-toolset-10/root/usr/local/lib64
/opt/rh/gcc-toolset-10/root/usr/local/libexec
/opt/rh/gcc-toolset-10/root/usr/local/sbin
/opt/rh/gcc-toolset-10/root/usr/local/share
/opt/rh/gcc-toolset-10/root/usr/local/share/applications
/opt/rh/gcc-toolset-10/root/usr/local/share/info
/opt/rh/gcc-toolset-10/root/usr/local/share/man
/opt/rh/gcc-toolset-10/root/usr/local/share/man/man1
/opt/rh/gcc-toolset-10/root/usr/local/share/man/man1x
/opt/rh/gcc-toolset-10/root/usr/local/share/man/man2
/opt/rh/gcc-toolset-10/root/usr/local/share/man/man2x
/opt/rh/gcc-toolset-10/root/usr/local/share/man/man3
/opt/rh/gcc-toolset-10/root/usr/local/share/man/man3x
/opt/rh/gcc-toolset-10/root/usr/local/share/man/man4
/opt/rh/gcc-toolset-10/root/usr/local/share/man/man4x
/opt/rh/gcc-toolset-10/root/usr/local/share/man/man5
/opt/rh/gcc-toolset-10/root/usr/local/share/man/man5x
/opt/rh/gcc-toolset-10/root/usr/local/share/man/man6
/opt/rh/gcc-toolset-10/root/usr/local/share/man/man6x
/opt/rh/gcc-toolset-10/root/usr/local/share/man/man7
/opt/rh/gcc-toolset-10/root/usr/local/share/man/man7x
/opt/rh/gcc-toolset-10/root/usr/local/share/man/man8
/opt/rh/gcc-toolset-10/root/usr/local/share/man/man8x
/opt/rh/gcc-toolset-10/root/usr/local/share/man/man9
/opt/rh/gcc-toolset-10/root/usr/local/share/man/man9x
/opt/rh/gcc-toolset-10/root/usr/local/share/man/mann
/opt/rh/gcc-toolset-10/root/usr/local/src
/opt/rh/gcc-toolset-10/root/usr/sbin
/opt/rh/gcc-toolset-10/root/usr/share
/opt/rh/gcc-toolset-10/root/usr/share/X11
/opt/rh/gcc-toolset-10/root/usr/share/aclocal
/opt/rh/gcc-toolset-10/root/usr/share/appdata
/opt/rh/gcc-toolset-10/root/usr/share/applications
/opt/rh/gcc-toolset-10/root/usr/share/augeas
/opt/rh/gcc-toolset-10/root/usr/share/augeas/lenses
/opt/rh/gcc-toolset-10/root/usr/share/backgrounds
/opt/rh/gcc-toolset-10/root/usr/share/desktop-directories
/opt/rh/gcc-toolset-10/root/usr/share/dict
/opt/rh/gcc-toolset-10/root/usr/share/doc
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10
/opt/rh/gcc-toolset-10/root/usr/share/doc/gcc-toolset-10/README
/opt/rh/gcc-toolset-10/root/usr/share/empty
/opt/rh/gcc-toolset-10/root/usr/share/games
/opt/rh/gcc-toolset-10/root/usr/share/ghostscript
/opt/rh/gcc-toolset-10/root/usr/share/ghostscript/conf.d
/opt/rh/gcc-toolset-10/root/usr/share/gnome
/opt/rh/gcc-toolset-10/root/usr/share/icons
/opt/rh/gcc-toolset-10/root/usr/share/idl
/opt/rh/gcc-toolset-10/root/usr/share/info
/opt/rh/gcc-toolset-10/root/usr/share/licenses
/opt/rh/gcc-toolset-10/root/usr/share/locale
/opt/rh/gcc-toolset-10/root/usr/share/man
/opt/rh/gcc-toolset-10/root/usr/share/mime-info
/opt/rh/gcc-toolset-10/root/usr/share/misc
/opt/rh/gcc-toolset-10/root/usr/share/omf
/opt/rh/gcc-toolset-10/root/usr/share/pixmaps
/opt/rh/gcc-toolset-10/root/usr/share/sounds
/opt/rh/gcc-toolset-10/root/usr/share/themes
/opt/rh/gcc-toolset-10/root/usr/share/xsessions
/opt/rh/gcc-toolset-10/root/usr/src
/opt/rh/gcc-toolset-10/root/usr/src/debug
/opt/rh/gcc-toolset-10/root/usr/src/kernels
/opt/rh/gcc-toolset-10/root/usr/tmp
/opt/rh/gcc-toolset-10/root/var
/opt/rh/gcc-toolset-10/root/var/adm
/opt/rh/gcc-toolset-10/root/var/cache
/opt/rh/gcc-toolset-10/root/var/db
/opt/rh/gcc-toolset-10/root/var/empty
/opt/rh/gcc-toolset-10/root/var/games
/opt/rh/gcc-toolset-10/root/var/gopher
/opt/rh/gcc-toolset-10/root/var/lib
/opt/rh/gcc-toolset-10/root/var/lib/alternatives
/opt/rh/gcc-toolset-10/root/var/lib/games
/opt/rh/gcc-toolset-10/root/var/lib/misc
/opt/rh/gcc-toolset-10/root/var/lib/rpm-state
/opt/rh/gcc-toolset-10/root/var/local
/opt/rh/gcc-toolset-10/root/var/lock
/opt/rh/gcc-toolset-10/root/var/lock/subsys
/opt/rh/gcc-toolset-10/root/var/log
/opt/rh/gcc-toolset-10/root/var/mail
/opt/rh/gcc-toolset-10/root/var/nis
/opt/rh/gcc-toolset-10/root/var/opt
/opt/rh/gcc-toolset-10/root/var/preserve
/opt/rh/gcc-toolset-10/root/var/run
/opt/rh/gcc-toolset-10/root/var/spool
/opt/rh/gcc-toolset-10/root/var/spool/lpd
/opt/rh/gcc-toolset-10/root/var/spool/mail
/opt/rh/gcc-toolset-10/root/var/tmp
/opt/rh/gcc-toolset-10/root/var/yp

References

Summary

In this tutorial we learn how to install gcc-toolset-10-runtime on CentOS 8 using yum and dnf.