How To Install ghc-compiler on Fedora 36

In this tutorial we learn how to install ghc-compiler in Fedora 36. ghc-compiler is GHC compiler and utilities

Introduction

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

What is ghc-compiler

The package contains the GHC compiler, tools and utilities. The ghc libraries are provided by ghc-devel. To install all of ghc (including the ghc library), install the main ghc package.

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

Install ghc-compiler 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-compiler using dnf by running the following command:

sudo dnf -y install ghc-compiler

Install ghc-compiler 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-compiler using yum by running the following command:

sudo yum -y install ghc-compiler

How To Uninstall ghc-compiler on Fedora 36

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

sudo dnf remove ghc-compiler

ghc-compiler Package Contents on Fedora 36

/usr/bin/ghc
/usr/bin/ghc-8.10.5
/usr/bin/ghc-pkg
/usr/bin/ghc-pkg-8.10.5
/usr/bin/ghci
/usr/bin/ghci-8.10.5
/usr/bin/haddock
/usr/bin/haddock-ghc-8.10.5
/usr/bin/hp2ps
/usr/bin/hpc
/usr/bin/hsc2hs
/usr/bin/runghc
/usr/bin/runghc-8.10.5
/usr/bin/runhaskell
/usr/lib/.build-id
/usr/lib/.build-id/01
/usr/lib/.build-id/01/62b2063e5bf3d486c09700d50dd51cd7ff7043
/usr/lib/.build-id/05
/usr/lib/.build-id/05/d0c29b1339e15ad382422518203281c2a18507
/usr/lib/.build-id/19
/usr/lib/.build-id/19/b9a1e658b5fc8cf62b0b7d0ac12f9597f151a8
/usr/lib/.build-id/1b
/usr/lib/.build-id/1b/41ec142ad7d8dddd688e573f80b47afa132b33
/usr/lib/.build-id/34
/usr/lib/.build-id/34/186bfc2f1059c11ffdf2f8370821cb06d48817
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/34930df948588ead19bf285ed90016776d658e
/usr/lib/.build-id/62
/usr/lib/.build-id/62/34d83b085dc358a762f99f64cc79dd0b4a90ca
/usr/lib/.build-id/64
/usr/lib/.build-id/64/0af3ffa31a224b0d31f002765fdc94715f4163
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/5a27e48d4a9eeead8f39905b6b613d4c9f3085
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/191b3444b3e5ed6e58e72968f229349ae8f4b9
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/c15f0d47db74e6c7da115e1fd1fbed77a94f67
/usr/lib64/ghc-8.10.5/bin
/usr/lib64/ghc-8.10.5/bin/ghc
/usr/lib64/ghc-8.10.5/bin/ghc-iserv
/usr/lib64/ghc-8.10.5/bin/ghc-iserv-dyn
/usr/lib64/ghc-8.10.5/bin/ghc-iserv-prof
/usr/lib64/ghc-8.10.5/bin/ghc-pkg
/usr/lib64/ghc-8.10.5/bin/haddock
/usr/lib64/ghc-8.10.5/bin/hp2ps
/usr/lib64/ghc-8.10.5/bin/hpc
/usr/lib64/ghc-8.10.5/bin/hsc2hs
/usr/lib64/ghc-8.10.5/bin/runghc
/usr/lib64/ghc-8.10.5/bin/unlit
/usr/lib64/ghc-8.10.5/ghc-usage.txt
/usr/lib64/ghc-8.10.5/ghci-usage.txt
/usr/lib64/ghc-8.10.5/html
/usr/lib64/ghc-8.10.5/html/Classic.theme
/usr/lib64/ghc-8.10.5/html/Classic.theme/haskell_icon.gif
/usr/lib64/ghc-8.10.5/html/Classic.theme/minus.gif
/usr/lib64/ghc-8.10.5/html/Classic.theme/plus.gif
/usr/lib64/ghc-8.10.5/html/Classic.theme/xhaddock.css
/usr/lib64/ghc-8.10.5/html/Linuwial.std-theme
/usr/lib64/ghc-8.10.5/html/Linuwial.std-theme/linuwial.css
/usr/lib64/ghc-8.10.5/html/Linuwial.std-theme/synopsis.png
/usr/lib64/ghc-8.10.5/html/Ocean.theme
/usr/lib64/ghc-8.10.5/html/Ocean.theme/hslogo-16.png
/usr/lib64/ghc-8.10.5/html/Ocean.theme/minus.gif
/usr/lib64/ghc-8.10.5/html/Ocean.theme/ocean.css
/usr/lib64/ghc-8.10.5/html/Ocean.theme/plus.gif
/usr/lib64/ghc-8.10.5/html/Ocean.theme/synopsis.png
/usr/lib64/ghc-8.10.5/html/haddock-bundle.min.js
/usr/lib64/ghc-8.10.5/html/highlight.js
/usr/lib64/ghc-8.10.5/html/quick-jump.css
/usr/lib64/ghc-8.10.5/html/quick-jump.min.js
/usr/lib64/ghc-8.10.5/html/solarized.css
/usr/lib64/ghc-8.10.5/latex
/usr/lib64/ghc-8.10.5/latex/haddock.sty
/usr/lib64/ghc-8.10.5/llvm-passes
/usr/lib64/ghc-8.10.5/llvm-targets
/usr/lib64/ghc-8.10.5/package.conf.d
/usr/lib64/ghc-8.10.5/package.conf.d/package.cache
/usr/lib64/ghc-8.10.5/package.conf.d/package.cache.lock
/usr/lib64/ghc-8.10.5/platformConstants
/usr/lib64/ghc-8.10.5/settings
/usr/lib64/ghc-8.10.5/template-hsc.h
/usr/share/doc/ghc-compiler
/usr/share/doc/ghc-compiler/README.md
/usr/share/doc/ghc/html/libraries/doc-index-124.html
/usr/share/doc/ghc/html/libraries/doc-index-126.html
/usr/share/doc/ghc/html/libraries/doc-index-33.html
/usr/share/doc/ghc/html/libraries/doc-index-35.html
/usr/share/doc/ghc/html/libraries/doc-index-36.html
/usr/share/doc/ghc/html/libraries/doc-index-37.html
/usr/share/doc/ghc/html/libraries/doc-index-38.html
/usr/share/doc/ghc/html/libraries/doc-index-42.html
/usr/share/doc/ghc/html/libraries/doc-index-43.html
/usr/share/doc/ghc/html/libraries/doc-index-45.html
/usr/share/doc/ghc/html/libraries/doc-index-46.html
/usr/share/doc/ghc/html/libraries/doc-index-47.html
/usr/share/doc/ghc/html/libraries/doc-index-58.html
/usr/share/doc/ghc/html/libraries/doc-index-60.html
/usr/share/doc/ghc/html/libraries/doc-index-61.html
/usr/share/doc/ghc/html/libraries/doc-index-62.html
/usr/share/doc/ghc/html/libraries/doc-index-63.html
/usr/share/doc/ghc/html/libraries/doc-index-92.html
/usr/share/doc/ghc/html/libraries/doc-index-94.html
/usr/share/doc/ghc/html/libraries/doc-index-95.html
/usr/share/doc/ghc/html/libraries/doc-index-A.html
/usr/share/doc/ghc/html/libraries/doc-index-All.html
/usr/share/doc/ghc/html/libraries/doc-index-B.html
/usr/share/doc/ghc/html/libraries/doc-index-C.html
/usr/share/doc/ghc/html/libraries/doc-index-D.html
/usr/share/doc/ghc/html/libraries/doc-index-E.html
/usr/share/doc/ghc/html/libraries/doc-index-F.html
/usr/share/doc/ghc/html/libraries/doc-index-G.html
/usr/share/doc/ghc/html/libraries/doc-index-H.html
/usr/share/doc/ghc/html/libraries/doc-index-I.html
/usr/share/doc/ghc/html/libraries/doc-index-J.html
/usr/share/doc/ghc/html/libraries/doc-index-K.html
/usr/share/doc/ghc/html/libraries/doc-index-L.html
/usr/share/doc/ghc/html/libraries/doc-index-M.html
/usr/share/doc/ghc/html/libraries/doc-index-N.html
/usr/share/doc/ghc/html/libraries/doc-index-O.html
/usr/share/doc/ghc/html/libraries/doc-index-P.html
/usr/share/doc/ghc/html/libraries/doc-index-Q.html
/usr/share/doc/ghc/html/libraries/doc-index-R.html
/usr/share/doc/ghc/html/libraries/doc-index-S.html
/usr/share/doc/ghc/html/libraries/doc-index-T.html
/usr/share/doc/ghc/html/libraries/doc-index-U.html
/usr/share/doc/ghc/html/libraries/doc-index-V.html
/usr/share/doc/ghc/html/libraries/doc-index-W.html
/usr/share/doc/ghc/html/libraries/doc-index-X.html
/usr/share/doc/ghc/html/libraries/doc-index-Y.html
/usr/share/doc/ghc/html/libraries/doc-index-Z.html
/usr/share/doc/ghc/html/libraries/doc-index.html
/usr/share/doc/ghc/html/libraries/gen_contents_index
/usr/share/doc/ghc/html/libraries/haddock-bundle.min.js
/usr/share/doc/ghc/html/libraries/haddock-util.js
/usr/share/doc/ghc/html/libraries/hslogo-16.png
/usr/share/doc/ghc/html/libraries/index.html
/usr/share/doc/ghc/html/libraries/linuwial.css
/usr/share/doc/ghc/html/libraries/minus.gif
/usr/share/doc/ghc/html/libraries/new-ocean.css
/usr/share/doc/ghc/html/libraries/ocean.css
/usr/share/doc/ghc/html/libraries/plus.gif
/usr/share/doc/ghc/html/libraries/prologue.txt
/usr/share/doc/ghc/html/libraries/quick-jump.css
/usr/share/doc/ghc/html/libraries/synopsis.png
/usr/share/licenses/ghc-compiler
/usr/share/licenses/ghc-compiler/LICENSE
/usr/share/man/man1/ghc-pkg.1.gz
/usr/share/man/man1/ghc.1.gz
/usr/share/man/man1/haddock.1.gz
/usr/share/man/man1/runghc.1.gz

References

Summary

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