How to Install and Uninstall ghc Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 16,2024

1. Install "ghc" package

Please follow the instructions below to install ghc on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install ghc

2. Uninstall "ghc" package

This tutorial shows how to uninstall ghc on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the ghc package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: ghc
Priority: extra
Section: universe/haskell
Installed-Size: 452406
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Haskell Group
Architecture: amd64
Version: 7.10.3-7
Replaces: ghc-dynamic (<< 7.8), ghc-haddock (<< 7.10), ghc6 (<< 7)
Provides: ghc-dynamic, ghc-ghci, ghc-haddock, haddock, haddock-interface-27, haskell-compiler, libghc-array-dev, libghc-array-dev-0.5.1.0-960bf, libghc-base-dev, libghc-base-dev-4.8.2.0-0d6d1, libghc-bin-package-db-dev, libghc-bin-package-db-dev-0.0.0.0-c2998, libghc-binary-dev, libghc-binary-dev-0.7.5.0-bf6a9, libghc-bytestring-dev, libghc-bytestring-dev-0.10.6.0-9a873, libghc-cabal-dev, libghc-cabal-dev-1.22.5.0-b8080, libghc-containers-dev, libghc-containers-dev-0.5.6.2-59326, libghc-deepseq-dev, libghc-deepseq-dev-1.4.1.1-614b6, libghc-directory-dev, libghc-directory-dev-1.2.2.0-660a7, libghc-filepath-dev, libghc-filepath-dev-1.4.0.0-f97d1, libghc-ghc-dev-7.10.3-62469, libghc-ghc-prim-dev, libghc-ghc-prim-dev-0.4.0.0-6cdc8, libghc-haskeline-dev, libghc-haskeline-dev-0.7.2.1-ee66b, libghc-hoopl-dev, libghc-hoopl-dev-3.10.0.2-e1d2f, libghc-hpc-dev, libghc-hpc-dev-0.6.0.2-a33ee, libghc-integer-gmp-dev, libghc-integer-gmp-dev-1.0.0.0-3c8c4, libghc-pretty-dev, libghc-pretty-dev-1.1.2.0-5cc41, libghc-process-dev, libghc-process-dev-1.2.3.0-a2232, libghc-template-haskell-dev, libghc-template-haskell-dev-2.10.0.0-3c4cb, libghc-terminfo-dev, libghc-terminfo-dev-0.4.0.1-ff5b3, libghc-time-dev, libghc-time-dev-1.5.0.1-1b9a5, libghc-transformers-dev, libghc-transformers-dev-0.4.2.0-81450, libghc-unix-dev, libghc-unix-dev-2.7.1.0-bb54e, libghc-xhtml-dev, libghc-xhtml-dev-3000.2.1-e0059
Depends: gcc, libgmp-dev, libffi-dev, libbsd-dev, libc6-dev, libncurses5-dev, libc6 (>= 2.14), libffi6 (>= 3.0.4), libgmp10, libtinfo5 (>= 6)
Pre-Depends: dpkg (>= 1.16.1)
Suggests: perl, ghc-prof, ghc-doc, haskell-doc, llvm-3.5
Conflicts: ghc-dynamic (<< 7.8), ghc6 (<< 7), libghc-array-dev, libghc-base-dev, libghc-bin-package-db-dev, libghc-binary-dev, libghc-bytestring-dev, libghc-containers-dev, libghc-deepseq-dev, libghc-directory-dev, libghc-filepath-dev, libghc-ghc-prim-dev, libghc-haskeline-dev, libghc-hoopl-dev, libghc-hpc-dev, libghc-integer-gmp-dev, libghc-pretty-dev, libghc-process-dev, libghc-template-haskell-dev, libghc-terminfo-dev, libghc-time-dev, libghc-transformers-dev, libghc-unix-dev, libghc-xhtml-dev
Breaks: cabal-install (<< 1.22), ghc-doc (<< 7.10), ghc-haddock (<< 7.10), haskell-devscripts (<< 0.8.13)
Filename: pool/universe/g/ghc/ghc_7.10.3-7_amd64.deb
Size: 39826118
MD5sum: 56a1aabc91c272472a50c6e984f6ce79
SHA1: 87a5bb73eae6bba8ba20fc8dca3ca956e6f2ad56
SHA256: 68f5daad6177e2563209d6aefaeb181ad56cd2b769c063df04ea411d221e3903
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
Homepage: http://haskell.org/ghc/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu