How To Install gscan2pdf on Kali Linux
Introduction
In this tutorial we learn how to install gscan2pdf
on Kali Linux.
What is gscan2pdf
gscan2pdf is:
Only five clicks are required to scan several pages and then save all or a selection as a PDF or DjVu file, including metadata if required.
gscan2pdf can control flatbed or sheet-fed (ADF) scanners with SANE via libimage-sane-perl, scanimage or scanadf, and can scan multiple pages at once. It presents a thumbnail view of scanned pages, and permits simple operations such as cropping, rotating and deleting pages.
OCR can be used to recognise text in the scans, and the output embedded in the PDF or DjVu.
PDF conversion is done by PDF::Builder.
The resulting document may be saved as a PDF, DjVu, multipage TIFF file, or single page image file.
There are three methods to install gscan2pdf
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 gscan2pdf Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install gscan2pdf
using apt-get
by running the following command:
sudo apt-get -y install gscan2pdf
Install gscan2pdf Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install gscan2pdf
using apt
by running the following command:
sudo apt -y install gscan2pdf
Install gscan2pdf 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 gscan2pdf
using aptitude
by running the following command:
sudo aptitude -y install gscan2pdf
How To Uninstall gscan2pdf on Kali Linux
To uninstall only the gscan2pdf
package we can use the following command:
sudo apt-get remove gscan2pdf
Uninstall gscan2pdf And Its Dependencies
To uninstall gscan2pdf
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove gscan2pdf
Remove gscan2pdf Configurations and Data
To remove gscan2pdf
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge gscan2pdf
Remove gscan2pdf configuration, data, and all of its dependencies
We can use the following command to remove gscan2pdf
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge gscan2pdf
Dependencies
gscan2pdf have the following dependencies:
- imagemagick
- libgoocanvas2-perl
- libconfig-general-perl
- libdate-calc-perl
- libfilesys-df-perl
- libgtk3-perl
- libgtk3-imageview-perl
- libgtk3-simplelist-perl
- libhtml-parser-perl
- libimage-magick-perl
- libimage-sane-perl
- liblist-moreutils-perl
- liblocale-codes-perl
- liblocale-gettext-perl
- liblog-log4perl-perl
- libossp-uuid-perl
- libpdf-builder-perl
- libproc-processtable-perl
- libreadonly-perl
- librsvg2-common
- libset-intspan-perl
- libtiff-tools
- libtry-tiny-perl
- sane-utils
References
Summary
In this tutorial we learn how to install gscan2pdf
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.