How To Install libsysfs on Rocky Linux 8

In this tutorial we learn how to install libsysfs on Rocky Linux 8. libsysfs is Shared library for interfacing with sysfs

Introduction

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

What is libsysfs

Library used in handling linux kernel sysfs mounts and their various files.

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

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

sudo dnf -y install libsysfs

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

sudo yum -y install libsysfs

How To Uninstall libsysfs on Rocky Linux 8

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

sudo dnf remove libsysfs

libsysfs Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/69
/usr/lib/.build-id/69/e6f3874b5ed06ed336731d0fc6c544fd55efeb
/usr/lib64/libsysfs.so.2
/usr/lib64/libsysfs.so.2.0.1
/usr/share/doc/libsysfs
/usr/share/doc/libsysfs/AUTHORS
/usr/share/doc/libsysfs/COPYING
/usr/share/doc/libsysfs/CREDITS
/usr/share/doc/libsysfs/ChangeLog
/usr/share/doc/libsysfs/LGPL
/usr/share/doc/libsysfs/NEWS
/usr/share/doc/libsysfs/README
/usr/share/doc/libsysfs/libsysfs.txt
/usr/lib/.build-id
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/c508de55937d6ef88b402c8bd8d3eff6061433
/usr/lib/libsysfs.so.2
/usr/lib/libsysfs.so.2.0.1
/usr/share/doc/libsysfs
/usr/share/doc/libsysfs/AUTHORS
/usr/share/doc/libsysfs/COPYING
/usr/share/doc/libsysfs/CREDITS
/usr/share/doc/libsysfs/ChangeLog
/usr/share/doc/libsysfs/LGPL
/usr/share/doc/libsysfs/NEWS
/usr/share/doc/libsysfs/README
/usr/share/doc/libsysfs/libsysfs.txt

References

Summary

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