How To Install liblog-dispatchouli-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install liblog-dispatchouli-perl
on Ubuntu 20.04.
What is liblog-dispatchouli-perl
liblog-dispatchouli-perl is:
Log::Dispatchouli is a simple wrapper around Log::Dispatch intended to make it simpler to add logging to a program. It removes the need to think much about categories, facilities, levels, or things like that. It makes logging just configurable enough so you can find the logs you want, and easy enough that you will actually log things.
Log::Dispatchouli can log to syslog (if you specify a facility), standard error or standard output, to a file, or to an array in memory. Logging to memory is primarily intended for testing.
Additionally, Log::Dispatchouli uses String::Flogger to process the things to be logged, meaning you can easily log data structures. For more information, see String::Flogger (libstring-flogger-perl).
There are three methods to install liblog-dispatchouli-perl
on Ubuntu 20.04. 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-dispatchouli-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-dispatchouli-perl
using apt-get
by running the following command:
sudo apt-get -y install liblog-dispatchouli-perl
Install liblog-dispatchouli-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install liblog-dispatchouli-perl
using apt
by running the following command:
sudo apt -y install liblog-dispatchouli-perl
Install liblog-dispatchouli-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 Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install liblog-dispatchouli-perl
using aptitude
by running the following command:
sudo aptitude -y install liblog-dispatchouli-perl
How To Uninstall liblog-dispatchouli-perl on Ubuntu 20.04
To uninstall only the liblog-dispatchouli-perl
package we can use the following command:
sudo apt-get remove liblog-dispatchouli-perl
Uninstall liblog-dispatchouli-perl And Its Dependencies
To uninstall liblog-dispatchouli-perl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove liblog-dispatchouli-perl
Remove liblog-dispatchouli-perl Configurations and Data
To remove liblog-dispatchouli-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge liblog-dispatchouli-perl
Remove liblog-dispatchouli-perl configuration, data, and all of its dependencies
We can use the following command to remove liblog-dispatchouli-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge liblog-dispatchouli-perl
References
Summary
In this tutorial we learn how to install liblog-dispatchouli-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.