How To Install tbb on Fedora 34

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 Fedora 34.

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 2020.3 7.fc34 x86_64 170 k tbb-2020.3-7.fc34.src.rpm updates 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install tbb.

Install tbb on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 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 Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 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 Fedora 34

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

sudo dnf remove tbb

tbb Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/08
/usr/lib/.build-id/08/27ee2b46bc482f9eb133100a764ad466ab1ee6
/usr/lib/.build-id/6a
/usr/lib/.build-id/6a/09275456e7db2573471cef351c3de93aef3ecc
/usr/lib/.build-id/85
/usr/lib/.build-id/85/9e85f4f11667c39ebf22bb54a76ef6ee4d7b77
/usr/lib/.build-id/aa
/usr/lib/.build-id/aa/4d4fd84357fc1ebf2b91ac396357caaa6962b2
/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/33
/usr/lib/.build-id/33/f1db105a26444a0596b502d836d67a558b7279
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/399a08bcf0c55cd2c17d3dc31a257efc066477
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/c9ae135270a3d8e91621bbcf83a987d56d205b
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/07d4d4c1143cf586ba9cf06300f066dd9b7ec5
/usr/lib/libirml.so.1
/usr/lib/libtbb.so.2
/usr/lib/libtbbmalloc.so.2
/usr/lib/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/35
/usr/lib/.build-id/35/c585e9fada0d5c608817d4a705894570ede227
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/862cfbeafa316896da10ab6bdc4ed4f6343c89
/usr/lib/.build-id/8f
/usr/lib/.build-id/8f/669f5224541d3749d3f803c93a9932f4bfb172
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/edaef54afd75e5831778d08985c83252293f47
/usr/lib/libirml.so.1
/usr/lib/libtbb.so.2
/usr/lib/libtbbmalloc.so.2
/usr/lib/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/50
/usr/lib/.build-id/50/93466a3bf7966fc73f6843b985c6293bd2cf51
/usr/lib/.build-id/70
/usr/lib/.build-id/70/a8fa9940c6a06630c96b9557d90c36cdf37ef8
/usr/lib/.build-id/84
/usr/lib/.build-id/84/9af0274ef2bf77ea6c9a52b1a5250eebe91ec1
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/242a6f9070e8463744ea1d02b7b599a0b62509
/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

References

Summary

In this tutorial we learn how to install tbb on Fedora 34 using yum and dnf.