Ghostscript For Mac Sierra

uninstall-ghostscript.sh
#!/usr/bin/env bash
# The MacTex website (https://www.tug.org/mactex/uninstalling.html) says it's 'difficult'
# to uninstall Ghostscript, as installed by MacTex. Their suggestion is to:
# open the MacTeX-2015 install package and select 'Show Files' from the resulting 'File' menu of Apple's installer
# and then:
# Find files related to Ghostscript and remove them.
# which is exactly what this script does. It also prints the names of the deleted files, and moves the files to
# the user's Trash instead of actually deleting them. This can help you roll back the effects of the script in
# case something goes wrong.
# Note that this requires write access to the /tmp directory on your computer.
# Example usage:
# You saved 'mactex-20150613.pkg' in ~/Downloads and used that to install MacTex.bash uninstall-ghostscript.sh
# This script comes with ABSOLUTELY NO WARRANTY WHATSOEVER. By running it, you agree to take full responsibility
# for anything that happens to your computer as a result.
# At the end of the day, you should have deleted the files:
# /usr/local/bin/dvipdf
# /usr/local/bin/eps2eps
# /usr/local/bin/font2c
# /usr/local/bin/gs-X11
# /usr/local/bin/gs-X11-64Bit
# /usr/local/bin/gs-X11-Yosemite
# /usr/local/bin/gs-noX11
# /usr/local/bin/gs-noX11-64Bit
# /usr/local/bin/gs-noX11-Yosemite
# /usr/local/bin/gsbj
# /usr/local/bin/gsdj
# /usr/local/bin/gsdj500
# /usr/local/bin/gslj
# /usr/local/bin/gslp
# /usr/local/bin/gsnd
# /usr/local/bin/lprsetup.sh
# /usr/local/bin/pdf2dsc
# /usr/local/bin/pdf2ps
# /usr/local/bin/pf2afm
# /usr/local/bin/pfbtopfa
# /usr/local/bin/pphs
# /usr/local/bin/printafm
# /usr/local/bin/ps2ascii
# /usr/local/bin/ps2epsi
# /usr/local/bin/ps2pdf
# /usr/local/bin/ps2pdf12
# /usr/local/bin/ps2pdf13
# /usr/local/bin/ps2pdf14
# /usr/local/bin/ps2pdfwr
# /usr/local/bin/ps2ps
# /usr/local/bin/ps2ps2
# /usr/local/bin/unix-lpr.sh
# /usr/local/bin/wftopfa
# /usr/local/share/man/de/man1/dvipdf.1
# /usr/local/share/man/de/man1/font2c.1
# /usr/local/share/man/de/man1/gsnd.1
# /usr/local/share/man/de/man1/pdf2dsc.1
# /usr/local/share/man/de/man1/pdf2ps.1
# /usr/local/share/man/de/man1/printafm.1
# /usr/local/share/man/de/man1/ps2ascii.1
# /usr/local/share/man/de/man1/ps2pdf.1
# /usr/local/share/man/de/man1/ps2ps.1
# /usr/local/share/man/de/man1/wftopfa.1
# /usr/local/share/man/man1/dvipdf.1
# /usr/local/share/man/man1/font2c.1
# /usr/local/share/man/man1/gs.1
# /usr/local/share/man/man1/gslp.1
# /usr/local/share/man/man1/gsnd.1
# /usr/local/share/man/man1/pdf2dsc.1
# /usr/local/share/man/man1/pdf2ps.1
# /usr/local/share/man/man1/pf2afm.1
# /usr/local/share/man/man1/pfbtopfa.1
# /usr/local/share/man/man1/printafm.1
# /usr/local/share/man/man1/ps2ascii.1
# /usr/local/share/man/man1/ps2epsi.1
# /usr/local/share/man/man1/ps2pdf.1
# /usr/local/share/man/man1/ps2pdfwr.1
# /usr/local/share/man/man1/ps2ps.1
# /usr/local/share/man/man1/wftopfa.1
#
# and the directory:
# /usr/local/share/ghostscript/
uninstall_ghostscript () {
bom_usr_local=$(pkgutil --bom $1 fgrep local.pkg)
files=( $(lsbom -s -f $bom_usr_local fgrep -v ghostscript sed 's_^._/usr/local_') )
command mv -i $files~/.Trash
command mv -i /usr/local/share/ghostscript ~/.Trash
}
uninstall_ghostscript $1

Ghostscript is a suite of software based on an interpreter for Adobe Systems' PostScript and Portable Document Format (PDF) page description languages.Its main purposes are the rasterization or rendering of such page description language files, for the display or printing of document pages, and the conversion between PostScript and PDF files. MacTeX installs Ghostscript, an open source version of Postscript. An optional package installs libgs, the dynamical library for Ghostscript. That library is used by only one program in TeX Live, dvisvgm. So it is not installed by default, but can be obtained using the ``custom install' option in MacTeX. Install ghostscript on Mac OSX. June 23, 2017 Amber. About the App. App name: ghostscript; App description: Interpreter for PostScript and PDF. From Artifex Software: This is a release of AFPL Ghostscript built as a shared library component. This encapsulates the ghostscript engine so that other applications can use its functionality.

commented Apr 30, 2020

It is not so clear what the argument to this script should be. If run without an argument I get:

Does it need the mactex.pkg file that I already deleted?

commented May 20, 2020
edited

This was a long time ago, but yes I believe so, @meling. You should be able to re-download the PKG file at least. This script basically just extracts the list of installed files from the PKG and moves them to the trash one by one (in a somewhat insecure manner, I might add).

I haven't tested this at all, but the following code would be considered better practice:

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Check compatibility

You can upgrade to macOS Sierra from OS X Lion or later on any of the following Mac models. Your Mac also needs at least 2GB of memory and 8.8GB of available storage space.

What Is Ghostscript 9.5

MacBook introduced in late 2009 or later
MacBook Air introduced in late 2010 or later
MacBook Pro introduced in mid 2010 or later
Mac mini introduced in mid 2010 or later
iMac introduced in late 2009 or later
Mac Pro introduced in mid 2010 or later

To find your Mac model, memory, storage space, and macOS version, choose About This Mac from the Apple menu . If your Mac isn't compatible with macOS Sierra, the installer will let you know.

Make a backup

Before installing any upgrade, it’s a good idea to back up your Mac. Time Machine makes it simple, and other backup methods are also available. Learn how to back up your Mac.

Get connected

It takes time to download and install macOS, so make sure that you have a reliable Internet connection. If you're using a Mac notebook computer, plug it into AC power.

Download macOS Sierra

For the strongest security and latest features, find out whether you can upgrade to macOS Catalina, the latest version of the Mac operating system.

If you still need macOS Sierra, use this link: Download macOS Sierra. A file named InstallOS.dmg will download to your Mac.

Ghostscript For Mac Os X

Ghostscript For Mac Sierra

Install the macOS installer

Double-click the downloaded file to open a window showing its contents. Then double-click the file within, named InstallOS.pkg.

Follow the onscreen instructions, which will guide you through the steps necessary to install.

Begin installation

Ghostscript Mac Sierra

After installation of the installer is complete, open the Applications folder on your Mac, then double-click the file named Install macOS Sierra.

Apple may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Apple can therefore provide no guarantee as to the efficacy of any proposed solutions on the community forums. Apple Footer.This site contains user submitted content, comments and opinions and is for informational purposes only. Xbox 360 controller driver for mac os high sierra 10 13 6. All postings and use of the content on this site are subject to the. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site.

Ghostscript For Mac Sierra Vista

Click Continue and follow the onscreen instructions. You might find it easiest to begin installation in the evening so that it can complete overnight, if needed.

Allow installation to complete

Please allow installation to complete without putting your Mac to sleep or closing its lid. Your Mac might restart, show a progress bar, or show a blank screen several times as it installs both macOS and related updates to your Mac firmware.

Learn more

Ghostscript

  • If you have hardware or software that isn't compatible with macOS Sierra, you might be able to install the previous version, OS X El Capitan.
  • macOS Sierra won't install on top of a later version of macOS, but you can erase your disk first or install on another disk.
  • You can use macOS Recovery to reinstall macOS.