How to Install and Uninstall ghc Package on Ubuntu 21.10 (Impish Indri)

Last updated: October 06,2024

1. Install "ghc" package

Please follow the instructions below to install ghc on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install ghc

2. Uninstall "ghc" package

This tutorial shows how to uninstall ghc on Ubuntu 21.10 (Impish Indri):

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

3. Information about the ghc package on Ubuntu 21.10 (Impish Indri)

Package: ghc
Architecture: amd64
Version: 8.8.4-2build2
Priority: extra
Section: universe/haskell
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Haskell Group
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 799853
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-ddbb2, libghc-base-dev (= 4.13.0.0), libghc-base-dev-4.13.0.0-2f220, libghc-binary-dev (= 0.8.7.0), libghc-binary-dev-0.8.7.0-943d8, libghc-bytestring-dev (= 0.10.10.1), libghc-bytestring-dev-0.10.10.1-c40ee, libghc-cabal-dev (= 3.0.1.0), libghc-cabal-dev-3.0.1.0-025b0, libghc-containers-dev (= 0.6.2.1), libghc-containers-dev-0.6.2.1-ab1cf, libghc-deepseq-dev (= 1.4.4.0), libghc-deepseq-dev-1.4.4.0-9f093, libghc-directory-dev (= 1.3.6.0), libghc-directory-dev-1.3.6.0-49fdf, libghc-filepath-dev (= 1.4.2.1), libghc-filepath-dev-1.4.2.1-103b6, libghc-ghc-boot-dev (= 8.8.4), libghc-ghc-boot-dev-8.8.4-d35b3, libghc-ghc-boot-th-dev (= 8.8.4), libghc-ghc-boot-th-dev-8.8.4-54c6a, libghc-ghc-compact-dev (= 0.1.0.0), libghc-ghc-compact-dev-0.1.0.0-9700a, libghc-ghc-dev-8.8.4-bc988, libghc-ghc-heap-dev (= 8.8.4), libghc-ghc-heap-dev-8.8.4-2b5f3, libghc-ghc-prim-dev (= 0.5.3), libghc-ghc-prim-dev-0.5.3-49209, libghc-ghci-dev (= 8.8.4), libghc-ghci-dev-8.8.4-01e9d, libghc-haskeline-dev (= 0.7.5.0), libghc-haskeline-dev-0.7.5.0-d1275, libghc-hpc-dev (= 0.6.0.3), libghc-hpc-dev-0.6.0.3-cdc37, libghc-integer-gmp-dev (= 1.0.2.0), libghc-integer-gmp-dev-1.0.2.0-fa0ae, libghc-libiserv-dev (= 8.8.4), libghc-libiserv-dev-8.8.4-9c354, libghc-mtl-dev (= 2.2.2), libghc-mtl-dev-2.2.2-7208c, libghc-parsec-dev-3.1.14.0-b0d22, libghc-parsec3-dev (= 3.1.14.0), libghc-pretty-dev (= 1.1.3.6), libghc-pretty-dev-1.1.3.6-33019, libghc-process-dev (= 1.6.9.0), libghc-process-dev-1.6.9.0-88a89, libghc-rts-dev-1.0-, libghc-stm-dev (= 2.5.0.0), libghc-stm-dev-2.5.0.0-28cfe, libghc-template-haskell-dev (= 2.15.0.0), libghc-template-haskell-dev-2.15.0.0-80f0d, libghc-terminfo-dev (= 0.4.1.4), libghc-terminfo-dev-0.4.1.4-576b2, libghc-text-dev (= 1.2.4.0), libghc-text-dev-1.2.4.0-a7a6e, libghc-time-dev (= 1.9.3), libghc-time-dev-1.9.3-1ee94, libghc-transformers-dev (= 0.5.6.2), libghc-transformers-dev-0.5.6.2-59c2c, libghc-unix-dev (= 2.7.2.2), libghc-unix-dev-2.7.2.2-bb33f, libghc-xhtml-dev (= 3000.2.2.1), libghc-xhtml-dev-3000.2.2.1-771e1
Pre-Depends: dpkg (>= 1.16.1)
Depends: gcc, libgmp-dev, libffi-dev, libbsd-dev, libc6-dev, libncurses5-dev, libc6 (>= 2.34), libffi8 (>= 3.4), libgmp10, libtinfo6 (>= 6)
Suggests: perl, ghc-prof, ghc-doc, haskell-doc, llvm-11
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.1+), 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.4+), libghc-ghc-boot-th-dev (<< 8.8.4+), libghc-ghc-compact-dev (<< 0.1.0.0+), libghc-ghc-heap-dev (<< 8.8.4+), libghc-ghc-prim-dev (<< 0.5.3+), libghc-ghci-dev (<< 8.8.4+), 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.4+), 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.9.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.1+), 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.4+), libghc-ghc-boot-th-dev (<< 8.8.4+), libghc-ghc-compact-dev (<< 0.1.0.0+), libghc-ghc-heap-dev (<< 8.8.4+), libghc-ghc-prim-dev (<< 0.5.3+), libghc-ghci-dev (<< 8.8.4+), 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.4+), 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.9.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.4-2build2_amd64.deb
Size: 81508892
MD5sum: c100f9adadeea17582b7dcce988ebe8e
SHA1: 159fdd1273ddf2e7ccdac350228313f6bce2fbd2
SHA256: 39ae6c8460e8ea77da2d0d494916a8bc9440421f942ecfd9e901ce48e643f39e
SHA512: 64c4ed1734e4d709261197f1748f7ee3e0edae22a51f88fa1b4719c9184accdb9aa4cf89dde0ea2be76e7054065fedaeae39ba644d03c25b94705f26cda7366a
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