How To Install libffi-platypus-type-enum-perl on Debian 12
Introduction
In this tutorial we learn how to install libffi-platypus-type-enum-perl
on Debian 12.
What is libffi-platypus-type-enum-perl
libffi-platypus-type-enum-perl is:
FFI::Platypus::Type::Enum type plugin is a helper for making enumerated types. It makes the most sense to use this when you have an enumerated type with a small number of possible values. For a large set of enumerated values or constants, see: FFI::Platypus::Constant.
This type plugin has two modes:
string
In string mode, string representations of the enum values are converted into the integer enum values when passed into C, and the enums are converted back into strings when coming from C back into Perl. You can also pass in the integer values.
constant
In constant mode, constants are defined in the specified package, and with the optional prefix. The string representation or integer constants can be passed into C, but the integer constants are returned from C back into Perl.
In both modes, if you attempt to pass in a value that isn’t one of the possible enum values, an exception will be thrown.
There are three methods to install libffi-platypus-type-enum-perl
on Debian 12. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libffi-platypus-type-enum-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 libffi-platypus-type-enum-perl
using apt-get
by running the following command:
sudo apt-get -y install libffi-platypus-type-enum-perl
Install libffi-platypus-type-enum-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libffi-platypus-type-enum-perl
using apt
by running the following command:
sudo apt -y install libffi-platypus-type-enum-perl
Install libffi-platypus-type-enum-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 libffi-platypus-type-enum-perl
using aptitude
by running the following command:
sudo aptitude -y install libffi-platypus-type-enum-perl
How To Uninstall libffi-platypus-type-enum-perl on Debian 12
To uninstall only the libffi-platypus-type-enum-perl
package we can use the following command:
sudo apt-get remove libffi-platypus-type-enum-perl
Uninstall libffi-platypus-type-enum-perl And Its Dependencies
To uninstall libffi-platypus-type-enum-perl
and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove libffi-platypus-type-enum-perl
Remove libffi-platypus-type-enum-perl Configurations and Data
To remove libffi-platypus-type-enum-perl
configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge libffi-platypus-type-enum-perl
Remove libffi-platypus-type-enum-perl configuration, data, and all of its dependencies
We can use the following command to remove libffi-platypus-type-enum-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libffi-platypus-type-enum-perl
Dependencies
libffi-platypus-type-enum-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libffi-platypus-type-enum-perl
package on Debian 12 using different package management tools: apt
, apt-get
and aptitude
.