How To Install gcc-toolset-9-binutils on Rocky Linux 8
Introduction
In this tutorial we learn how to install gcc-toolset-9-binutils
on Rocky Linux 8.
What is gcc-toolset-9-binutils
Binutils is a collection of binary utilities, including ar (for creating, modifying and extracting from archives), as (a family of GNU assemblers), gprof (for displaying call graph profile data), ld (the GNU linker), nm (for listing symbols from object files), objcopy (for copying and translating object files), objdump (for displaying information from object files), ranlib (for generating an index for the contents of an archive), readelf (for displaying detailed information about binary files), size (for listing the section sizes of an object or archive file), strings (for listing printable strings from files), strip (for discarding symbols), and addr2line (for converting addresses to file and line).
We can use yum
or dnf
to install gcc-toolset-9-binutils
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install gcc-toolset-9-binutils.
Install gcc-toolset-9-binutils on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install gcc-toolset-9-binutils
using dnf
by running the following command:
sudo dnf -y install gcc-toolset-9-binutils
Install gcc-toolset-9-binutils on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install gcc-toolset-9-binutils
using yum
by running the following command:
sudo yum -y install gcc-toolset-9-binutils
How To Uninstall gcc-toolset-9-binutils on Rocky Linux 8
To uninstall only the gcc-toolset-9-binutils
package we can use the following command:
sudo dnf remove gcc-toolset-9-binutils
gcc-toolset-9-binutils Package Contents on Rocky Linux 8
/opt/rh/gcc-toolset-9/root/usr/bin/addr2line
/opt/rh/gcc-toolset-9/root/usr/bin/ar
/opt/rh/gcc-toolset-9/root/usr/bin/as
/opt/rh/gcc-toolset-9/root/usr/bin/c++filt
/opt/rh/gcc-toolset-9/root/usr/bin/dwp
/opt/rh/gcc-toolset-9/root/usr/bin/elfedit
/opt/rh/gcc-toolset-9/root/usr/bin/gprof
/opt/rh/gcc-toolset-9/root/usr/bin/ld
/opt/rh/gcc-toolset-9/root/usr/bin/ld.bfd
/opt/rh/gcc-toolset-9/root/usr/bin/ld.gold
/opt/rh/gcc-toolset-9/root/usr/bin/nm
/opt/rh/gcc-toolset-9/root/usr/bin/objcopy
/opt/rh/gcc-toolset-9/root/usr/bin/objdump
/opt/rh/gcc-toolset-9/root/usr/bin/ranlib
/opt/rh/gcc-toolset-9/root/usr/bin/readelf
/opt/rh/gcc-toolset-9/root/usr/bin/size
/opt/rh/gcc-toolset-9/root/usr/bin/strings
/opt/rh/gcc-toolset-9/root/usr/bin/strip
/opt/rh/gcc-toolset-9/root/usr/lib64/libbfd-2.32-17.el8_1.so
/opt/rh/gcc-toolset-9/root/usr/lib64/libopcodes-2.32-17.el8_1.so
/opt/rh/gcc-toolset-9/root/usr/share/doc/gcc-toolset-9-binutils
/opt/rh/gcc-toolset-9/root/usr/share/doc/gcc-toolset-9-binutils/README
/opt/rh/gcc-toolset-9/root/usr/share/info/as.info.gz
/opt/rh/gcc-toolset-9/root/usr/share/info/bfd.info.gz
/opt/rh/gcc-toolset-9/root/usr/share/info/binutils.info.gz
/opt/rh/gcc-toolset-9/root/usr/share/info/gprof.info.gz
/opt/rh/gcc-toolset-9/root/usr/share/info/ld.info.gz
/opt/rh/gcc-toolset-9/root/usr/share/info/standards.info.gz
/opt/rh/gcc-toolset-9/root/usr/share/licenses/gcc-toolset-9-binutils
/opt/rh/gcc-toolset-9/root/usr/share/licenses/gcc-toolset-9-binutils/COPYING
/opt/rh/gcc-toolset-9/root/usr/share/licenses/gcc-toolset-9-binutils/COPYING.LIB
/opt/rh/gcc-toolset-9/root/usr/share/licenses/gcc-toolset-9-binutils/COPYING3
/opt/rh/gcc-toolset-9/root/usr/share/licenses/gcc-toolset-9-binutils/COPYING3.LIB
/opt/rh/gcc-toolset-9/root/usr/share/locale/bg/LC_MESSAGES/binutils.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/bg/LC_MESSAGES/gprof.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/bg/LC_MESSAGES/ld.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/ca/LC_MESSAGES/binutils.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/da/LC_MESSAGES/bfd.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/da/LC_MESSAGES/binutils.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/da/LC_MESSAGES/gprof.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/da/LC_MESSAGES/ld.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/da/LC_MESSAGES/opcodes.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/de/LC_MESSAGES/gprof.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/de/LC_MESSAGES/ld.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/de/LC_MESSAGES/opcodes.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/eo/LC_MESSAGES/gprof.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/es/LC_MESSAGES/bfd.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/es/LC_MESSAGES/binutils.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/es/LC_MESSAGES/gas.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/es/LC_MESSAGES/gold.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/es/LC_MESSAGES/gprof.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/es/LC_MESSAGES/ld.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/es/LC_MESSAGES/opcodes.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/fi/LC_MESSAGES/bfd.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/fi/LC_MESSAGES/binutils.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/fi/LC_MESSAGES/gas.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/fi/LC_MESSAGES/gold.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/fi/LC_MESSAGES/gprof.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/fi/LC_MESSAGES/ld.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/fi/LC_MESSAGES/opcodes.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/fr/LC_MESSAGES/bfd.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/fr/LC_MESSAGES/binutils.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/fr/LC_MESSAGES/gas.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/fr/LC_MESSAGES/gold.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/fr/LC_MESSAGES/gprof.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/fr/LC_MESSAGES/ld.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/fr/LC_MESSAGES/opcodes.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/ga/LC_MESSAGES/gprof.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/ga/LC_MESSAGES/ld.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/ga/LC_MESSAGES/opcodes.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/hr/LC_MESSAGES/bfd.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/hr/LC_MESSAGES/binutils.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/hu/LC_MESSAGES/gprof.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/id/LC_MESSAGES/bfd.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/id/LC_MESSAGES/binutils.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/id/LC_MESSAGES/gas.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/id/LC_MESSAGES/gold.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/id/LC_MESSAGES/gprof.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/id/LC_MESSAGES/ld.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/id/LC_MESSAGES/opcodes.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/it/LC_MESSAGES/binutils.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/it/LC_MESSAGES/gold.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/it/LC_MESSAGES/gprof.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/it/LC_MESSAGES/ld.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/it/LC_MESSAGES/opcodes.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/ja/LC_MESSAGES/bfd.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/ja/LC_MESSAGES/binutils.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/ja/LC_MESSAGES/gas.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/ja/LC_MESSAGES/gold.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/ja/LC_MESSAGES/gprof.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/ja/LC_MESSAGES/ld.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/ms/LC_MESSAGES/gprof.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/nl/LC_MESSAGES/gprof.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/nl/LC_MESSAGES/opcodes.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/pt/LC_MESSAGES/bfd.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/pt/LC_MESSAGES/binutils.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/pt_BR/LC_MESSAGES/gprof.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/pt_BR/LC_MESSAGES/ld.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/pt_BR/LC_MESSAGES/opcodes.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/ro/LC_MESSAGES/bfd.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/ro/LC_MESSAGES/binutils.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/ro/LC_MESSAGES/gprof.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/ro/LC_MESSAGES/opcodes.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/ru/LC_MESSAGES/bfd.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/ru/LC_MESSAGES/binutils.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/ru/LC_MESSAGES/gas.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/ru/LC_MESSAGES/gprof.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/ru/LC_MESSAGES/ld.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/rw/LC_MESSAGES/bfd.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/rw/LC_MESSAGES/binutils.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/rw/LC_MESSAGES/gas.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/rw/LC_MESSAGES/gprof.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/sk/LC_MESSAGES/binutils.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/sr/LC_MESSAGES/bfd.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/sr/LC_MESSAGES/binutils.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/sr/LC_MESSAGES/gprof.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/sr/LC_MESSAGES/ld.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/sr/LC_MESSAGES/opcodes.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/sv/LC_MESSAGES/bfd.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/sv/LC_MESSAGES/binutils.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/sv/LC_MESSAGES/gas.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/sv/LC_MESSAGES/gold.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/sv/LC_MESSAGES/gprof.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/sv/LC_MESSAGES/ld.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/sv/LC_MESSAGES/opcodes.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/tr/LC_MESSAGES/bfd.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/tr/LC_MESSAGES/binutils.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/tr/LC_MESSAGES/gas.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/tr/LC_MESSAGES/gprof.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/tr/LC_MESSAGES/ld.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/tr/LC_MESSAGES/opcodes.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/uk/LC_MESSAGES/bfd.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/uk/LC_MESSAGES/binutils.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/uk/LC_MESSAGES/gas.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/uk/LC_MESSAGES/gold.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/uk/LC_MESSAGES/gprof.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/uk/LC_MESSAGES/ld.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/uk/LC_MESSAGES/opcodes.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/vi/LC_MESSAGES/bfd.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/vi/LC_MESSAGES/binutils.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/vi/LC_MESSAGES/gold.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/vi/LC_MESSAGES/gprof.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/vi/LC_MESSAGES/ld.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/vi/LC_MESSAGES/opcodes.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/zh_CN/LC_MESSAGES/bfd.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/zh_CN/LC_MESSAGES/binutils.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/zh_CN/LC_MESSAGES/gas.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/zh_CN/LC_MESSAGES/gold.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/zh_CN/LC_MESSAGES/ld.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/zh_CN/LC_MESSAGES/opcodes.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/zh_TW/LC_MESSAGES/binutils.mo
/opt/rh/gcc-toolset-9/root/usr/share/locale/zh_TW/LC_MESSAGES/ld.mo
/opt/rh/gcc-toolset-9/root/usr/share/man/man1/addr2line.1.gz
/opt/rh/gcc-toolset-9/root/usr/share/man/man1/ar.1.gz
/opt/rh/gcc-toolset-9/root/usr/share/man/man1/as.1.gz
/opt/rh/gcc-toolset-9/root/usr/share/man/man1/c++filt.1.gz
/opt/rh/gcc-toolset-9/root/usr/share/man/man1/elfedit.1.gz
/opt/rh/gcc-toolset-9/root/usr/share/man/man1/gprof.1.gz
/opt/rh/gcc-toolset-9/root/usr/share/man/man1/ld.1.gz
/opt/rh/gcc-toolset-9/root/usr/share/man/man1/nm.1.gz
/opt/rh/gcc-toolset-9/root/usr/share/man/man1/objcopy.1.gz
/opt/rh/gcc-toolset-9/root/usr/share/man/man1/objdump.1.gz
/opt/rh/gcc-toolset-9/root/usr/share/man/man1/ranlib.1.gz
/opt/rh/gcc-toolset-9/root/usr/share/man/man1/readelf.1.gz
/opt/rh/gcc-toolset-9/root/usr/share/man/man1/size.1.gz
/opt/rh/gcc-toolset-9/root/usr/share/man/man1/strings.1.gz
/opt/rh/gcc-toolset-9/root/usr/share/man/man1/strip.1.gz
/usr/lib/.build-id
/usr/lib/.build-id/05
/usr/lib/.build-id/05/1a6e727c7038c9316b70f7937464b2f8477749
/usr/lib/.build-id/25
/usr/lib/.build-id/25/c80700c6ffab827a73417d38c8a99c739bb0bc
/usr/lib/.build-id/28
/usr/lib/.build-id/28/b04474d6bb66843b9c1a45c37ea98c98b7bad5
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/95ba79dd429d38cb51b90c806da64d265fc742
/usr/lib/.build-id/46
/usr/lib/.build-id/46/70d2d2fea49db16a5bb47c94cdc2b422b9210f
/usr/lib/.build-id/51
/usr/lib/.build-id/51/56b52673a5f435ad4f5cf7010a0f8323b3d95b
/usr/lib/.build-id/57
/usr/lib/.build-id/57/ebba2bf8c8ddedde127db3b075aa2fde4faa9c
/usr/lib/.build-id/57/ebba2bf8c8ddedde127db3b075aa2fde4faa9c.1
/usr/lib/.build-id/59
/usr/lib/.build-id/59/98c52d10e120a4f5009e6ee2e3e10a41c0a31b
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/3bde1e5dda760db463fd8fb91a850e8e8bfda1
/usr/lib/.build-id/62
/usr/lib/.build-id/62/7288a353710274968dfc7697d3a6f924674cd1
/usr/lib/.build-id/85
/usr/lib/.build-id/85/f508475242d0ea1ff294814302da26cfbaf322
/usr/lib/.build-id/88
/usr/lib/.build-id/88/a51064923fadbb090ec7b899c6de958536ce21
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/89d33e1ad81fca58691dd631884e1d86eff945
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/b83528d6028a28a9f166a80e6d3b66cb186055
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/dcc9867683b804e3e309b89eeca09d348a364a
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/fa3400fad2d50c4aa9609a0a10c161574d95f1
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/8d87f74545d15c14040a53c9978fc4aa3f28c5
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/156231b9e42ff5ddb12b26554f830bbbcf0c8a
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/f71ce233b3356c9d158d4564a87717a07c3a05
References
Summary
In this tutorial we learn how to install gcc-toolset-9-binutils
on Rocky Linux 8 using yum and dnf.