How To Install liblog-fast-perl on Debian 10
Introduction
In this tutorial we learn how to install liblog-fast-perl
on Debian 10.
What is liblog-fast-perl
liblog-fast-perl is:
Log::Fast is very fast logger, designed for use in applications with thousands high-level events/operations per second (like network servers with thousands clients or web spiders which download hundreds url per second).
For example, on Core2Duo sending about 5000 messages to log on enabled log levels or 20000 messages on disabled log levels in one second will slow down your application only by 2-3%.
Comparing to some other CPAN modules, this one (in average): faster than Log::Dispatch in about 45 times, faster than Log::Handler in about 15 times, faster than Sys::Syslog in about 7 times, and slower than Log::Syslog::Fast in about 2 times.
Features:
- Global and local logger objects
- Output to any open filehandle or local syslog
- 5 log levels: ERR, WARN, NOTICE, INFO, DEBUG
- Configurable prefix (log level, date/time, caller function name)
- sprintf() support
- Unicode support (UTF8)
- Can avoid calculating log message content on disabled log levels
There are three methods to install liblog-fast-perl
on Debian 10. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install liblog-fast-perl Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install liblog-fast-perl
using apt-get
by running the following command:
sudo apt-get -y install liblog-fast-perl
Install liblog-fast-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install liblog-fast-perl
using apt
by running the following command:
sudo apt -y install liblog-fast-perl
Install liblog-fast-perl Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install liblog-fast-perl
using aptitude
by running the following command:
sudo aptitude -y install liblog-fast-perl
How To Uninstall liblog-fast-perl on Debian 10
To uninstall only the liblog-fast-perl
package we can use the following command:
sudo apt-get remove liblog-fast-perl
Uninstall liblog-fast-perl And Its Dependencies
To uninstall liblog-fast-perl
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove liblog-fast-perl
Remove liblog-fast-perl Configurations and Data
To remove liblog-fast-perl
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge liblog-fast-perl
Remove liblog-fast-perl configuration, data, and all of its dependencies
We can use the following command to remove liblog-fast-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge liblog-fast-perl
Dependencies
liblog-fast-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install liblog-fast-perl
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.