How To Install libmapnik-dev on Kali Linux
Introduction
In this tutorial we learn how to install libmapnik-dev on Kali Linux.
What is libmapnik-dev
libmapnik-dev is:
Mapnik is an OpenSource C++ toolkit for developing GIS (Geographic Information Systems) applications. At the core is a C++ shared library providing algorithms/patterns for spatial data access and visualization.
Essentially a collection of geographic objects (map, layer, datasource, feature, geometry), the library doesn’t rely on “windowing systems” and is intended to work in multi-threaded environments
This package contains the development headers, API documentation, and build utilities.
There are three methods to install libmapnik-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 libmapnik-dev Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libmapnik-dev using apt-get by running the following command:
sudo apt-get -y install libmapnik-devInstall libmapnik-dev Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libmapnik-dev using apt by running the following command:
sudo apt -y install libmapnik-devInstall libmapnik-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 updateAfter updating apt database, We can install libmapnik-dev using aptitude by running the following command:
sudo aptitude -y install libmapnik-devHow To Uninstall libmapnik-dev on Kali Linux
To uninstall only the libmapnik-dev package we can use the following command:
sudo apt-get remove libmapnik-devUninstall libmapnik-dev And Its Dependencies
To uninstall libmapnik-dev and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libmapnik-devRemove libmapnik-dev Configurations and Data
To remove libmapnik-dev configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libmapnik-devRemove libmapnik-dev configuration, data, and all of its dependencies
We can use the following command to remove libmapnik-dev configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libmapnik-devDependencies
libmapnik-dev have the following dependencies:
- libmapnik3.1
- libboost-filesystem-dev
- libboost-program-options-dev
- libboost-regex-dev
- libboost-system-dev
- libboost-thread-dev
- libc6-dev
- libcairo2-dev
- libcurl4-gnutls-dev
- libfreetype6-dev
- libgdal-dev
- libharfbuzz-dev
- libicu-dev
- libjpeg-dev
- libmapbox-variant-dev
- libpng-dev
- libpq-dev
- libproj-dev
- libsqlite3-dev
- libtiff-dev
- libwebp-dev
- libxml2-dev
- pkg-config
- zlib1g-dev
References
Summary
In this tutorial we learn how to install libmapnik-dev package on Kali Linux using different package management tools: apt, apt-get and aptitude.