# Install ghc@9.6 with Homebrew, dnf, apk, chocolatey, apt, MacPorts, Nix, pacman, zypper

Glorious Glasgow Haskell Compilation System. Version 9.6.7 via Homebrew; verified 2026-06-25.

## Install

```sh
sudo av install brew:ghc@9.6
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install ghc@9.6
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ghc
```

  Evidence: MacPorts ports tree: lang/ghc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- dnf (92%):

```sh
sudo dnf install ghc9.6
```

  Evidence: Fedora Rawhide package metadata: ghc9.6 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- apk (92%):

```sh
sudo apk add ghc
```

  Evidence: Alpine Linux edge package indexes: ghc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install ghc
```

  Evidence: Debian stable package indexes: ghc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#ghc
```

  Evidence: nixpkgs package indexes: ghc from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S ghc
```

  Evidence: Arch Linux sync databases: ghc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install ghc
```

  Evidence: openSUSE Tumbleweed package metadata: ghc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install ghc
```

  Evidence: Chocolatey community package catalog: ghc from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','gawk'

## Package facts

- **Package key:** brew:ghc@9.6
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/ghc@9.6>
- **Version:** 9.6.7
- **Source summary:** Glorious Glasgow Haskell Compilation System
- **Homepage:** <https://haskell.org/ghc/>
- **Repository:** <https://gitlab.haskell.org/ghc/ghc>
- **Upstream docs:** <https://downloads.haskell.org/ghc/9.6.7/docs/users_guide/ghci.html>
- **License:** BSD-3-Clause AND MIT AND (LGPL-3.0-or-later OR GPL-2.0-or-later)
- **Source archive:** <https://downloads.haskell.org/~ghc/9.6.7/ghc-9.6.7-src.tar.xz>
- **Last updated:** 2026-06-25T13:37:43+02:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- ghc-9.6.7 (cli)
- ghc-pkg-9.6.7 (cli)
- ghci-9.6.7 (cli)
- haddock-ghc-9.6.7 (cli)
- hp2ps-ghc-9.6.7 (cli)
- hpc-ghc-9.6.7 (cli)
- hsc2hs-ghc-9.6.7 (cli)
- runghc-9.6.7 (cli)
- runhaskell-9.6.7 (cli)
- ghc-9.6.7 (alias)
- ghc-pkg-9.6.7 (alias)
- ghci-9.6.7 (alias)
- haddock-ghc-9.6.7 (alias)
- hp2ps-ghc-9.6.7 (alias)
- hpc-ghc-9.6.7 (alias)
- hsc2hs-ghc-9.6.7 (alias)
- runghc-9.6.7 (alias)
- runhaskell-9.6.7 (alias)

## Build dependencies

- autoconf
- automake
- python@3.14
- sphinx-doc

## Uses from macOS

- ncurses

## Install behavior

- Post-install hook: defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 9.6.7
- Package-manager updated: 2026-06-25
- Local data: ok
- Upstream repository: https://haskell.org/ghc/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

The Homebrew `ghc@9.6` formula packages the GHC 9.6 branch of the Glasgow Haskell Compiler. It is a version-track compiler package for projects that need the 9.6 generation of GHC, GHCi, boot libraries, package tools, and Haddock.

### Project history

GHC began at the University of Glasgow near the beginning of the 1990s as an academic research project funded by the UK government. Over time it became the practical compiler and interactive environment that shaped Haskell implementation work, compiler research, and day-to-day package development.

The GHC 9.6 branch follows the stable-branch scheme documented by the user guide, with even-numbered minor branches and patchlevel bug-fix releases. The branch's documentation includes GHCi configuration files such as `$XDG_CONFIG_HOME/ghc/ghci.conf`, `~/.ghc/ghci.conf`, and local `.ghci` files.

### Adoption history

GHC's adoption rests on its central place in the Haskell ecosystem: the official site points to Hackage libraries and common tooling such as Haskell Language Server, Cabal, Stack, and GHCup. A versioned formula such as `ghc@9.6` lets maintainers keep older project and CI environments aligned with that compiler branch.

Homebrew exposes `ghc@9.6` separately from the general `ghc` formula. That matters for users who need a branch that matches package bounds, generated interface files, or a build matrix rather than whichever compiler branch the unversioned formula installs.

### How it is used

Practitioners use `ghc@9.6` to compile and test projects that target GHC 9.6. The package includes 9.6-suffixed executable names for the compiler, GHCi, package database tool, Haddock, profiling helpers, and script runners, allowing scripts to invoke the branch explicitly.

Interactive users rely on GHCi for fast edit-and-test loops, custom prompt behavior, imports, and local `.ghci` setup. Build tools generally call the compiler underneath, but package maintainers still inspect GHCi, `ghc-pkg`, profiling output, and Haddock output when diagnosing branch-specific issues.

### Why package nerds care

The formula captures an older stable compiler branch as a package-manager object. That is useful because Haskell package compatibility is often branch-sensitive: boot libraries, warnings, extensions, optimisation behavior, and ABI details can all influence whether a package builds cleanly.

### Timeline

- Early 1990s: GHC began as a Glasgow research project.
- 2007: The user guide documented GHC's even-numbered stable-branch versioning policy starting with GHC 6.8.
- 2023: GHC 9.6.1 was released as the first listed 9.6 release on the GHC download page.
- 2026 batch input: The Homebrew package record listed 9.6.7-suffixed executables.

### Related projects

- Cabal and Stack use GHC as the compiler backend for package builds.
- Hackage package bounds make branch-specific GHC installation useful for maintainers.
- GHCup is another official installer path for selecting GHC versions.

### Sources

- <https://downloads.haskell.org/ghc/9.6.7/docs/users_guide/ghci.html>
- <https://downloads.haskell.org/ghc/9.6.7/docs/users_guide/intro.html>
- <https://formulae.brew.sh/formula/ghc@9.6>
- <https://gitlab.haskell.org/ghc/ghc>
- <https://www.aosabook.org/en/v2/ghc.html>
- <https://www.haskell.org/ghc/>
- <https://www.haskell.org/ghc/download_ghc_9_6_1.html>


## Security Notes

No matching local secret-handling manifest was found for ghc@9.6. Nucleus package metadata is still published here so future coverage has a stable package URL.



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: $XDG_CONFIG_HOME/ghc/ghci.conf, ~/.ghc/ghci.conf, ./.ghci
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ghc@9.6
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** yes
- **URL Keys:** stable

## Other Package-Manager Records

- dnf - ghc9.6 - 9.6.7-26.fc44: package manager index match | Fedora Rawhide package metadata: ghc9.6 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Glasgow Haskell Compiler | https://haskell.org/ghc/
- dnf - ghc9.6-Cabal - 3.10.3.0-26.fc44: package manager index match | Fedora Rawhide package metadata: ghc9.6-Cabal from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell Cabal library | https://hackage.haskell.org/package/Cabal
- dnf - ghc9.6-Cabal-devel - 3.10.3.0-26.fc44: package manager index match | Fedora Rawhide package metadata: ghc9.6-Cabal-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell Cabal library development files | https://haskell.org/ghc/
- dnf - ghc9.6-Cabal-doc - 3.10.3.0-26.fc44: package manager index match | Fedora Rawhide package metadata: ghc9.6-Cabal-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell Cabal library documentation | https://haskell.org/ghc/
- dnf - ghc9.6-Cabal-prof - 3.10.3.0-26.fc44: package manager index match | Fedora Rawhide package metadata: ghc9.6-Cabal-prof from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell Cabal profiling library | https://haskell.org/ghc/
- dnf - ghc9.6-Cabal-syntax - 3.10.3.0-26.fc44: package manager index match | Fedora Rawhide package metadata: ghc9.6-Cabal-syntax from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell Cabal-syntax library | https://hackage.haskell.org/package/Cabal-syntax
- dnf - ghc9.6-Cabal-syntax-devel - 3.10.3.0-26.fc44: package manager index match | Fedora Rawhide package metadata: ghc9.6-Cabal-syntax-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell Cabal-syntax library development files | https://haskell.org/ghc/
- dnf - ghc9.6-Cabal-syntax-doc - 3.10.3.0-26.fc44: package manager index match | Fedora Rawhide package metadata: ghc9.6-Cabal-syntax-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell Cabal-syntax library documentation | https://haskell.org/ghc/
- dnf - ghc9.6-Cabal-syntax-prof - 3.10.3.0-26.fc44: package manager index match | Fedora Rawhide package metadata: ghc9.6-Cabal-syntax-prof from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell Cabal-syntax profiling library | https://haskell.org/ghc/
- dnf - ghc9.6-array - 0.5.8.0-26.fc44: package manager index match | Fedora Rawhide package metadata: ghc9.6-array from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell array library | https://hackage.haskell.org/package/array
- dnf - ghc9.6-array-devel - 0.5.8.0-26.fc44: package manager index match | Fedora Rawhide package metadata: ghc9.6-array-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell array library development files | https://haskell.org/ghc/
- dnf - ghc9.6-array-doc - 0.5.8.0-26.fc44: package manager index match | Fedora Rawhide package metadata: ghc9.6-array-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell array library documentation | https://haskell.org/ghc/
- dnf - ghc9.6-array-prof - 0.5.8.0-26.fc44: package manager index match | Fedora Rawhide package metadata: ghc9.6-array-prof from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell array profiling library | https://haskell.org/ghc/
- dnf - ghc9.6-base - 4.18.3.0-26.fc44: package manager index match | Fedora Rawhide package metadata: ghc9.6-base from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell base library | https://hackage.haskell.org/package/base
- dnf - ghc9.6-base-devel - 4.18.3.0-26.fc44: package manager index match | Fedora Rawhide package metadata: ghc9.6-base-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell base library development files | https://haskell.org/ghc/
- dnf - ghc9.6-base-doc - 4.18.3.0-26.fc44: package manager index match | Fedora Rawhide package metadata: ghc9.6-base-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Haskell base library documentation | https://haskell.org/ghc/


## Related links

- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched curated package taxonomy and local package facts.
- [autoconf](https://www.automicvault.com/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Build dependency declared by Homebrew.
- [sphinx-doc](https://www.automicvault.com/pkg/brew/sphinx-doc/) - Build dependency declared by Homebrew.
- [ghc](https://www.automicvault.com/pkg/brew/ghc/) - Package name indicates the same formula family.
- [ghc@9.10](https://www.automicvault.com/pkg/brew/ghc-9-10/) - Package name indicates the same formula family.
- [ghc@9.12](https://www.automicvault.com/pkg/brew/ghc-9-12/) - Package name indicates the same formula family.
- [ghc@9.8](https://www.automicvault.com/pkg/brew/ghc-9-8/) - Package name indicates the same formula family.

## Combined YAML source

View the package source record on GitHub. [combined/ghc@9.6.yml](https://github.com/automic-vault/db/blob/main/combined/ghc@9.6.yml)


## Sources

- Nucleus package database
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
