How To Install ghc-pretty-hex on Fedora 36

In this tutorial we learn how to install ghc-pretty-hex in Fedora 36. ghc-pretty-hex is Haskell pretty-hex library

Introduction

In this tutorial we learn how to install ghc-pretty-hex on Fedora 36.

What is ghc-pretty-hex

This package provides the Haskell pretty-hex library.

We can use yum or dnf to install ghc-pretty-hex on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-pretty-hex.

Install ghc-pretty-hex on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install ghc-pretty-hex using dnf by running the following command:

sudo dnf -y install ghc-pretty-hex

Install ghc-pretty-hex on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install ghc-pretty-hex using yum by running the following command:

sudo yum -y install ghc-pretty-hex

How To Uninstall ghc-pretty-hex on Fedora 36

To uninstall only the ghc-pretty-hex package we can use the following command:

sudo dnf remove ghc-pretty-hex

ghc-pretty-hex Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/02
/usr/lib/.build-id/02/5eaa3d2221c25525a562ff13143cd7a8363624
/usr/lib64/libHSpretty-hex-1.1-2i4ClvFN4Y7LxbHQYNmVC0-ghc8.10.5.so
/usr/share/licenses/ghc-pretty-hex
/usr/share/licenses/ghc-pretty-hex/LICENSE

References

Summary

In this tutorial we learn how to install ghc-pretty-hex on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).