Introduction
In this tutorial we learn how to install libdbix-connector-perl
on Ubuntu 20.04.
What is libdbix-connector-perl
libdbix-connector-perl is:
DBIx::Connector provides a simple interface for fast and safe DBI
connection and transaction management. Connecting to a database can be
expensive; you don’t want your application to re-connect every time you
need to run a query. The efficient thing to do is to hang on to a
database handle to maintain a connection to the database in order to
minimize that overhead. DBIx::Connector lets you do that without having
to worry about dropped or corrupted connections.
There are three methods to install libdbix-connector-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 libdbix-connector-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 libdbix-connector-perl
using apt-get
by running the following command:
sudo apt-get -y install libdbix-connector-perl
Install libdbix-connector-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libdbix-connector-perl
using apt
by running the following command:
sudo apt -y install libdbix-connector-perl
Install libdbix-connector-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 libdbix-connector-perl
using aptitude
by running the following command:
sudo aptitude -y install libdbix-connector-perl
How To Uninstall libdbix-connector-perl on Ubuntu 20.04
To uninstall only the libdbix-connector-perl
package we can use the following command:
sudo apt-get remove libdbix-connector-perl
Uninstall libdbix-connector-perl And Its Dependencies
To uninstall libdbix-connector-perl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libdbix-connector-perl
Remove libdbix-connector-perl Configurations and Data
To remove libdbix-connector-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libdbix-connector-perl
Remove libdbix-connector-perl configuration, data, and all of its dependencies
We can use the following command to remove libdbix-connector-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libdbix-connector-perl
References
Summary
In this tutorial we learn how to install libdbix-connector-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.