How To Install libobject-declare-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libobject-declare-perl
on Ubuntu 20.04.
What is libobject-declare-perl
libobject-declare-perl is:
Object::Declare exports one function, declare, for building named objects with a declarative syntax, similar to how Jifty::DBI::Schema defines its columns.
In list context, declare returns a list of name/object pairs in the order of declaration (allowing duplicates), suitable for putting into a hash. In scalar context, declare returns a hash reference.
Example: function for defining some declarative object
sub do_declare { declare { column x => is rw, is Very::Happy; } };
There are three methods to install libobject-declare-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 libobject-declare-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 libobject-declare-perl
using apt-get
by running the following command:
sudo apt-get -y install libobject-declare-perl
Install libobject-declare-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libobject-declare-perl
using apt
by running the following command:
sudo apt -y install libobject-declare-perl
Install libobject-declare-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 libobject-declare-perl
using aptitude
by running the following command:
sudo aptitude -y install libobject-declare-perl
How To Uninstall libobject-declare-perl on Ubuntu 20.04
To uninstall only the libobject-declare-perl
package we can use the following command:
sudo apt-get remove libobject-declare-perl
Uninstall libobject-declare-perl And Its Dependencies
To uninstall libobject-declare-perl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libobject-declare-perl
Remove libobject-declare-perl Configurations and Data
To remove libobject-declare-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libobject-declare-perl
Remove libobject-declare-perl configuration, data, and all of its dependencies
We can use the following command to remove libobject-declare-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libobject-declare-perl
References
Summary
In this tutorial we learn how to install libobject-declare-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.