Automic VaultAutomic Vault

brew

使用 Homebrew, dnf, apk, chocolatey, apt, MacPorts, Nix, pacman, zypper 安装 ghc@9.6

查看 ghc@9.6 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install ghc@9.6

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install ghc

MacPorts ports tree · lang/ghc/Portfile · 来源: api.github.com

Linux

Fedora dnf已验证 · 92%
sudo dnf install ghc9.6

Fedora Rawhide package metadata · ghc9.6 · 来源: dl.fedoraproject.org

Alpine Linux apk已验证 · 92%
sudo apk add ghc

Alpine Linux edge package indexes · ghc · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install ghc

Debian stable package indexes · ghc · 来源: deb.debian.org

Nix已验证 · 92%
nix profile install nixpkgs#ghc

nixpkgs package indexes · ghc · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S ghc

Arch Linux sync databases · ghc · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install ghc

openSUSE Tumbleweed package metadata · ghc · 来源: download.opensuse.org

概览

软件包摘要

Glorious Glasgow Haskell Compilation System

命令和别名

  • ghc-9.6.7
  • ghc-pkg-9.6.7
  • ghci-9.6.7
  • haddock-ghc-9.6.7
  • hp2ps-ghc-9.6.7
  • hpc-ghc-9.6.7
  • hsc2hs-ghc-9.6.7
  • runghc-9.6.7
  • runhaskell-9.6.7

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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.

安全态势

尚未找到受保护工具覆盖

没有找到 ghc@9.6 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • Homebrew 为此 formula 声明了 post-install 钩子。
  • Homebrew bottle 元数据适用于 8 个平台目标。
  • 构建元数据列出 4 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
$XDG_CONFIG_HOME/ghc/ghci.conf~/.ghc/ghci.conf./.ghci

可执行文件

已安装的可执行文件

命令类型暴露范围备注
ghc-9.6.7cli全局可执行文件
ghc-pkg-9.6.7cli全局可执行文件
ghci-9.6.7cli全局可执行文件
haddock-ghc-9.6.7cli全局可执行文件
hp2ps-ghc-9.6.7cli全局可执行文件
hpc-ghc-9.6.7cli全局可执行文件
hsc2hs-ghc-9.6.7cli全局可执行文件
runghc-9.6.7cli全局可执行文件
runhaskell-9.6.7cli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本9.6.7
管理器更新时间2026-06-25
本地数据OK
上游not checked
检测到的最新版本未检测到

https://haskell.org/ghc/

安装元数据

软件包元数据

软件包键brew:ghc@9.6
版本9.6.7
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/ghc@9.6
主页https://haskell.org/ghc/
仓库https://gitlab.haskell.org/ghc/ghc
上游文档https://downloads.haskell.org/ghc/9.6.7/docs/users_guide/ghci.html
许可证BSD-3-Clause AND MIT AND (LGPL-3.0-or-later OR GPL-2.0-or-later)
源码归档https://downloads.haskell.org/~ghc/9.6.7/ghc-9.6.7-src.tar.xz
最后更新2026-06-25T13:37:43+02:00
Pulseupdated
构建依赖autoconf, automake, python@3.14, sphinx-doc
macOS 提供的库ncurses
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-install已定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameghc@9.6
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedyes
Disabledno
Keg Onlyyes
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

dnf92%

ghc9.6 9.6.7-26.fc44

Glasgow Haskell Compiler

https://haskell.org/ghc/

sudo dnf install ghc9.6
  • License: BSD-3-Clause AND HaskellReport
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: ghc9.6
  • 9 依赖
  • 1 提供
  • package manager index match
  • 匹配方式:Ghc9 6
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
dnf92%

ghc9.6-Cabal 3.10.3.0-26.fc44

Haskell Cabal library

https://hackage.haskell.org/package/Cabal

sudo dnf install ghc9.6-Cabal
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: i686
  • Source Package: ghc9.6
  • 27 依赖
  • 2 提供
  • package manager index match
  • 匹配方式:Ghc9 6
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
dnf92%

ghc9.6-Cabal-devel 3.10.3.0-26.fc44

Haskell Cabal library development files

https://haskell.org/ghc/

sudo dnf install ghc9.6-Cabal-devel
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: i686
  • Source Package: ghc9.6
  • 3 依赖
  • 3 提供
  • package manager index match
  • 匹配方式:Ghc9 6
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
dnf92%

ghc9.6-Cabal-doc 3.10.3.0-26.fc44

Haskell Cabal library documentation

https://haskell.org/ghc/

sudo dnf install ghc9.6-Cabal-doc
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: ghc9.6
  • 1 依赖
  • 1 提供
  • package manager index match
  • 匹配方式:Ghc9 6
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
dnf92%

ghc9.6-Cabal-prof 3.10.3.0-26.fc44

Haskell Cabal profiling library

https://haskell.org/ghc/

sudo dnf install ghc9.6-Cabal-prof
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: ghc9.6
  • 2 依赖
  • 2 提供
  • package manager index match
  • 匹配方式:Ghc9 6
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
dnf92%

ghc9.6-Cabal-syntax 3.10.3.0-26.fc44

Haskell Cabal-syntax library

https://hackage.haskell.org/package/Cabal-syntax

sudo dnf install ghc9.6-Cabal-syntax
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: i686
  • Source Package: ghc9.6
  • 25 依赖
  • 2 提供
  • package manager index match
  • 匹配方式:Ghc9 6
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
dnf92%

ghc9.6-Cabal-syntax-devel 3.10.3.0-26.fc44

Haskell Cabal-syntax library development files

https://haskell.org/ghc/

sudo dnf install ghc9.6-Cabal-syntax-devel
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: i686
  • Source Package: ghc9.6
  • 3 依赖
  • 3 提供
  • package manager index match
  • 匹配方式:Ghc9 6
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
dnf92%

ghc9.6-Cabal-syntax-doc 3.10.3.0-26.fc44

Haskell Cabal-syntax library documentation

https://haskell.org/ghc/

sudo dnf install ghc9.6-Cabal-syntax-doc
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: ghc9.6
  • 1 依赖
  • 1 提供
  • package manager index match
  • 匹配方式:Ghc9 6
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
dnf92%

ghc9.6-Cabal-syntax-prof 3.10.3.0-26.fc44

Haskell Cabal-syntax profiling library

https://haskell.org/ghc/

sudo dnf install ghc9.6-Cabal-syntax-prof
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: ghc9.6
  • 2 依赖
  • 2 提供
  • package manager index match
  • 匹配方式:Ghc9 6
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
dnf92%

ghc9.6-array 0.5.8.0-26.fc44

Haskell array library

https://hackage.haskell.org/package/array

sudo dnf install ghc9.6-array
  • License: BSD-3-Clause AND HaskellReport
  • Category: Unspecified
  • Architecture: i686
  • Source Package: ghc9.6
  • 7 依赖
  • 2 提供
  • package manager index match
  • 匹配方式:Ghc9 6
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
dnf92%

ghc9.6-array-devel 0.5.8.0-26.fc44

Haskell array library development files

https://haskell.org/ghc/

sudo dnf install ghc9.6-array-devel
  • License: BSD-3-Clause AND HaskellReport
  • Category: Unspecified
  • Architecture: i686
  • Source Package: ghc9.6
  • 3 依赖
  • 3 提供
  • package manager index match
  • 匹配方式:Ghc9 6
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
dnf92%

ghc9.6-array-doc 0.5.8.0-26.fc44

Haskell array library documentation

https://haskell.org/ghc/

sudo dnf install ghc9.6-array-doc
  • License: BSD-3-Clause AND HaskellReport
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: ghc9.6
  • 1 依赖
  • 1 提供
  • package manager index match
  • 匹配方式:Ghc9 6
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
dnf92%

ghc9.6-array-prof 0.5.8.0-26.fc44

Haskell array profiling library

https://haskell.org/ghc/

sudo dnf install ghc9.6-array-prof
  • License: BSD-3-Clause AND HaskellReport
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: ghc9.6
  • 2 依赖
  • 2 提供
  • package manager index match
  • 匹配方式:Ghc9 6
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
dnf92%

ghc9.6-base 4.18.3.0-26.fc44

Haskell base library

https://hackage.haskell.org/package/base

sudo dnf install ghc9.6-base
  • License: BSD-3-Clause AND HaskellReport
  • Category: Unspecified
  • Architecture: i686
  • Source Package: ghc9.6
  • 7 依赖
  • 8 提供
  • package manager index match
  • 匹配方式:Ghc9 6
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
dnf92%

ghc9.6-base-devel 4.18.3.0-26.fc44

Haskell base library development files

https://haskell.org/ghc/

sudo dnf install ghc9.6-base-devel
  • License: BSD-3-Clause AND HaskellReport
  • Category: Unspecified
  • Architecture: i686
  • Source Package: ghc9.6
  • 5 依赖
  • 3 提供
  • package manager index match
  • 匹配方式:Ghc9 6
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
dnf92%

ghc9.6-base-doc 4.18.3.0-26.fc44

Haskell base library documentation

https://haskell.org/ghc/

sudo dnf install ghc9.6-base-doc
  • License: BSD-3-Clause AND HaskellReport
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: ghc9.6
  • 1 依赖
  • 1 提供
  • package manager index match
  • 匹配方式:Ghc9 6
Fedora Rawhide package metadata · dl.fedoraproject.org · 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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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