# 使用 Homebrew, scoop 安装 ghcup

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

## 安装

```sh
sudo av install brew:ghcup
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ghcup
```

  证据: local Homebrew formula metadata

### Windows

- Scoop (92%):

```sh
scoop install main/ghcup
```

  证据: Scoop official bucket manifest trees: bucket/ghcup.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:ghcup
- **软件包管理器:** Homebrew
- **版本:** 0.2.6.2
- **来源摘要:** Installer for the general purpose language Haskell
- **主页:** <https://www.haskell.org/ghcup/>
- **仓库:** <https://github.com/haskell/ghcup-hs>
- **最后更新:** 2026-07-22T05:47:39Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ghcup (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.2.6.2
## 项目历史与用法

GHCup is the Haskell toolchain installer used to install and switch versions of GHC and related tools such as Cabal, Haskell Language Server, and Stack.

### 项目历史

The ghcup-hs repository describes GHCup as the main installer for the Haskell language. Hackage describes the Haskell implementation as a rewrite of an earlier shell-script ghcup, and the repository release history shows a 0.1.0-pre release in 2020 followed by Hackage publication in 2021.

### 采用历史

GHCup gained ecosystem significance because it solved a practical bootstrapping problem: Haskell users often need specific compiler and tool versions for each project. By living under haskell.org documentation and the haskell GitHub organization, it became a central installation path for the Haskell toolchain rather than a distro-specific add-on.

### 使用方式

Practitioners use ghcup to install, list, set, remove, and compile toolchain versions. Its guide and changelog show growth beyond basic installation into a TUI, metadata-driven installation, release channels, tool revisions, health checks, and support for editor workflows that depend on Haskell Language Server.

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

For package maintainers and compiler testers, GHCup matters because it turns compiler version juggling into a reproducible user-level operation. It also exposes metadata and separate companion repositories for metadata, web documentation, Docker images, and GitHub Actions setup.

### 时间线

- 2020: ghcup-hs was created on GitHub and 0.1.0-pre was released.
- 2021: ghcup 0.1.14.1 was uploaded to Hackage.
- 2023: ghcup 0.1.20.0 added Windows TUI support and Stack metadata support.
- 2026: ghcup 0.2.1.0 introduced the installer DSL and revision support.

### Related projects

- The ghcup-hs README points to ghcup-metadata, ghcup-www, ghcup-docker, and ghcup-setup as companion projects.

### 来源

- <https://github.com/haskell/ghcup-hs>
- <https://github.com/haskell/ghcup-hs/releases/tag/0.1.0-pre>
- <https://hackage.haskell.org/package/ghcup>
- <https://hackage.haskell.org/package/ghcup-0.1.14.1>
- <https://www.haskell.org/ghcup/>
- <https://www.haskell.org/ghcup/guide/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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: ~/.ghcup/config.yaml
## 其他软件包管理器记录

- Scoop - main/ghcup: normalized package name match | Scoop official bucket manifest trees: bucket/ghcup.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/ghcup.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ghcup.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
