How to Install and Uninstall ghc Package on Ubuntu 22.10 (Kinetic Kudu)

Last updated: November 22,2024

1. Install "ghc" package

This guide let you learn how to install ghc on Ubuntu 22.10 (Kinetic Kudu)

$ 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 22.10 (Kinetic Kudu):

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

3. Information about the ghc package on Ubuntu 22.10 (Kinetic Kudu)

Package: ghc
Architecture: amd64
Version: 9.0.2-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: 776026
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-05687, libghc-base-dev (= 4.15.1.0), libghc-base-dev-4.15.1.0-7ed7d, libghc-binary-dev (= 0.8.8.0), libghc-binary-dev-0.8.8.0-24518, libghc-bytestring-dev (= 0.10.12.1), libghc-bytestring-dev-0.10.12.1-2b657, libghc-cabal-dev (= 3.4.1.0), libghc-cabal-dev-3.4.1.0-e2045, libghc-containers-dev (= 0.6.4.1), libghc-containers-dev-0.6.4.1-51a1d, libghc-deepseq-dev (= 1.4.5.0), libghc-deepseq-dev-1.4.5.0-5b6f4, libghc-directory-dev (= 1.3.6.2), libghc-directory-dev-1.3.6.2-c0653, libghc-exceptions-dev (= 0.10.4), libghc-exceptions-dev-0.10.4-56182, libghc-filepath-dev (= 1.4.2.1), libghc-filepath-dev-1.4.2.1-0176a, libghc-ghc-bignum-dev (= 1.1), libghc-ghc-bignum-dev-1.1-dbce3, libghc-ghc-boot-dev (= 9.0.2), libghc-ghc-boot-dev-9.0.2-f7199, libghc-ghc-boot-th-dev (= 9.0.2), libghc-ghc-boot-th-dev-9.0.2-ab22b, libghc-ghc-compact-dev (= 0.1.0.0), libghc-ghc-compact-dev-0.1.0.0-63c35, libghc-ghc-dev-9.0.2-7c255, libghc-ghc-heap-dev (= 9.0.2), libghc-ghc-heap-dev-9.0.2-ce0f6, libghc-ghc-prim-dev (= 0.7.0), libghc-ghc-prim-dev-0.7.0-022d5, libghc-ghci-dev (= 9.0.2), libghc-ghci-dev-9.0.2-406d5, libghc-haskeline-dev (= 0.8.2), libghc-haskeline-dev-0.8.2-2cebf, libghc-hpc-dev (= 0.6.1.0), libghc-hpc-dev-0.6.1.0-ac321, libghc-integer-gmp-dev (= 1.1), libghc-integer-gmp-dev-1.1-7c99e, libghc-libiserv-dev (= 9.0.2), libghc-libiserv-dev-9.0.2-75419, libghc-mtl-dev (= 2.2.2), libghc-mtl-dev-2.2.2-30320, libghc-parsec-dev-3.1.14.0-9f4aa, libghc-parsec3-dev (= 3.1.14.0), libghc-pretty-dev (= 1.1.3.6), libghc-pretty-dev-1.1.3.6-36e42, libghc-process-dev (= 1.6.13.2), libghc-process-dev-1.6.13.2-c4cd2, libghc-rts-dev-1.0.2-, libghc-stm-dev (= 2.5.0.0), libghc-stm-dev-2.5.0.0-4e67a, libghc-template-haskell-dev (= 2.17.0.0), libghc-template-haskell-dev-2.17.0.0-64722, libghc-terminfo-dev (= 0.4.1.5), libghc-terminfo-dev-0.4.1.5-f8330, libghc-text-dev (= 1.2.5.0), libghc-text-dev-1.2.5.0-31fc1, libghc-time-dev (= 1.9.3), libghc-time-dev-1.9.3-5dfdf, libghc-transformers-dev (= 0.5.6.2), libghc-transformers-dev-0.5.6.2-90456, libghc-unix-dev (= 2.7.2.2), libghc-unix-dev-2.7.2.2-0b6f2, libghc-xhtml-dev (= 3000.2.2.1), libghc-xhtml-dev-3000.2.2.1-1b223
Pre-Depends: dpkg (>= 1.16.1)
Depends: gcc, libgmp-dev, libffi-dev, libbsd-dev, libc6-dev, libncurses-dev, libc6 (>= 2.34), libffi8 (>= 3.4), libgmp10 (>= 2:6.2.1+dfsg), libtinfo6 (>= 6)
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+)
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+)
Filename: pool/universe/g/ghc/ghc_9.0.2-3_amd64.deb
Size: 80784160
MD5sum: 08f1ff72572664bd959381f3c0babc12
SHA1: fd6af52641301d7f4743543b341c2847498cb6f1
SHA256: bfe546479e48ea2892298b0692022651f8efaa0d5c9c119ac693b8c177488e14
SHA512: 9c3e81d200b72d2b1a9e6a43557dd762ef5de14253c21ed86cb9908be3fd02e2ad1f60824324b85b2930cc2c87138afd43e72d45fc8bfb4ecf58eacb81f46d71
Homepage: https://haskell.org/ghc/
Description: The Glasgow Haskell Compilation system
Description-md5: d696780bb03e075568c919469ec4c73c