How To Install libnest2d-dev on Kali Linux
Introduction
In this tutorial we learn how to install libnest2d-dev
on Kali Linux.
What is libnest2d-dev
libnest2d-dev is:
Libnest2D is a library and framework for the 2D bin packaging problem. Inspired from the SVGNest Javascript library the project is built from scratch in C++11. The library is written with a policy that it should be usable out of the box with a very simple interface but has to be customizable to the very core as well. The algorithms are defined in a header only fashion with templated geometry types. These geometries can have custom or already existing implementation to avoid copying or having unnecessary dependencies.
A default backend is provided if the user of the library just wants to use it out of the box without additional integration. This backend is reasonably fast and robust, being built on top of boost geometry and the polyclipping library. Usage of this default backend implies the dependency on these packages but its header only as well.
There are three methods to install libnest2d-dev
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 libnest2d-dev Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libnest2d-dev
using apt-get
by running the following command:
sudo apt-get -y install libnest2d-dev
Install libnest2d-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libnest2d-dev
using apt
by running the following command:
sudo apt -y install libnest2d-dev
Install libnest2d-dev 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 update
After updating apt database, We can install libnest2d-dev
using aptitude
by running the following command:
sudo aptitude -y install libnest2d-dev
How To Uninstall libnest2d-dev on Kali Linux
To uninstall only the libnest2d-dev
package we can use the following command:
sudo apt-get remove libnest2d-dev
Uninstall libnest2d-dev And Its Dependencies
To uninstall libnest2d-dev
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libnest2d-dev
Remove libnest2d-dev Configurations and Data
To remove libnest2d-dev
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libnest2d-dev
Remove libnest2d-dev configuration, data, and all of its dependencies
We can use the following command to remove libnest2d-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libnest2d-dev
Dependencies
libnest2d-dev have the following dependencies:
References
Summary
In this tutorial we learn how to install libnest2d-dev
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.