How To Install ps2eps on Kali Linux

In this tutorial we learn how to install ps2eps on Kali Linux. ps2eps is convert PostScript to EPS (Encapsulated PostScript) files

Introduction

In this tutorial we learn how to install ps2eps on Kali Linux.

What is ps2eps

ps2eps is:

ps2eps is a tool to produce Encapsulated PostScript Files (EPS/EPSF) from usual one-paged Postscript documents. It calculates correct Bounding Boxes for those EPS files and filters some special postscript command sequences that can produce erroneous results on printers. EPS files are needed for including (scalable) graphics into TeX (or even Word) documents. Other programs like ps2epsi do not calculate the bounding box always correctly (because the values are put on the PostScript stack which may get corrupted by bad PostScript code) or rounded it off so that clipping the EPS cut off some parts of the image. Therefore ps2eps uses a resolution of 144 DPI to get the correct bounding box.

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

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

sudo apt-get update

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

sudo apt-get -y install ps2eps

Install ps2eps Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ps2eps

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

sudo aptitude -y install ps2eps

How To Uninstall ps2eps on Kali Linux

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

sudo apt-get remove ps2eps

Uninstall ps2eps And Its Dependencies

To uninstall ps2eps and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove ps2eps

Remove ps2eps Configurations and Data

To remove ps2eps configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge ps2eps

Remove ps2eps configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ps2eps

Dependencies

ps2eps have the following dependencies:

References

Summary

In this tutorial we learn how to install ps2eps package on Kali Linux using different package management tools: apt, apt-get and aptitude.