How To Install libdaemon on Rocky Linux 8

In this tutorial we learn how to install libdaemon on Rocky Linux 8. libdaemon is Library for writing UNIX daemons

Introduction

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

What is libdaemon

libdaemon is a lightweight C library which eases the writing of UNIX daemons. It consists of the following parts * A wrapper around fork() which does the correct daemonization procedure of a process * A wrapper around syslog() for simpler and compatible log output to Syslog or STDERR * An API for writing PID files * An API for serializing UNIX signals into a pipe for usage with select() or poll() * An API for running subprocesses with STDOUT and STDERR redirected to syslog.

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

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

sudo dnf -y install libdaemon

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

sudo yum -y install libdaemon

How To Uninstall libdaemon on Rocky Linux 8

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

sudo dnf remove libdaemon

libdaemon Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/82e0857f38ec309ee1d2ec353b5f5c3ac1106f
/usr/lib64/libdaemon.so.0
/usr/lib64/libdaemon.so.0.5.0
/usr/share/doc/libdaemon
/usr/share/doc/libdaemon/LICENSE
/usr/share/doc/libdaemon/README
/usr/lib/.build-id
/usr/lib/.build-id/d3
/usr/lib/.build-id/d3/959201acfd99b8ebd569328b0f775c202c40b8
/usr/lib/libdaemon.so.0
/usr/lib/libdaemon.so.0.5.0
/usr/share/doc/libdaemon
/usr/share/doc/libdaemon/LICENSE
/usr/share/doc/libdaemon/README

References

Summary

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