How To Install python3-libtiff on Kali Linux
Introduction
In this tutorial we learn how to install python3-libtiff
on Kali Linux.
What is python3-libtiff
python3-libtiff is:
PyLibTiff is a package that provides:
- a wrapper to the libtiff library to Python using ctypes.
- a pure Python module for reading and writing TIFF and LSM files. The images are read as numpy.memmap objects so that it is possible to open images that otherwise would not fit to computers RAM.
There exists many Python packages such as PIL, FreeImagePy that support reading and writing TIFF files. The PyLibTiff project was started to have an efficient and direct way to read and write TIFF files using the libtiff library without the need to install any unnecessary packages or libraries. The pure Python module was created for reading “broken” TIFF files such as LSM files that in some places use different interpretation of TIFF tags than what specified in the TIFF specification document. The libtiff library would just fail reading such files. In addition, the pure Python module is more memory efficient as the arrays are returned as memory maps. Support for compressed files is not implemented yet.
Warning: pylibtiff currently supports reading and writing images that are stored using TIFF strips. Patches are welcome to support tiled TIFF images.
This package contains PyLibTiff for Python 3.
There are three methods to install python3-libtiff
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 python3-libtiff Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install python3-libtiff
using apt-get
by running the following command:
sudo apt-get -y install python3-libtiff
Install python3-libtiff Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python3-libtiff
using apt
by running the following command:
sudo apt -y install python3-libtiff
Install python3-libtiff 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 python3-libtiff
using aptitude
by running the following command:
sudo aptitude -y install python3-libtiff
How To Uninstall python3-libtiff on Kali Linux
To uninstall only the python3-libtiff
package we can use the following command:
sudo apt-get remove python3-libtiff
Uninstall python3-libtiff And Its Dependencies
To uninstall python3-libtiff
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove python3-libtiff
Remove python3-libtiff Configurations and Data
To remove python3-libtiff
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge python3-libtiff
Remove python3-libtiff configuration, data, and all of its dependencies
We can use the following command to remove python3-libtiff
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python3-libtiff
Dependencies
python3-libtiff have the following dependencies:
References
Summary
In this tutorial we learn how to install python3-libtiff
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.