How to Install and Uninstall ghc Package on Ubuntu 22.04 LTS (Jammy Jellyfish)
Last updated: November 07,2024
Notice
You can also install and uninstall the ghc on the following distributions in the same way, as they are all based on the Ubuntu system
- Kubuntu 22.04 LTS
- Lubuntu 22.04 LTS
- Xubuntu 22.04 LTS
- Ubuntu MATE 22.04 LTS
- Ubuntu Studio 22.04 LTS
- Pop!_OS 22.04 LTS
- Zorin OS 16 / Zorin OS 17
- Ubuntu Budgie 22.04
1. Install "ghc" package
In this section, we are going to explain the necessary steps to install ghc on Ubuntu 22.04 LTS (Jammy Jellyfish)
$
sudo apt update
Copied
$
sudo apt install
ghc
Copied
2. Uninstall "ghc" package
This guide covers the steps necessary to uninstall ghc on Ubuntu 22.04 LTS (Jammy Jellyfish):
$
sudo apt remove
ghc
Copied
$
sudo apt autoclean && sudo apt autoremove
Copied
3. Information about the ghc package on Ubuntu 22.04 LTS (Jammy Jellyfish)
Package: ghc
Architecture: amd64
Version: 8.8.4-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: 799863
Provides: ghc-dynamic, ghc-ghci, ghc-haddock, haddock, haddock-interface-35, haskell-compiler, libghc-array-dev (= 0.5.4.0), libghc-array-dev-0.5.4.0-ddbb2, libghc-base-dev (= 4.13.0.0), libghc-base-dev-4.13.0.0-2f220, libghc-binary-dev (= 0.8.7.0), libghc-binary-dev-0.8.7.0-943d8, libghc-bytestring-dev (= 0.10.10.1), libghc-bytestring-dev-0.10.10.1-c40ee, libghc-cabal-dev (= 3.0.1.0), libghc-cabal-dev-3.0.1.0-025b0, libghc-containers-dev (= 0.6.2.1), libghc-containers-dev-0.6.2.1-ab1cf, libghc-deepseq-dev (= 1.4.4.0), libghc-deepseq-dev-1.4.4.0-9f093, libghc-directory-dev (= 1.3.6.0), libghc-directory-dev-1.3.6.0-49fdf, libghc-filepath-dev (= 1.4.2.1), libghc-filepath-dev-1.4.2.1-103b6, libghc-ghc-boot-dev (= 8.8.4), libghc-ghc-boot-dev-8.8.4-d35b3, libghc-ghc-boot-th-dev (= 8.8.4), libghc-ghc-boot-th-dev-8.8.4-54c6a, libghc-ghc-compact-dev (= 0.1.0.0), libghc-ghc-compact-dev-0.1.0.0-9700a, libghc-ghc-dev-8.8.4-bc988, libghc-ghc-heap-dev (= 8.8.4), libghc-ghc-heap-dev-8.8.4-2b5f3, libghc-ghc-prim-dev (= 0.5.3), libghc-ghc-prim-dev-0.5.3-49209, libghc-ghci-dev (= 8.8.4), libghc-ghci-dev-8.8.4-01e9d, libghc-haskeline-dev (= 0.7.5.0), libghc-haskeline-dev-0.7.5.0-d1275, libghc-hpc-dev (= 0.6.0.3), libghc-hpc-dev-0.6.0.3-cdc37, libghc-integer-gmp-dev (= 1.0.2.0), libghc-integer-gmp-dev-1.0.2.0-fa0ae, libghc-libiserv-dev (= 8.8.4), libghc-libiserv-dev-8.8.4-9c354, libghc-mtl-dev (= 2.2.2), libghc-mtl-dev-2.2.2-7208c, libghc-parsec-dev-3.1.14.0-b0d22, libghc-parsec3-dev (= 3.1.14.0), libghc-pretty-dev (= 1.1.3.6), libghc-pretty-dev-1.1.3.6-33019, libghc-process-dev (= 1.6.9.0), libghc-process-dev-1.6.9.0-88a89, libghc-rts-dev-1.0-, libghc-stm-dev (= 2.5.0.0), libghc-stm-dev-2.5.0.0-28cfe, libghc-template-haskell-dev (= 2.15.0.0), libghc-template-haskell-dev-2.15.0.0-80f0d, libghc-terminfo-dev (= 0.4.1.4), libghc-terminfo-dev-0.4.1.4-576b2, libghc-text-dev (= 1.2.4.0), libghc-text-dev-1.2.4.0-a7a6e, libghc-time-dev (= 1.9.3), libghc-time-dev-1.9.3-1ee94, libghc-transformers-dev (= 0.5.6.2), libghc-transformers-dev-0.5.6.2-59c2c, libghc-unix-dev (= 2.7.2.2), libghc-unix-dev-2.7.2.2-bb33f, libghc-xhtml-dev (= 3000.2.2.1), libghc-xhtml-dev-3000.2.2.1-771e1
Pre-Depends: dpkg (>= 1.16.1)
Depends: gcc, libgmp-dev, libffi-dev, libbsd-dev, libc6-dev, libncurses5-dev, libc6 (>= 2.34), libffi8 (>= 3.4), libgmp10, libtinfo6 (>= 6)
Suggests: perl, ghc-prof, ghc-doc, haskell-doc, llvm-11
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.13.0.0+), libghc-binary-dev (<< 0.8.7.0+), libghc-bytestring-dev (<< 0.10.10.1+), libghc-cabal-dev (<< 3.0.1.0+), libghc-containers-dev (<< 0.6.2.1+), libghc-deepseq-dev (<< 1.4.4.0+), libghc-directory-dev (<< 1.3.6.0+), libghc-filepath-dev (<< 1.4.2.1+), libghc-ghc-boot-dev (<< 8.8.4+), libghc-ghc-boot-th-dev (<< 8.8.4+), libghc-ghc-compact-dev (<< 0.1.0.0+), libghc-ghc-heap-dev (<< 8.8.4+), libghc-ghc-prim-dev (<< 0.5.3+), libghc-ghci-dev (<< 8.8.4+), libghc-haskeline-dev (<< 0.7.5.0+), libghc-hpc-dev (<< 0.6.0.3+), libghc-integer-gmp-dev (<< 1.0.2.0+), libghc-libiserv-dev (<< 8.8.4+), 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.9.0+), libghc-stm-dev (<< 2.5.0.0+), libghc-template-haskell-dev (<< 2.15.0.0+), libghc-terminfo-dev (<< 0.4.1.4+), libghc-text-dev (<< 1.2.4.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.13.0.0+), libghc-binary-dev (<< 0.8.7.0+), libghc-bytestring-dev (<< 0.10.10.1+), libghc-cabal-dev (<< 3.0.1.0+), libghc-containers-dev (<< 0.6.2.1+), libghc-deepseq-dev (<< 1.4.4.0+), libghc-directory-dev (<< 1.3.6.0+), libghc-filepath-dev (<< 1.4.2.1+), libghc-ghc-boot-dev (<< 8.8.4+), libghc-ghc-boot-th-dev (<< 8.8.4+), libghc-ghc-compact-dev (<< 0.1.0.0+), libghc-ghc-heap-dev (<< 8.8.4+), libghc-ghc-prim-dev (<< 0.5.3+), libghc-ghci-dev (<< 8.8.4+), libghc-haskeline-dev (<< 0.7.5.0+), libghc-hpc-dev (<< 0.6.0.3+), libghc-integer-gmp-dev (<< 1.0.2.0+), libghc-libiserv-dev (<< 8.8.4+), 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.9.0+), libghc-stm-dev (<< 2.5.0.0+), libghc-template-haskell-dev (<< 2.15.0.0+), libghc-terminfo-dev (<< 0.4.1.4+), libghc-text-dev (<< 1.2.4.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_8.8.4-3_amd64.deb
Size: 81419818
MD5sum: 15de5cde4430d6e885aadb14c94d9541
SHA1: c47541bf4246e2aae04edd2a2cea9a0443075565
SHA256: c550d7b136cce6372fcc89af211c78b77a9a99699aeab1b619244249e4e4709e
SHA512: fb0c0ceff3211cd69896da25b360b50afb46efaba57e74e6507aa1eb1500493d6f5b119dc542f6936ddada5ab83882a816a35a1d7ff1985d0decbfdafd48aad5
Homepage: https://haskell.org/ghc/
Description: The Glasgow Haskell Compilation system
Description-md5: d696780bb03e075568c919469ec4c73c
Architecture: amd64
Version: 8.8.4-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: 799863
Provides: ghc-dynamic, ghc-ghci, ghc-haddock, haddock, haddock-interface-35, haskell-compiler, libghc-array-dev (= 0.5.4.0), libghc-array-dev-0.5.4.0-ddbb2, libghc-base-dev (= 4.13.0.0), libghc-base-dev-4.13.0.0-2f220, libghc-binary-dev (= 0.8.7.0), libghc-binary-dev-0.8.7.0-943d8, libghc-bytestring-dev (= 0.10.10.1), libghc-bytestring-dev-0.10.10.1-c40ee, libghc-cabal-dev (= 3.0.1.0), libghc-cabal-dev-3.0.1.0-025b0, libghc-containers-dev (= 0.6.2.1), libghc-containers-dev-0.6.2.1-ab1cf, libghc-deepseq-dev (= 1.4.4.0), libghc-deepseq-dev-1.4.4.0-9f093, libghc-directory-dev (= 1.3.6.0), libghc-directory-dev-1.3.6.0-49fdf, libghc-filepath-dev (= 1.4.2.1), libghc-filepath-dev-1.4.2.1-103b6, libghc-ghc-boot-dev (= 8.8.4), libghc-ghc-boot-dev-8.8.4-d35b3, libghc-ghc-boot-th-dev (= 8.8.4), libghc-ghc-boot-th-dev-8.8.4-54c6a, libghc-ghc-compact-dev (= 0.1.0.0), libghc-ghc-compact-dev-0.1.0.0-9700a, libghc-ghc-dev-8.8.4-bc988, libghc-ghc-heap-dev (= 8.8.4), libghc-ghc-heap-dev-8.8.4-2b5f3, libghc-ghc-prim-dev (= 0.5.3), libghc-ghc-prim-dev-0.5.3-49209, libghc-ghci-dev (= 8.8.4), libghc-ghci-dev-8.8.4-01e9d, libghc-haskeline-dev (= 0.7.5.0), libghc-haskeline-dev-0.7.5.0-d1275, libghc-hpc-dev (= 0.6.0.3), libghc-hpc-dev-0.6.0.3-cdc37, libghc-integer-gmp-dev (= 1.0.2.0), libghc-integer-gmp-dev-1.0.2.0-fa0ae, libghc-libiserv-dev (= 8.8.4), libghc-libiserv-dev-8.8.4-9c354, libghc-mtl-dev (= 2.2.2), libghc-mtl-dev-2.2.2-7208c, libghc-parsec-dev-3.1.14.0-b0d22, libghc-parsec3-dev (= 3.1.14.0), libghc-pretty-dev (= 1.1.3.6), libghc-pretty-dev-1.1.3.6-33019, libghc-process-dev (= 1.6.9.0), libghc-process-dev-1.6.9.0-88a89, libghc-rts-dev-1.0-, libghc-stm-dev (= 2.5.0.0), libghc-stm-dev-2.5.0.0-28cfe, libghc-template-haskell-dev (= 2.15.0.0), libghc-template-haskell-dev-2.15.0.0-80f0d, libghc-terminfo-dev (= 0.4.1.4), libghc-terminfo-dev-0.4.1.4-576b2, libghc-text-dev (= 1.2.4.0), libghc-text-dev-1.2.4.0-a7a6e, libghc-time-dev (= 1.9.3), libghc-time-dev-1.9.3-1ee94, libghc-transformers-dev (= 0.5.6.2), libghc-transformers-dev-0.5.6.2-59c2c, libghc-unix-dev (= 2.7.2.2), libghc-unix-dev-2.7.2.2-bb33f, libghc-xhtml-dev (= 3000.2.2.1), libghc-xhtml-dev-3000.2.2.1-771e1
Pre-Depends: dpkg (>= 1.16.1)
Depends: gcc, libgmp-dev, libffi-dev, libbsd-dev, libc6-dev, libncurses5-dev, libc6 (>= 2.34), libffi8 (>= 3.4), libgmp10, libtinfo6 (>= 6)
Suggests: perl, ghc-prof, ghc-doc, haskell-doc, llvm-11
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.13.0.0+), libghc-binary-dev (<< 0.8.7.0+), libghc-bytestring-dev (<< 0.10.10.1+), libghc-cabal-dev (<< 3.0.1.0+), libghc-containers-dev (<< 0.6.2.1+), libghc-deepseq-dev (<< 1.4.4.0+), libghc-directory-dev (<< 1.3.6.0+), libghc-filepath-dev (<< 1.4.2.1+), libghc-ghc-boot-dev (<< 8.8.4+), libghc-ghc-boot-th-dev (<< 8.8.4+), libghc-ghc-compact-dev (<< 0.1.0.0+), libghc-ghc-heap-dev (<< 8.8.4+), libghc-ghc-prim-dev (<< 0.5.3+), libghc-ghci-dev (<< 8.8.4+), libghc-haskeline-dev (<< 0.7.5.0+), libghc-hpc-dev (<< 0.6.0.3+), libghc-integer-gmp-dev (<< 1.0.2.0+), libghc-libiserv-dev (<< 8.8.4+), 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.9.0+), libghc-stm-dev (<< 2.5.0.0+), libghc-template-haskell-dev (<< 2.15.0.0+), libghc-terminfo-dev (<< 0.4.1.4+), libghc-text-dev (<< 1.2.4.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.13.0.0+), libghc-binary-dev (<< 0.8.7.0+), libghc-bytestring-dev (<< 0.10.10.1+), libghc-cabal-dev (<< 3.0.1.0+), libghc-containers-dev (<< 0.6.2.1+), libghc-deepseq-dev (<< 1.4.4.0+), libghc-directory-dev (<< 1.3.6.0+), libghc-filepath-dev (<< 1.4.2.1+), libghc-ghc-boot-dev (<< 8.8.4+), libghc-ghc-boot-th-dev (<< 8.8.4+), libghc-ghc-compact-dev (<< 0.1.0.0+), libghc-ghc-heap-dev (<< 8.8.4+), libghc-ghc-prim-dev (<< 0.5.3+), libghc-ghci-dev (<< 8.8.4+), libghc-haskeline-dev (<< 0.7.5.0+), libghc-hpc-dev (<< 0.6.0.3+), libghc-integer-gmp-dev (<< 1.0.2.0+), libghc-libiserv-dev (<< 8.8.4+), 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.9.0+), libghc-stm-dev (<< 2.5.0.0+), libghc-template-haskell-dev (<< 2.15.0.0+), libghc-terminfo-dev (<< 0.4.1.4+), libghc-text-dev (<< 1.2.4.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_8.8.4-3_amd64.deb
Size: 81419818
MD5sum: 15de5cde4430d6e885aadb14c94d9541
SHA1: c47541bf4246e2aae04edd2a2cea9a0443075565
SHA256: c550d7b136cce6372fcc89af211c78b77a9a99699aeab1b619244249e4e4709e
SHA512: fb0c0ceff3211cd69896da25b360b50afb46efaba57e74e6507aa1eb1500493d6f5b119dc542f6936ddada5ab83882a816a35a1d7ff1985d0decbfdafd48aad5
Homepage: https://haskell.org/ghc/
Description: The Glasgow Haskell Compilation system
Description-md5: d696780bb03e075568c919469ec4c73c