How To Install libbson-xs-perl on Kali Linux
Introduction
In this tutorial we learn how to install libbson-xs-perl on Kali Linux.
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.
As of August 13, 2020, the MongoDB Perl driver and related libraries are no longer supported by MongoDB.
There are three methods to install libbson-xs-perl on Kali Linux. 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 updateAfter updating apt database, We can install libbson-xs-perl using apt-get by running the following command:
sudo apt-get -y install libbson-xs-perlInstall libbson-xs-perl Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libbson-xs-perl using apt by running the following command:
sudo apt -y install libbson-xs-perlInstall libbson-xs-perl Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install libbson-xs-perl using aptitude by running the following command:
sudo aptitude -y install libbson-xs-perlHow To Uninstall libbson-xs-perl on Kali Linux
To uninstall only the libbson-xs-perl package we can use the following command:
sudo apt-get remove libbson-xs-perlUninstall libbson-xs-perl And Its Dependencies
To uninstall libbson-xs-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libbson-xs-perlRemove libbson-xs-perl Configurations and Data
To remove libbson-xs-perl configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libbson-xs-perlRemove 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-perlDependencies
libbson-xs-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libbson-xs-perl package on Kali Linux using different package management tools: apt, apt-get and aptitude.