How To Install libxs-object-magic-perl on Debian 9
Introduction
In this tutorial we learn how to install libxs-object-magic-perl
on Debian 9.
What is libxs-object-magic-perl
libxs-object-magic-perl is:
XS::Object::Magic provides a way of associating structs with Perl space objects designed to supercede Perl’s builtin “T_PTROBJ” with something that is designed to be:
- extensible: The association of the pointer using “sv_magicext” can be done on any data type, so you can associate C structs with any representation type. This means that you can add pointers to any object (hand coded, Moose or otherwise), while still having instance data in regular hashes.
- opaque: The C pointer is neither visible nor modifiable from Perl space. This prevents accidental corruption which could lead to segfaults using “T_PTROBJ” (e.g. “$$ptr_obj = 0”).
There are three methods to install libxs-object-magic-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 libxs-object-magic-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 libxs-object-magic-perl
using apt-get
by running the following command:
sudo apt-get -y install libxs-object-magic-perl
Install libxs-object-magic-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libxs-object-magic-perl
using apt
by running the following command:
sudo apt -y install libxs-object-magic-perl
Install libxs-object-magic-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 libxs-object-magic-perl
using aptitude
by running the following command:
sudo aptitude -y install libxs-object-magic-perl
How To Uninstall libxs-object-magic-perl on Debian 9
To uninstall only the libxs-object-magic-perl
package we can use the following command:
sudo apt-get remove libxs-object-magic-perl
Uninstall libxs-object-magic-perl And Its Dependencies
To uninstall libxs-object-magic-perl
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove libxs-object-magic-perl
Remove libxs-object-magic-perl Configurations and Data
To remove libxs-object-magic-perl
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge libxs-object-magic-perl
Remove libxs-object-magic-perl configuration, data, and all of its dependencies
We can use the following command to remove libxs-object-magic-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libxs-object-magic-perl
Dependencies
libxs-object-magic-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libxs-object-magic-perl
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.