How to Install and Uninstall ghc Package on Debian 12 (Bookworm)

Last updated: December 23,2024

1. Install "ghc" package

Here is a brief guide to show you how to install ghc on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install ghc

2. Uninstall "ghc" package

This tutorial shows how to uninstall ghc on Debian 12 (Bookworm):

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

3. Information about the ghc package on Debian 12 (Bookworm)

Package: ghc
Version: 9.0.2-4
Installed-Size: 775755
Maintainer: Debian Haskell Group
Architecture: amd64
Replaces: ghc-dynamic (<< 7.8), ghc-haddock (<< 7.10), ghc6 (<< 7), libghc-array-dev (<< 0.5.4.0+), libghc-base-dev (<< 4.15.1.0+), libghc-binary-dev (<< 0.8.8.0+), libghc-bytestring-dev (<< 0.10.12.1+), libghc-cabal-dev (<< 3.4.1.0+), libghc-containers-dev (<< 0.6.4.1+), libghc-deepseq-dev (<< 1.4.5.0+), libghc-directory-dev (<< 1.3.6.2+), libghc-exceptions-dev (<< 0.10.4+), libghc-filepath-dev (<< 1.4.2.1+), libghc-ghc-bignum-dev (<< 1.1+), libghc-ghc-boot-dev (<< 9.0.2+), libghc-ghc-boot-th-dev (<< 9.0.2+), libghc-ghc-compact-dev (<< 0.1.0.0+), libghc-ghc-heap-dev (<< 9.0.2+), libghc-ghc-prim-dev (<< 0.7.0+), libghc-ghci-dev (<< 9.0.2+), libghc-haskeline-dev (<< 0.8.2+), libghc-hpc-dev (<< 0.6.1.0+), libghc-integer-gmp-dev (<< 1.1+), libghc-libiserv-dev (<< 9.0.2+), 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.13.2+), libghc-stm-dev (<< 2.5.0.0+), libghc-template-haskell-dev (<< 2.17.0.0+), libghc-terminfo-dev (<< 0.4.1.5+), libghc-text-dev (<< 1.2.5.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+)
Provides: ghc-dynamic, ghc-ghci, ghc-haddock, haddock, haddock-interface-38, haskell-compiler, libghc-array-dev (= 0.5.4.0), libghc-array-dev-0.5.4.0-0b6fa, libghc-base-dev (= 4.15.1.0), libghc-base-dev-4.15.1.0-6a406, libghc-binary-dev (= 0.8.8.0), libghc-binary-dev-0.8.8.0-507cc, libghc-bytestring-dev (= 0.10.12.1), libghc-bytestring-dev-0.10.12.1-ced9a, libghc-cabal-dev (= 3.4.1.0), libghc-cabal-dev-3.4.1.0-66159, libghc-containers-dev (= 0.6.4.1), libghc-containers-dev-0.6.4.1-31c3b, libghc-deepseq-dev (= 1.4.5.0), libghc-deepseq-dev-1.4.5.0-118cf, libghc-directory-dev (= 1.3.6.2), libghc-directory-dev-1.3.6.2-311c9, libghc-exceptions-dev (= 0.10.4), libghc-exceptions-dev-0.10.4-c14ff, libghc-filepath-dev (= 1.4.2.1), libghc-filepath-dev-1.4.2.1-4459f, libghc-ghc-bignum-dev (= 1.1), libghc-ghc-bignum-dev-1.1-04f6d, libghc-ghc-boot-dev (= 9.0.2), libghc-ghc-boot-dev-9.0.2-ef461, libghc-ghc-boot-th-dev (= 9.0.2), libghc-ghc-boot-th-dev-9.0.2-364be, libghc-ghc-compact-dev (= 0.1.0.0), libghc-ghc-compact-dev-0.1.0.0-7d71d, libghc-ghc-dev-9.0.2-740f7, libghc-ghc-heap-dev (= 9.0.2), libghc-ghc-heap-dev-9.0.2-656ed, libghc-ghc-prim-dev (= 0.7.0), libghc-ghc-prim-dev-0.7.0-65cf5, libghc-ghci-dev (= 9.0.2), libghc-ghci-dev-9.0.2-43332, libghc-haskeline-dev (= 0.8.2), libghc-haskeline-dev-0.8.2-83f75, libghc-hpc-dev (= 0.6.1.0), libghc-hpc-dev-0.6.1.0-f3caa, libghc-integer-gmp-dev (= 1.1), libghc-integer-gmp-dev-1.1-a4c99, libghc-libiserv-dev (= 9.0.2), libghc-libiserv-dev-9.0.2-91adf, libghc-mtl-dev (= 2.2.2), libghc-mtl-dev-2.2.2-e3bae, libghc-parsec-dev-3.1.14.0-377f0, libghc-parsec3-dev (= 3.1.14.0), libghc-pretty-dev (= 1.1.3.6), libghc-pretty-dev-1.1.3.6-b017f, libghc-process-dev (= 1.6.13.2), libghc-process-dev-1.6.13.2-9f25f, libghc-rts-dev-1.0.2-, libghc-stm-dev (= 2.5.0.0), libghc-stm-dev-2.5.0.0-4cba8, libghc-template-haskell-dev (= 2.17.0.0), libghc-template-haskell-dev-2.17.0.0-7274a, libghc-terminfo-dev (= 0.4.1.5), libghc-terminfo-dev-0.4.1.5-83c64, libghc-text-dev (= 1.2.5.0), libghc-text-dev-1.2.5.0-8553e, libghc-time-dev (= 1.9.3), libghc-time-dev-1.9.3-bda76, libghc-transformers-dev (= 0.5.6.2), libghc-transformers-dev-0.5.6.2-fc6f3, libghc-unix-dev (= 2.7.2.2), libghc-unix-dev-2.7.2.2-bdab4, libghc-xhtml-dev (= 3000.2.2.1), libghc-xhtml-dev-3000.2.2.1-d55d6
Depends: gcc, libgmp-dev, libffi-dev, libbsd-dev, libc6-dev, libncurses-dev, libc6 (>= 2.34), libffi8 (>= 3.4), libgmp10 (>= 2:6.2.1+dfsg1), libtinfo6 (>= 6)
Pre-Depends: dpkg (>= 1.16.1)
Suggests: perl, ghc-prof, ghc-doc, haskell-doc, llvm-13
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.15.1.0+), libghc-binary-dev (<< 0.8.8.0+), libghc-bytestring-dev (<< 0.10.12.1+), libghc-cabal-dev (<< 3.4.1.0+), libghc-containers-dev (<< 0.6.4.1+), libghc-deepseq-dev (<< 1.4.5.0+), libghc-directory-dev (<< 1.3.6.2+), libghc-exceptions-dev (<< 0.10.4+), libghc-filepath-dev (<< 1.4.2.1+), libghc-ghc-bignum-dev (<< 1.1+), libghc-ghc-boot-dev (<< 9.0.2+), libghc-ghc-boot-th-dev (<< 9.0.2+), libghc-ghc-compact-dev (<< 0.1.0.0+), libghc-ghc-heap-dev (<< 9.0.2+), libghc-ghc-prim-dev (<< 0.7.0+), libghc-ghci-dev (<< 9.0.2+), libghc-haskeline-dev (<< 0.8.2+), libghc-hpc-dev (<< 0.6.1.0+), libghc-integer-gmp-dev (<< 1.1+), libghc-libiserv-dev (<< 9.0.2+), 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.13.2+), libghc-stm-dev (<< 2.5.0.0+), libghc-template-haskell-dev (<< 2.17.0.0+), libghc-terminfo-dev (<< 0.4.1.5+), libghc-text-dev (<< 1.2.5.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+)
Description: The Glasgow Haskell Compilation system
Description-md5: d696780bb03e075568c919469ec4c73c
Homepage: https://haskell.org/ghc/
Tag: devel::compiler, devel::lang:haskell, role::program, uitoolkit::ncurses
Section: haskell
Priority: optional
Filename: pool/main/g/ghc/ghc_9.0.2-4_amd64.deb
Size: 72736048
MD5sum: 317528538b80e79e879c1001ef146d3f
SHA256: 4de152f68646d51af93424e4a658f717965343f84e9dea79cdb47a72aa0ab57f