How To Install libpgobject-simple-perl on Debian 9
Introduction
In this tutorial we learn how to install libpgobject-simple-perl
on Debian 9.
What is libpgobject-simple-perl
libpgobject-simple-perl is:
PGObject::Simple is a minimalist framework for mapping stored procedures in PostgreSQL to object methods. The framework is truly minimalist and hence the “Simple” designation (in fact the module contains less than 50 lines of code, and the code is dwarfed by both POD and test cases). It is intended to be of use for developers wishing for such a minimalist framework and those who may want to have a reference for how to build such a mapping framework themselves.
The framework lends itself to a few specific antipatterns. Objects can become ill-formed, overly nebulous, or the like. It is thus very important when using this for actual development to ensure that acceptable data structures are well documented and that these are adhered to.
This module is based on a simple idea, namely that stored procedures can tell application classes how to call them. See the POD for specific information and guidelines.
There are three methods to install libpgobject-simple-perl
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libpgobject-simple-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 libpgobject-simple-perl
using apt-get
by running the following command:
sudo apt-get -y install libpgobject-simple-perl
Install libpgobject-simple-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libpgobject-simple-perl
using apt
by running the following command:
sudo apt -y install libpgobject-simple-perl
Install libpgobject-simple-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 libpgobject-simple-perl
using aptitude
by running the following command:
sudo aptitude -y install libpgobject-simple-perl
How To Uninstall libpgobject-simple-perl on Debian 9
To uninstall only the libpgobject-simple-perl
package we can use the following command:
sudo apt-get remove libpgobject-simple-perl
Uninstall libpgobject-simple-perl And Its Dependencies
To uninstall libpgobject-simple-perl
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove libpgobject-simple-perl
Remove libpgobject-simple-perl Configurations and Data
To remove libpgobject-simple-perl
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge libpgobject-simple-perl
Remove libpgobject-simple-perl configuration, data, and all of its dependencies
We can use the following command to remove libpgobject-simple-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libpgobject-simple-perl
Dependencies
libpgobject-simple-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libpgobject-simple-perl
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.