How To Install perl-MooseX-Daemonize on CentOS 7

In this tutorial we learn how to install perl-MooseX-Daemonize on CentOS 7. perl-MooseX-Daemonize is Role for daemonizing your Moose based application

Introduction

In this tutorial we learn how to install perl-MooseX-Daemonize on CentOS 7.

What is perl-MooseX-Daemonize

Often you want to write a persistent daemon that has a pid file, and responds appropriately to Signals. This module provides a set of basic roles as an infrastructure to do that.

We can use yum or dnf to install perl-MooseX-Daemonize on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-MooseX-Daemonize.

Install perl-MooseX-Daemonize on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install perl-MooseX-Daemonize using yum by running the following command:

sudo yum -y install perl-MooseX-Daemonize

Install perl-MooseX-Daemonize on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install perl-MooseX-Daemonize using dnf by running the following command:

sudo dnf -y install perl-MooseX-Daemonize

How To Uninstall perl-MooseX-Daemonize on CentOS 7

To uninstall only the perl-MooseX-Daemonize package we can use the following command:

sudo dnf remove perl-MooseX-Daemonize

References

Summary

In this tutorial we learn how to install perl-MooseX-Daemonize on CentOS 7 using yum and dnf.