How to Install and Uninstall ghc Package on Ubuntu 24.04 LTS (Noble Numbat)

Last updated: May 16,2024

1. Install "ghc" package

This guide let you learn how to install ghc on Ubuntu 24.04 LTS (Noble Numbat)

$ 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 24.04 LTS (Noble Numbat):

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

3. Information about the ghc package on Ubuntu 24.04 LTS (Noble Numbat)

Package: ghc
Architecture: amd64
Version: 9.4.7-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: 667645
Provides: ghc-dynamic, ghc-ghci, ghc-haddock, haddock, haddock-interface-41, haskell-compiler, libghc-array-dev (= 0.5.4.0), libghc-array-dev-0.5.4.0-0952c, libghc-base-dev (= 4.17.2.0), libghc-base-dev-4.17.2.0-68dfe, libghc-binary-dev (= 0.8.9.1), libghc-binary-dev-0.8.9.1-6a9d2, libghc-bytestring-dev (= 0.11.5.2), libghc-bytestring-dev-0.11.5.2-6590e, libghc-cabal-dev (= 3.8.1.0), libghc-cabal-dev-3.8.1.0-8b92f, libghc-cabal-syntax-dev (= 3.8.1.0), libghc-cabal-syntax-dev-3.8.1.0-aa2b2, libghc-containers-dev (= 0.6.7), libghc-containers-dev-0.6.7-a1650, libghc-deepseq-dev (= 1.4.8.0), libghc-deepseq-dev-1.4.8.0-ddf16, libghc-directory-dev (= 1.3.7.1), libghc-directory-dev-1.3.7.1-e5694, libghc-exceptions-dev (= 0.10.5), libghc-exceptions-dev-0.10.5-3dbf4, libghc-filepath-dev (= 1.4.2.2), libghc-filepath-dev-1.4.2.2-290a6, libghc-ghc-bignum-dev (= 1.3), libghc-ghc-bignum-dev-1.3-90d8c, libghc-ghc-boot-dev (= 9.4.7), libghc-ghc-boot-dev-9.4.7-80851, libghc-ghc-boot-th-dev (= 9.4.7), libghc-ghc-boot-th-dev-9.4.7-f73ea, libghc-ghc-compact-dev (= 0.1.0.0), libghc-ghc-compact-dev-0.1.0.0-d6f68, libghc-ghc-dev-9.4.7-ea902, libghc-ghc-heap-dev (= 9.4.7), libghc-ghc-heap-dev-9.4.7-2e49c, libghc-ghc-prim-dev (= 0.9.1), libghc-ghc-prim-dev-0.9.1-ca9fc, libghc-ghci-dev (= 9.4.7), libghc-ghci-dev-9.4.7-8c14f, libghc-haskeline-dev (= 0.8.2), libghc-haskeline-dev-0.8.2-390ba, libghc-hpc-dev (= 0.6.1.0), libghc-hpc-dev-0.6.1.0-26360, libghc-integer-gmp-dev (= 1.1), libghc-integer-gmp-dev-1.1-4ce32, libghc-libiserv-dev (= 9.4.7), libghc-libiserv-dev-9.4.7-2b596, libghc-mtl-dev (= 2.2.2), libghc-mtl-dev-2.2.2-6f39a, libghc-parsec-dev-3.1.16.1-a16ec, libghc-parsec3-dev (= 3.1.16.1), libghc-pretty-dev (= 1.1.3.6), libghc-pretty-dev-1.1.3.6-1aa0a, libghc-process-dev (= 1.6.17.0), libghc-process-dev-1.6.17.0-29e15, libghc-rts-dev-1.0.2-921dc, libghc-stm-dev (= 2.5.1.0), libghc-stm-dev-2.5.1.0-c4a56, libghc-system-cxx-std-lib-dev (= 1.0), libghc-system-cxx-std-lib-dev-1.0-00000, libghc-template-haskell-dev (= 2.19.0.0), libghc-template-haskell-dev-2.19.0.0-a5ee2, libghc-terminfo-dev (= 0.4.1.5), libghc-terminfo-dev-0.4.1.5-712f6, libghc-text-dev (= 2.0.2), libghc-text-dev-2.0.2-0847e, libghc-time-dev (= 1.12.2), libghc-time-dev-1.12.2-491a0, libghc-transformers-dev (= 0.5.6.2), libghc-transformers-dev-0.5.6.2-931c3, libghc-unix-dev (= 2.7.3), libghc-unix-dev-2.7.3-9fc5d, libghc-xhtml-dev (= 3000.2.2.1), libghc-xhtml-dev-3000.2.2.1-27954
Pre-Depends: dpkg (>= 1.16.1)
Depends: gcc, libgmp-dev, libffi-dev, libbsd-dev, libc6-dev, libncurses-dev, libc6 (>= 2.38), libffi8 (>= 3.4), libgmp10 (>= 2:6.3.0+dfsg), libtinfo6 (>= 6)
Suggests: perl, ghc-prof, ghc-doc, llvm-15
Breaks: libghc-array-dev (<< 0.5.4.0+), libghc-base-dev (<< 4.17.2.0+), libghc-binary-dev (<< 0.8.9.1+), libghc-bytestring-dev (<< 0.11.5.2+), libghc-cabal-dev (<< 3.8.1.0+), libghc-cabal-syntax-dev (<< 3.8.1.0+), libghc-containers-dev (<< 0.6.7+), libghc-deepseq-dev (<< 1.4.8.0+), libghc-directory-dev (<< 1.3.7.1+), libghc-exceptions-dev (<< 0.10.5+), libghc-filepath-dev (<< 1.4.2.2+), libghc-ghc-bignum-dev (<< 1.3+), libghc-ghc-boot-dev (<< 9.4.7+), libghc-ghc-boot-th-dev (<< 9.4.7+), libghc-ghc-compact-dev (<< 0.1.0.0+), libghc-ghc-heap-dev (<< 9.4.7+), libghc-ghc-prim-dev (<< 0.9.1+), libghc-ghci-dev (<< 9.4.7+), libghc-haskeline-dev (<< 0.8.2+), libghc-hpc-dev (<< 0.6.1.0+), libghc-integer-gmp-dev (<< 1.1+), libghc-libiserv-dev (<< 9.4.7+), libghc-mtl-dev (<< 2.2.2+), libghc-parsec3-dev (<< 3.1.16.1+), libghc-pretty-dev (<< 1.1.3.6+), libghc-process-dev (<< 1.6.17.0+), libghc-stm-dev (<< 2.5.1.0+), libghc-system-cxx-std-lib-dev (<< 1.0+), libghc-template-haskell-dev (<< 2.19.0.0+), libghc-terminfo-dev (<< 0.4.1.5+), libghc-text-dev (<< 2.0.2+), libghc-time-dev (<< 1.12.2+), libghc-transformers-dev (<< 0.5.6.2+), libghc-unix-dev (<< 2.7.3+), libghc-xhtml-dev (<< 3000.2.2.1+)
Replaces: libghc-array-dev (<< 0.5.4.0+), libghc-base-dev (<< 4.17.2.0+), libghc-binary-dev (<< 0.8.9.1+), libghc-bytestring-dev (<< 0.11.5.2+), libghc-cabal-dev (<< 3.8.1.0+), libghc-cabal-syntax-dev (<< 3.8.1.0+), libghc-containers-dev (<< 0.6.7+), libghc-deepseq-dev (<< 1.4.8.0+), libghc-directory-dev (<< 1.3.7.1+), libghc-exceptions-dev (<< 0.10.5+), libghc-filepath-dev (<< 1.4.2.2+), libghc-ghc-bignum-dev (<< 1.3+), libghc-ghc-boot-dev (<< 9.4.7+), libghc-ghc-boot-th-dev (<< 9.4.7+), libghc-ghc-compact-dev (<< 0.1.0.0+), libghc-ghc-heap-dev (<< 9.4.7+), libghc-ghc-prim-dev (<< 0.9.1+), libghc-ghci-dev (<< 9.4.7+), libghc-haskeline-dev (<< 0.8.2+), libghc-hpc-dev (<< 0.6.1.0+), libghc-integer-gmp-dev (<< 1.1+), libghc-libiserv-dev (<< 9.4.7+), libghc-mtl-dev (<< 2.2.2+), libghc-parsec3-dev (<< 3.1.16.1+), libghc-pretty-dev (<< 1.1.3.6+), libghc-process-dev (<< 1.6.17.0+), libghc-stm-dev (<< 2.5.1.0+), libghc-system-cxx-std-lib-dev (<< 1.0+), libghc-template-haskell-dev (<< 2.19.0.0+), libghc-terminfo-dev (<< 0.4.1.5+), libghc-text-dev (<< 2.0.2+), libghc-time-dev (<< 1.12.2+), libghc-transformers-dev (<< 0.5.6.2+), libghc-unix-dev (<< 2.7.3+), libghc-xhtml-dev (<< 3000.2.2.1+)
Filename: pool/universe/g/ghc/ghc_9.4.7-3_amd64.deb
Size: 78997210
MD5sum: 6c16a8fac3c8bbf37a96354d6f7f5ad3
SHA1: 2a027efd3b91544c78d4aaa0fb5be0874516cbf5
SHA256: 3bc66a6aeeb1ccf116c877b6ebfc551ad39ba9b676d905b48d1881c6c2383b59
SHA512: 85e224d1ae1374fc16176af7259b9a25012d6d6763cddc5b950a5e2259d33f5b3fd20105f1bf5c28ae6cbfbb625d0a89303a7e89b295a034df39b6f7d0aeb935
Homepage: https://haskell.org/ghc/
Description: The Glasgow Haskell Compilation system
Description-md5: 93851f98fb540e0c6b50dea771644cc6