How To Install libdaemon.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libdaemon.x86_64 in Amazon Linux 2. libdaemon.x86_64 is Library for writing UNIX daemons

Introduction

In this tutorial we learn how to install libdaemon.x86_64 on Amazon Linux 2.

What is libdaemon.x86_64

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 to install libdaemon.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install libdaemon.x86_64.

Install libdaemon.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libdaemon.x86_64 using yum by running the following command:

sudo yum -y install libdaemon.x86_64

How To Uninstall libdaemon.x86_64 on Amazon Linux 2

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

sudo yum remove libdaemon.x86_64

libdaemon.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libdaemon.so.0
/usr/lib64/libdaemon.so.0.5.0
/usr/share/doc/libdaemon-0.14
/usr/share/doc/libdaemon-0.14/LICENSE
/usr/share/doc/libdaemon-0.14/README

References

Summary

In this tutorial we learn how to install libdaemon.x86_64 on Amazon Linux 2 using yum.