How To Install kprinter4 on Debian 9

In this tutorial we learn how to install kprinter4 on Debian 9. kprinter4 is Simple PostScript document printer

Introduction

In this tutorial we learn how to install kprinter4 on Debian 9.

What is kprinter4

kprinter4 is:

Kprinter4 is a simple stand-alone document printer modelled after the KDE4 print dialog. It can be used in place of /bin/lpr in order to better control the print setup of legacy applications.

Features include:

  • Printing PostScript documents with KDE4 print dialog
  • Scaling and positioning of documents
  • Poster printing

Kprinter4 is the successor of the KDE3-based kprinter application.

There are three methods to install kprinter4 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 kprinter4 Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install kprinter4 using apt-get by running the following command:

sudo apt-get -y install kprinter4

Install kprinter4 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install kprinter4 using apt by running the following command:

sudo apt -y install kprinter4

Install kprinter4 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 kprinter4 using aptitude by running the following command:

sudo aptitude -y install kprinter4

How To Uninstall kprinter4 on Debian 9

To uninstall only the kprinter4 package we can use the following command:

sudo apt-get remove kprinter4

Uninstall kprinter4 And Its Dependencies

To uninstall kprinter4 and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove kprinter4

Remove kprinter4 Configurations and Data

To remove kprinter4 configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge kprinter4

Remove kprinter4 configuration, data, and all of its dependencies

We can use the following command to remove kprinter4 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge kprinter4

Dependencies

kprinter4 have the following dependencies:

References

Summary

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