How To Install gscan2pdf on Debian 10

Learn how to install gscan2pdf on Debian 10 with this tutorial. gscan2pdf is GUI to produce PDFs or DjVus from scanned documents

Introduction

In this tutorial we learn how to install gscan2pdf on Debian 10.

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::API2.

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 Debian 10. 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 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 gscan2pdf using aptitude by running the following command:

sudo aptitude -y install gscan2pdf

How To Uninstall gscan2pdf on Debian 10

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 Debian 10, we can use the command below:

sudo apt-get -y autoremove gscan2pdf

Remove gscan2pdf Configurations and Data

To remove gscan2pdf configuration and data from Debian 10 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:

References

Summary

In this tutorial we learn how to install gscan2pdf package on Debian 10 using different package management tools: apt, apt-get and aptitude.