How to Install and Uninstall ghc Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: May 15,2024

1. Install "ghc" package

Please follow the step by step instructions below to install ghc on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install ghc

2. Uninstall "ghc" package

This is a short guide on how to uninstall ghc on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove ghc $ sudo apt autoclean && sudo apt autoremove

3. Information about the ghc package on Ubuntu 20.04 LTS (Focal Fossa)

Package: ghc
Architecture: amd64
Version: 8.8.1+dfsg1+is+8.6.5+dfsg1-3
Priority: extra
Section: universe/haskell
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Haskell Group
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 761787
Provides: ghc-dynamic, ghc-ghci, ghc-haddock, haddock, haddock-interface-33, haskell-compiler, libghc-array-dev (= 0.5.3.0), libghc-array-dev-0.5.3.0-ea273, libghc-base-dev (= 4.12.0.0), libghc-base-dev-4.12.0.0-a86a1, libghc-binary-dev (= 0.8.6.0), libghc-binary-dev-0.8.6.0-5ca49, libghc-bytestring-dev (= 0.10.8.2), libghc-bytestring-dev-0.10.8.2-20f27, libghc-cabal-dev (= 2.4.0.1), libghc-cabal-dev-2.4.0.1-f4916, libghc-containers-dev (= 0.6.0.1), libghc-containers-dev-0.6.0.1-b7319, libghc-deepseq-dev (= 1.4.4.0), libghc-deepseq-dev-1.4.4.0-b5530, libghc-directory-dev (= 1.3.3.0), libghc-directory-dev-1.3.3.0-40647, libghc-filepath-dev (= 1.4.2.1), libghc-filepath-dev-1.4.2.1-774a0, libghc-ghc-boot-dev (= 8.6.5), libghc-ghc-boot-dev-8.6.5-02c95, libghc-ghc-boot-th-dev (= 8.6.5), libghc-ghc-boot-th-dev-8.6.5-e80cf, libghc-ghc-compact-dev (= 0.1.0.0), libghc-ghc-compact-dev-0.1.0.0-bc970, libghc-ghc-dev-8.6.5-ea8b3, libghc-ghc-heap-dev (= 8.6.5), libghc-ghc-heap-dev-8.6.5-32fc7, libghc-ghc-prim-dev (= 0.5.3), libghc-ghc-prim-dev-0.5.3-de1a6, libghc-ghci-dev (= 8.6.5), libghc-ghci-dev-8.6.5-1fdbd, libghc-haskeline-dev (= 0.7.4.3), libghc-haskeline-dev-0.7.4.3-42a19, libghc-hpc-dev (= 0.6.0.3), libghc-hpc-dev-0.6.0.3-60f96, libghc-integer-gmp-dev (= 1.0.2.0), libghc-integer-gmp-dev-1.0.2.0-37dba, libghc-libiserv-dev (= 8.6.3), libghc-libiserv-dev-8.6.3-1863b, libghc-mtl-dev (= 2.2.2), libghc-mtl-dev-2.2.2-07ff1, libghc-parsec-dev-3.1.13.0-732de, libghc-parsec3-dev (= 3.1.13.0), libghc-pretty-dev (= 1.1.3.6), libghc-pretty-dev-1.1.3.6-4f0eb, libghc-process-dev (= 1.6.5.0), libghc-process-dev-1.6.5.0-e8028, libghc-rts-dev-1.0-, libghc-stm-dev (= 2.5.0.0), libghc-stm-dev-2.5.0.0-daead, libghc-template-haskell-dev (= 2.14.0.0), libghc-template-haskell-dev-2.14.0.0-47084, libghc-terminfo-dev (= 0.4.1.2), libghc-terminfo-dev-0.4.1.2-a42ff, libghc-text-dev (= 1.2.3.1), libghc-text-dev-1.2.3.1-538d8, libghc-time-dev (= 1.8.0.2), libghc-time-dev-1.8.0.2-76e12, libghc-transformers-dev (= 0.5.6.2), libghc-transformers-dev-0.5.6.2-08fea, libghc-unix-dev (= 2.7.2.2), libghc-unix-dev-2.7.2.2-dbe0e, libghc-xhtml-dev (= 3000.2.2.1), libghc-xhtml-dev-3000.2.2.1-9d30d
Pre-Depends: dpkg (>= 1.16.1)
Depends: gcc, libgmp-dev, libffi-dev, libbsd-dev, libc6-dev, libncurses5-dev, libatomic1 (>= 4.8), libc6 (>= 2.29), libffi7 (>= 3.3~20180313), libgmp10, libtinfo6 (>= 6)
Suggests: perl, ghc-prof, ghc-doc, haskell-doc, llvm-6.0
Conflicts: ghc-dynamic (<< 7.8), ghc6 (<< 7)
Breaks: cabal-install (<< 1.22), ghc-doc (<< 7.10), ghc-haddock (<< 7.10), haskell-devscripts (<< 0.8.13), libghc-array-dev (<< 0.5.3.0+), libghc-base-dev (<< 4.12.0.0+), libghc-binary-dev (<< 0.8.6.0+), libghc-bytestring-dev (<< 0.10.8.2+), libghc-cabal-dev (<< 2.4.0.1+), libghc-containers-dev (<< 0.6.0.1+), libghc-deepseq-dev (<< 1.4.4.0+), libghc-directory-dev (<< 1.3.3.0+), libghc-filepath-dev (<< 1.4.2.1+), libghc-ghc-boot-dev (<< 8.6.5+), libghc-ghc-boot-th-dev (<< 8.6.5+), libghc-ghc-compact-dev (<< 0.1.0.0+), libghc-ghc-heap-dev (<< 8.6.5+), libghc-ghc-prim-dev (<< 0.5.3+), libghc-ghci-dev (<< 8.6.5+), libghc-haskeline-dev (<< 0.7.4.3+), libghc-hpc-dev (<< 0.6.0.3+), libghc-integer-gmp-dev (<< 1.0.2.0+), libghc-libiserv-dev (<< 8.6.3+), libghc-mtl-dev (<< 2.2.2+), libghc-parsec3-dev (<< 3.1.13.0+), libghc-pretty-dev (<< 1.1.3.6+), libghc-process-dev (<< 1.6.5.0+), libghc-stm-dev (<< 2.5.0.0+), libghc-template-haskell-dev (<< 2.14.0.0+), libghc-terminfo-dev (<< 0.4.1.2+), libghc-text-dev (<< 1.2.3.1+), libghc-time-dev (<< 1.8.0.2+), libghc-transformers-dev (<< 0.5.6.2+), libghc-unix-dev (<< 2.7.2.2+), libghc-xhtml-dev (<< 3000.2.2.1+)
Replaces: ghc-dynamic (<< 7.8), ghc-haddock (<< 7.10), ghc6 (<< 7), libghc-array-dev (<< 0.5.3.0+), libghc-base-dev (<< 4.12.0.0+), libghc-binary-dev (<< 0.8.6.0+), libghc-bytestring-dev (<< 0.10.8.2+), libghc-cabal-dev (<< 2.4.0.1+), libghc-containers-dev (<< 0.6.0.1+), libghc-deepseq-dev (<< 1.4.4.0+), libghc-directory-dev (<< 1.3.3.0+), libghc-filepath-dev (<< 1.4.2.1+), libghc-ghc-boot-dev (<< 8.6.5+), libghc-ghc-boot-th-dev (<< 8.6.5+), libghc-ghc-compact-dev (<< 0.1.0.0+), libghc-ghc-heap-dev (<< 8.6.5+), libghc-ghc-prim-dev (<< 0.5.3+), libghc-ghci-dev (<< 8.6.5+), libghc-haskeline-dev (<< 0.7.4.3+), libghc-hpc-dev (<< 0.6.0.3+), libghc-integer-gmp-dev (<< 1.0.2.0+), libghc-libiserv-dev (<< 8.6.3+), libghc-mtl-dev (<< 2.2.2+), libghc-parsec3-dev (<< 3.1.13.0+), libghc-pretty-dev (<< 1.1.3.6+), libghc-process-dev (<< 1.6.5.0+), libghc-stm-dev (<< 2.5.0.0+), libghc-template-haskell-dev (<< 2.14.0.0+), libghc-terminfo-dev (<< 0.4.1.2+), libghc-text-dev (<< 1.2.3.1+), libghc-time-dev (<< 1.8.0.2+), libghc-transformers-dev (<< 0.5.6.2+), libghc-unix-dev (<< 2.7.2.2+), libghc-xhtml-dev (<< 3000.2.2.1+)
Filename: pool/universe/g/ghc/ghc_8.8.1+dfsg1+is+8.6.5+dfsg1-3_amd64.deb
Size: 69823132
MD5sum: 53b7d9bb18c7c19d523687a98014e78e
SHA1: ebc3075e0910ab87ebd7e9de991dbd809254dc4f
SHA256: b203abf861713afb673345073e577e3bd051ea3f286d2230619591c927aa6263
Homepage: https://haskell.org/ghc/
Description: The Glasgow Haskell Compilation system
Description-md5: d696780bb03e075568c919469ec4c73c