How To Install perl-Net-Statsd on CentOS 7
Introduction
In this tutorial we learn how to install perl-Net-Statsd on CentOS 7.
What is perl-Net-Statsd
This module implements a client for a statsd statistics collection server, such as the one in use at Etsy.com. You want to use this module to track statistics in your Perl application, such as how many times a certain event occurs (user logins in a web application, or database queries issued), or you want to time and then graph how long certain events take, like database queries execution time or time to download a certain file, etc…
We can use yum or dnf to install perl-Net-Statsd on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Net-Statsd.
Install perl-Net-Statsd 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-Net-Statsd using yum by running the following command:
sudo yum -y install perl-Net-Statsd
Install perl-Net-Statsd 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-Net-Statsd using dnf by running the following command:
sudo dnf -y install perl-Net-Statsd
How To Uninstall perl-Net-Statsd on CentOS 7
To uninstall only the perl-Net-Statsd package we can use the following command:
sudo dnf remove perl-Net-Statsd
References
Summary
In this tutorial we learn how to install perl-Net-Statsd on CentOS 7 using yum and dnf.