How To Install img2pdf on Debian 9
Introduction
In this tutorial we learn how to install img2pdf
on Debian 9.
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 Debian 9. 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 update
After updating apt database, We can install img2pdf
using apt-get
by running the following command:
sudo apt-get -y install img2pdf
Install img2pdf Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install img2pdf
using apt
by running the following command:
sudo apt -y install img2pdf
Install img2pdf Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install img2pdf
using aptitude
by running the following command:
sudo aptitude -y install img2pdf
How To Uninstall img2pdf on Debian 9
To uninstall only the img2pdf
package we can use the following command:
sudo apt-get remove img2pdf
Uninstall img2pdf And Its Dependencies
To uninstall img2pdf
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove img2pdf
Remove img2pdf Configurations and Data
To remove img2pdf
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge img2pdf
Remove 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 img2pdf
Dependencies
img2pdf have the following dependencies:
References
Summary
In this tutorial we learn how to install img2pdf
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.