How To Install ghostscript on CentOS 7
Introduction
In this tutorial we learn how to install ghostscript on CentOS 7.
What is ghostscript
This package provides useful conversion utilities based on Ghostscript software, for converting PS, PDF and other document formats between each other. Ghostscript is a suite of software providing an interpreter for Adobe Systems’ PostScript (PS) and Portable Document Format (PDF) page description languages. Its primary purpose includes displaying (rasterization & rendering) and printing of document pages, as well as conversions between different document formats. This package provides useful conversion utilities based on Ghostscript software, for converting PS, PDF and other document formats between each other. Ghostscript is a suite of software providing an interpreter for Adobe Systems’ PostScript (PS) and Portable Document Format (PDF) page description languages. Its primary purpose includes displaying (rasterization & rendering) and printing of document pages, as well as conversions between different document formats.
We can use yum or dnf to install ghostscript on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install ghostscript.
Install ghostscript on CentOS 7 Using yum
Update yum database with yum using the following command.
sudo yum makecache
After updating yum database, We can install ghostscript using yum by running the following command:
sudo yum -y install ghostscript
Install ghostscript on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf using the following command.
sudo dnf makecache
After updating yum database, We can install ghostscript using dnf by running the following command:
sudo dnf -y install ghostscript
How To Uninstall ghostscript on CentOS 7
To uninstall only the ghostscript package we can use the following command:
sudo dnf remove ghostscript
References
Summary
In this tutorial we learn how to install ghostscript on CentOS 7 using yum and dnf.