How to Install and Uninstall ghc Package on Ubuntu 20.10 (Groovy Gorilla)

Last updated: May 16,2024

1. Install "ghc" package

This guide let you learn how to install ghc on Ubuntu 20.10 (Groovy Gorilla)

$ sudo apt update $ sudo apt install ghc

2. Uninstall "ghc" package

In this section, we are going to explain the necessary steps to uninstall ghc on Ubuntu 20.10 (Groovy Gorilla):

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

3. Information about the ghc package on Ubuntu 20.10 (Groovy Gorilla)

Package: ghc
Architecture: amd64
Version: 8.8.3-3build1
Priority: extra
Section: universe/haskell
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Haskell Group
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 803203
Provides: ghc-dynamic, ghc-ghci, ghc-haddock, haddock, haddock-interface-35, haskell-compiler, libghc-array-dev (= 0.5.4.0), libghc-array-dev-0.5.4.0-4a8d7, libghc-base-dev (= 4.13.0.0), libghc-base-dev-4.13.0.0-c9705, libghc-binary-dev (= 0.8.7.0), libghc-binary-dev-0.8.7.0-d1638, libghc-bytestring-dev (= 0.10.10.0), libghc-bytestring-dev-0.10.10.0-70a9a, libghc-cabal-dev (= 3.0.1.0), libghc-cabal-dev-3.0.1.0-73889, libghc-containers-dev (= 0.6.2.1), libghc-containers-dev-0.6.2.1-b8f3d, libghc-deepseq-dev (= 1.4.4.0), libghc-deepseq-dev-1.4.4.0-b386b, libghc-directory-dev (= 1.3.6.0), libghc-directory-dev-1.3.6.0-a7edc, libghc-filepath-dev (= 1.4.2.1), libghc-filepath-dev-1.4.2.1-251c0, libghc-ghc-boot-dev (= 8.8.3), libghc-ghc-boot-dev-8.8.3-ae107, libghc-ghc-boot-th-dev (= 8.8.3), libghc-ghc-boot-th-dev-8.8.3-2108d, libghc-ghc-compact-dev (= 0.1.0.0), libghc-ghc-compact-dev-0.1.0.0-2e633, libghc-ghc-dev-8.8.3-1cc0c, libghc-ghc-heap-dev (= 8.8.3), libghc-ghc-heap-dev-8.8.3-6026d, libghc-ghc-prim-dev (= 0.5.3), libghc-ghc-prim-dev-0.5.3-ce4de, libghc-ghci-dev (= 8.8.3), libghc-ghci-dev-8.8.3-a036a, libghc-haskeline-dev (= 0.7.5.0), libghc-haskeline-dev-0.7.5.0-ca73d, libghc-hpc-dev (= 0.6.0.3), libghc-hpc-dev-0.6.0.3-ebbb7, libghc-integer-gmp-dev (= 1.0.2.0), libghc-integer-gmp-dev-1.0.2.0-e06bc, libghc-libiserv-dev (= 8.8.3), libghc-libiserv-dev-8.8.3-f50b2, libghc-mtl-dev (= 2.2.2), libghc-mtl-dev-2.2.2-13482, libghc-parsec-dev-3.1.14.0-aef34, libghc-parsec3-dev (= 3.1.14.0), libghc-pretty-dev (= 1.1.3.6), libghc-pretty-dev-1.1.3.6-e80bb, libghc-process-dev (= 1.6.8.0), libghc-process-dev-1.6.8.0-e3a1c, libghc-rts-dev-1.0-, libghc-stm-dev (= 2.5.0.0), libghc-stm-dev-2.5.0.0-0538a, libghc-template-haskell-dev (= 2.15.0.0), libghc-template-haskell-dev-2.15.0.0-6d2a0, libghc-terminfo-dev (= 0.4.1.4), libghc-terminfo-dev-0.4.1.4-aa762, libghc-text-dev (= 1.2.4.0), libghc-text-dev-1.2.4.0-455b7, libghc-time-dev (= 1.9.3), libghc-time-dev-1.9.3-a9e1f, libghc-transformers-dev (= 0.5.6.2), libghc-transformers-dev-0.5.6.2-e88a5, libghc-unix-dev (= 2.7.2.2), libghc-unix-dev-2.7.2.2-0c214, libghc-xhtml-dev (= 3000.2.2.1), libghc-xhtml-dev-3000.2.2.1-b19f2
Pre-Depends: dpkg (>= 1.16.1)
Depends: gcc, libgmp-dev, libffi-dev, libbsd-dev, libc6-dev, libncurses5-dev, libc6 (>= 2.29), libffi8ubuntu1 (>= 3.4~20200819), libgmp10, libtinfo6 (>= 6)
Suggests: perl, ghc-prof, ghc-doc, haskell-doc, llvm-9
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.4.0+), libghc-base-dev (<< 4.13.0.0+), libghc-binary-dev (<< 0.8.7.0+), libghc-bytestring-dev (<< 0.10.10.0+), libghc-cabal-dev (<< 3.0.1.0+), libghc-containers-dev (<< 0.6.2.1+), libghc-deepseq-dev (<< 1.4.4.0+), libghc-directory-dev (<< 1.3.6.0+), libghc-filepath-dev (<< 1.4.2.1+), libghc-ghc-boot-dev (<< 8.8.3+), libghc-ghc-boot-th-dev (<< 8.8.3+), libghc-ghc-compact-dev (<< 0.1.0.0+), libghc-ghc-heap-dev (<< 8.8.3+), libghc-ghc-prim-dev (<< 0.5.3+), libghc-ghci-dev (<< 8.8.3+), libghc-haskeline-dev (<< 0.7.5.0+), libghc-hpc-dev (<< 0.6.0.3+), libghc-integer-gmp-dev (<< 1.0.2.0+), libghc-libiserv-dev (<< 8.8.3+), libghc-mtl-dev (<< 2.2.2+), libghc-parsec3-dev (<< 3.1.14.0+), libghc-pretty-dev (<< 1.1.3.6+), libghc-process-dev (<< 1.6.8.0+), libghc-stm-dev (<< 2.5.0.0+), libghc-template-haskell-dev (<< 2.15.0.0+), libghc-terminfo-dev (<< 0.4.1.4+), libghc-text-dev (<< 1.2.4.0+), libghc-time-dev (<< 1.9.3+), 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.4.0+), libghc-base-dev (<< 4.13.0.0+), libghc-binary-dev (<< 0.8.7.0+), libghc-bytestring-dev (<< 0.10.10.0+), libghc-cabal-dev (<< 3.0.1.0+), libghc-containers-dev (<< 0.6.2.1+), libghc-deepseq-dev (<< 1.4.4.0+), libghc-directory-dev (<< 1.3.6.0+), libghc-filepath-dev (<< 1.4.2.1+), libghc-ghc-boot-dev (<< 8.8.3+), libghc-ghc-boot-th-dev (<< 8.8.3+), libghc-ghc-compact-dev (<< 0.1.0.0+), libghc-ghc-heap-dev (<< 8.8.3+), libghc-ghc-prim-dev (<< 0.5.3+), libghc-ghci-dev (<< 8.8.3+), libghc-haskeline-dev (<< 0.7.5.0+), libghc-hpc-dev (<< 0.6.0.3+), libghc-integer-gmp-dev (<< 1.0.2.0+), libghc-libiserv-dev (<< 8.8.3+), libghc-mtl-dev (<< 2.2.2+), libghc-parsec3-dev (<< 3.1.14.0+), libghc-pretty-dev (<< 1.1.3.6+), libghc-process-dev (<< 1.6.8.0+), libghc-stm-dev (<< 2.5.0.0+), libghc-template-haskell-dev (<< 2.15.0.0+), libghc-terminfo-dev (<< 0.4.1.4+), libghc-text-dev (<< 1.2.4.0+), libghc-time-dev (<< 1.9.3+), 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.3-3build1_amd64.deb
Size: 72655740
MD5sum: 38085cfad4aa074185f0af79c88fbff8
SHA1: b168710b95686179e0e365f3a9c403cec0875be6
SHA256: e41db5bf5e38823394c98bc70fe5888d5eaee2b34e2a8673681eae6385751e5a
SHA512: 976f1690ee0c297b7e602cb45d59152e0b7401d626e60d2c15948043396eb0bb1f3dff832ff793edfed9dc9eac845bd1b1bc59a7ed4615cf8d3a2a8f6a4e8d92
Homepage: https://haskell.org/ghc/
Description-en: The Glasgow Haskell Compilation system
The Glorious Glasgow Haskell Compilation system (GHC) is a compiler for
Haskell.
.
Haskell is "the" standard lazy functional programming language. The language
definition and additional documentation can be found in the `haskell-doc'
package. Alternatively, there is an online version at
http://haskell.org/onlinereport/.
Description-md5: d696780bb03e075568c919469ec4c73c