How To Install tbb on CentOS 8

tbb is The Threading Building Blocks library abstracts low-level threading details The Threading Building Blocks library abstracts low-level threading details

Introduction

In this tutorial we learn how to install tbb on CentOS 8.

What is tbb

Threading Building Blocks (TBB) is a C++ runtime library that abstracts the low-level threading details necessary for optimal multi-core performance. It uses common C++ templates and coding style to eliminate tedious threading implementation work. TBB requires fewer lines of code to achieve parallelism than other threading models. The applications you write are portable across platforms. Since the library is also inherently scalable, no code maintenance is required as more processor cores become available. tbb 2018.2 9.el8 x86_64 160 k tbb-2018.2-9.el8.src.rpm appstream The Threading Building Blocks library abstracts low-level threading details http ASL 2.0 Threading Building Blocks (TBB) is a C++ runtime library that abstracts the low-level threading details necessary for optimal multi-core performance. It uses common C++ templates and coding style to eliminate tedious threading implementation work. TBB requires fewer lines of code to achieve parallelism than other threading models. The applications you write are portable across platforms. Since the library is also inherently scalable, no code maintenance is required as more processor cores become available.

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

Install tbb 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 tbb using dnf by running the following command:

sudo dnf -y install tbb

Install tbb 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 tbb using yum by running the following command:

sudo yum -y install tbb

How To Uninstall tbb on CentOS 8

To uninstall only the tbb package we can use the following command:

sudo dnf remove tbb

tbb Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/14
/usr/lib/.build-id/14/c09eaaa31f5a387d18779fbc309b4e78a0cb9a
/usr/lib/.build-id/50
/usr/lib/.build-id/50/13d0200e677de33f797c1961d1504aaf515e4f
/usr/lib/.build-id/8c
/usr/lib/.build-id/8c/1f9845b783c853aca8dfeabde5a18d77695bf8
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/cafe9a6f97ad689980a34bb0fd38a4d12c8771
/usr/lib64/libirml.so.1
/usr/lib64/libtbb.so.2
/usr/lib64/libtbbmalloc.so.2
/usr/lib64/libtbbmalloc_proxy.so.2
/usr/share/doc/tbb
/usr/share/doc/tbb/README.md
/usr/share/doc/tbb/Release_Notes.txt
/usr/share/licenses/tbb
/usr/share/licenses/tbb/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/21
/usr/lib/.build-id/21/815d0cc36340dc3e280d2da309e3c8c0783c74
/usr/lib/.build-id/29
/usr/lib/.build-id/29/ffd7812d7e48ec16d60d85c679cfff0449f864
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/ec8567aa8467a3a233358170b540ccd2091b42
/usr/lib/.build-id/4e
/usr/lib/.build-id/4e/7299bc32d4443e941996b140edf3e30f25e2a6
/usr/lib/.build-id/5d
/usr/lib/.build-id/5d/f8a74d362381fd6716609d41d86a595922c681
/usr/lib/.build-id/75
/usr/lib/.build-id/75/91462e88198a1f07feacb5bc18f0957ffbb0ec
/usr/lib/.build-id/85
/usr/lib/.build-id/85/85875514a29985ff4d1c938776efa29746214a
/usr/lib/libirml.so.1
/usr/lib/libtbb.so.2
/usr/lib/libtbbmalloc.so.2
/usr/lib/libtbbmalloc_proxy.so.2
/usr/lib/sse2/libtbb.so.2
/usr/lib/sse2/libtbbmalloc.so.2
/usr/lib/sse2/libtbbmalloc_proxy.so.2
/usr/share/doc/tbb
/usr/share/doc/tbb/README.md
/usr/share/doc/tbb/Release_Notes.txt
/usr/share/licenses/tbb
/usr/share/licenses/tbb/LICENSE

References

Summary

In this tutorial we learn how to install tbb on CentOS 8 using yum and dnf.