How To Install boost-filesystem on Rocky Linux 8

In this tutorial we learn how to install boost-filesystem on Rocky Linux 8. boost-filesystem is Run-time component of boost filesystem library

Introduction

In this tutorial we learn how to install boost-filesystem on Rocky Linux 8.

What is boost-filesystem

Run-time support for the Boost Filesystem Library, which provides portable facilities to query and manipulate paths, files, and directories.

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

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

sudo dnf -y install boost-filesystem

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

sudo yum -y install boost-filesystem

How To Uninstall boost-filesystem on Rocky Linux 8

To uninstall only the boost-filesystem package we can use the following command:

sudo dnf remove boost-filesystem

boost-filesystem Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/09
/usr/lib/.build-id/09/80e6d5c919a12427a9e323f064c65db17451f2
/usr/lib/libboost_filesystem.so.1.66.0
/usr/share/licenses/boost-filesystem
/usr/share/licenses/boost-filesystem/LICENSE_1_0.txt
/usr/lib/.build-id
/usr/lib/.build-id/16
/usr/lib/.build-id/16/8dc387975eb84e5f47f0e59f7ff1e4f96e7222
/usr/lib64/libboost_filesystem.so.1.66.0
/usr/share/licenses/boost-filesystem
/usr/share/licenses/boost-filesystem/LICENSE_1_0.txt

References

Summary

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