How to Install and Uninstall ghc Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: May 15,2024

1. Install "ghc" package

This guide covers the steps necessary to install ghc on Ubuntu 18.04 LTS (Bionic Beaver)

$ 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 18.04 LTS (Bionic Beaver):

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

3. Information about the ghc package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: ghc
Architecture: amd64
Version: 8.0.2-11
Priority: extra
Section: universe/haskell
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Haskell Group
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 552636
Provides: ghc-dynamic, ghc-ghci, ghc-haddock, haddock, haddock-interface-28, haskell-compiler, libghc-array-dev, libghc-array-dev-0.5.1.1-581e7, libghc-base-dev, libghc-base-dev-4.9.1.0-d28d6, libghc-binary-dev, libghc-binary-dev-0.8.3.0-b46b7, libghc-bytestring-dev, libghc-bytestring-dev-0.10.8.1-45b2c, libghc-cabal-dev, libghc-cabal-dev-1.24.2.0-0898f, libghc-containers-dev, libghc-containers-dev-0.5.7.1-cd211, libghc-deepseq-dev, libghc-deepseq-dev-1.4.2.0-fb727, libghc-directory-dev, libghc-directory-dev-1.3.0.0-41ad6, libghc-filepath-dev, libghc-filepath-dev-1.4.1.1-59c71, libghc-ghc-boot-dev, libghc-ghc-boot-dev-8.0.2-ca776, libghc-ghc-boot-th-dev, libghc-ghc-boot-th-dev-8.0.2-4685b, libghc-ghc-dev-8.0.2-c6afc, libghc-ghc-prim-dev, libghc-ghc-prim-dev-0.5.0.0-a46b8, libghc-ghci-dev, libghc-ghci-dev-8.0.2-03ac0, libghc-haskeline-dev, libghc-haskeline-dev-0.7.3.0-8fa0a, libghc-hoopl-dev, libghc-hoopl-dev-3.10.2.1-113cc, libghc-hpc-dev, libghc-hpc-dev-0.6.0.3-2db73, libghc-integer-gmp-dev, libghc-integer-gmp-dev-1.0.0.1-b34f3, libghc-pretty-dev, libghc-pretty-dev-1.1.3.3-912de, libghc-process-dev, libghc-process-dev-1.4.3.0-996f5, libghc-rts-dev-1.0-, libghc-template-haskell-dev, libghc-template-haskell-dev-2.11.1.0-14f6d, libghc-terminfo-dev, libghc-terminfo-dev-0.4.0.2-274da, libghc-time-dev, libghc-time-dev-1.6.0.1-37aff, libghc-transformers-dev, libghc-transformers-dev-0.5.2.0-1d020, libghc-unix-dev, libghc-unix-dev-2.7.2.1-7c147, libghc-xhtml-dev, libghc-xhtml-dev-3000.2.1-15bd1
Pre-Depends: dpkg (>= 1.16.1)
Depends: gcc, libgmp-dev, libffi-dev, libbsd-dev, libc6-dev, libncurses5-dev, libc6 (>= 2.14), libffi6 (>= 3.0.4), libgmp10, libtinfo5 (>= 6)
Suggests: perl, ghc-prof, ghc-doc, haskell-doc, llvm-3.7
Conflicts: ghc-dynamic (<< 7.8), ghc6 (<< 7), libghc-array-dev, libghc-base-dev, libghc-binary-dev, libghc-bytestring-dev, libghc-cabal-dev (<< 1.24.2.1), libghc-containers-dev, libghc-deepseq-dev, libghc-directory-dev, libghc-filepath-dev, libghc-ghc-boot-dev, libghc-ghc-boot-th-dev, libghc-ghc-prim-dev, libghc-ghci-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)
Replaces: ghc-dynamic (<< 7.8), ghc-haddock (<< 7.10), ghc6 (<< 7)
Filename: pool/universe/g/ghc/ghc_8.0.2-11_amd64.deb
Size: 45324188
MD5sum: b675148e597683b7682cec8cfe890be1
SHA1: c599e96de73620fc8c8a6b1f281c147a8c701aa5
SHA256: 2a32b79ca7ef2adb565f3d4541a4155967e78bce5701a9e88e03e8b176f64b03
Homepage: http://haskell.org/ghc/
Description: The Glasgow Haskell Compilation system
Description-md5: d696780bb03e075568c919469ec4c73c