How To Install libomp on Rocky Linux 8

In this tutorial we learn how to install libomp on Rocky Linux 8. libomp is OpenMP runtime for clang

Introduction

In this tutorial we learn how to install libomp on Rocky Linux 8.

What is libomp

OpenMP runtime for clang.

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

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

sudo dnf -y install libomp

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

sudo yum -y install libomp

How To Uninstall libomp on Rocky Linux 8

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

sudo dnf remove libomp

libomp Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/0b
/usr/lib/.build-id/0b/cc16734f6285d537a686397353c4fb4dc23d03
/usr/lib/.build-id/7f
/usr/lib/.build-id/7f/af63e67af11cd3f265ff5fc2d135ffc988159b
/usr/lib/.build-id/91
/usr/lib/.build-id/91/aae82e4181bf41a9737442e5d2c09d0e88650c
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/fb547b040691a78912cbded1b987162f44e876
/usr/lib64/libarcher.so
/usr/lib64/libomp.so
/usr/lib64/libomptarget.rtl.x86_64.so
/usr/lib64/libomptarget.so
/usr/share/licenses/libomp
/usr/share/licenses/libomp/LICENSE.txt
/usr/lib/.build-id
/usr/lib/.build-id/3a
/usr/lib/.build-id/3a/93ed2d7cf6ac67bb2ab48b5e4e382a82120e81
/usr/lib/.build-id/59
/usr/lib/.build-id/59/6c77a6781cee475a8444357cf905d46ff0f0ac
/usr/lib/.build-id/70
/usr/lib/.build-id/70/f93363f365b03cae03faf29730ae0f70b85474
/usr/lib/libarcher.so
/usr/lib/libomp.so
/usr/lib/libomptarget.so
/usr/share/licenses/libomp
/usr/share/licenses/libomp/LICENSE.txt

References

Summary

In this tutorial we learn how to install libomp on Rocky Linux 8 using yum and dnf.