How To Install libbson-xs-perl on Debian 10
Introduction
In this tutorial we learn how to install libbson-xs-perl
on Debian 10.
What is libbson-xs-perl
libbson-xs-perl is:
The BSON class implements a BSON encoder/decoder (“codec”). It consumes “documents” (typically hash references) and emits BSON strings and vice versa in accordance with the BSON Specification (http://bsonspec.org).
BSON is the primary data representation for MongoDB. While this module has several features that support MongoDB-specific needs and conventions, it can be used as a standalone serialization format.
BSON::XS contains an XS implementation for BSON encoding and decoding. There is no public API. Use the BSON module and it will choose the best implementation for you.
There are three methods to install libbson-xs-perl
on Debian 10. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libbson-xs-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 libbson-xs-perl
using apt-get
by running the following command:
sudo apt-get -y install libbson-xs-perl
Install libbson-xs-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libbson-xs-perl
using apt
by running the following command:
sudo apt -y install libbson-xs-perl
Install libbson-xs-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 libbson-xs-perl
using aptitude
by running the following command:
sudo aptitude -y install libbson-xs-perl
How To Uninstall libbson-xs-perl on Debian 10
To uninstall only the libbson-xs-perl
package we can use the following command:
sudo apt-get remove libbson-xs-perl
Uninstall libbson-xs-perl And Its Dependencies
To uninstall libbson-xs-perl
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove libbson-xs-perl
Remove libbson-xs-perl Configurations and Data
To remove libbson-xs-perl
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge libbson-xs-perl
Remove libbson-xs-perl configuration, data, and all of its dependencies
We can use the following command to remove libbson-xs-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libbson-xs-perl
Dependencies
libbson-xs-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libbson-xs-perl
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.