How To Install img2pdf on Kali Linux
Introduction
In this tutorial we learn how to install img2pdf on Kali Linux.
What is img2pdf
img2pdf is:
This program will take a list of raster images and produce a PDF file with the images embedded in it. JPEG and JPEG2000 images will be included without recompression. Raster images in other formats will be included with zip/flate encoding which usually leads to an increase in the resulting size because formats like png compress better than PDF which just zip/flate compresses the RGB data. As a result, this tool is able to losslessly wrap images into a PDF container with a quality to filesize ratio that is typically better (in case of JPEG and JPEG2000 images) or equal (in case of other formats) than that of existing tools.
This package contains the executable.
There are three methods to install img2pdf 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 img2pdf Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install img2pdf using apt-get by running the following command:
sudo apt-get -y install img2pdfInstall img2pdf Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install img2pdf using apt by running the following command:
sudo apt -y install img2pdfInstall img2pdf 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 img2pdf using aptitude by running the following command:
sudo aptitude -y install img2pdfHow To Uninstall img2pdf on Kali Linux
To uninstall only the img2pdf package we can use the following command:
sudo apt-get remove img2pdfUninstall img2pdf And Its Dependencies
To uninstall img2pdf and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove img2pdfRemove img2pdf Configurations and Data
To remove img2pdf configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge img2pdfRemove img2pdf configuration, data, and all of its dependencies
We can use the following command to remove img2pdf configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge img2pdfDependencies
img2pdf have the following dependencies:
References
Summary
In this tutorial we learn how to install img2pdf package on Kali Linux using different package management tools: apt, apt-get and aptitude.