How To Install libdaemon on Fedora 34

libdaemon is Library for writing UNIX daemons Library for writing UNIX daemons

Introduction

In this tutorial we learn how to install libdaemon on Fedora 34.

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. libdaemon 0.14 21.fc34 x86_64 32 k libdaemon-0.14-21.fc34.src.rpm fedora Library for writing UNIX daemons http LGPLv2+ 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libdaemon.

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

sudo dnf -y install libdaemon

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

sudo yum -y install libdaemon

How To Uninstall libdaemon on Fedora 34

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

sudo dnf remove libdaemon

libdaemon Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/62
/usr/lib/.build-id/62/bc05ec764001682d179e3747d0a936d96697fe
/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/78
/usr/lib/.build-id/78/13632b57f1b60d6368d6446b5c9b900ff4400d
/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 Fedora 34 using yum and dnf.