# ghcup を Homebrew, scoop でインストール

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
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/ghcup>
- **バージョン:** 0.2.6.2
- **ソース概要:** Installer for the general purpose language Haskell
- **ホームページ:** <https://www.haskell.org/ghcup/>
- **リポジトリ:** <https://github.com/haskell/ghcup-hs>
- **上流ドキュメント:** <https://www.haskell.org/ghcup/>
- **ライセンス:** LGPL-3.0-only
- **ソースアーカイブ:** <https://github.com/haskell/ghcup-hs/archive/refs/tags/v0.2.6.2.tar.gz>
- **最終更新:** 2026-07-22T05:47:39Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- ghcup (cli)
- ghcup (エイリアス)

## 依存関係

- gmp

## ビルド依存関係

- cabal-install
- ghc

## macOS 提供ライブラリ

- bzip2
- libffi
- ncurses

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.2.6.2
- マネージャ更新日: 2026-07-22
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/haskell/ghcup-hs
- 情報: No cached GitHub release or tag data was available.
## プロジェクトの歴史と使われ方

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
## ソースデータベース詳細

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

## 他のパッケージマネージャ記録

- 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


## 関連リンク

- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/ja/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [cabal-install](https://pkg.so/ja/brew/cabal-install/) - Build dependency declared by Homebrew.
- [ghc](https://pkg.so/ja/brew/ghc/) - Build dependency declared by Homebrew.
- [swiftly](https://pkg.so/ja/brew/swiftly/) - Shares pkgdb curated category or tags: cli, developer-tools, installer, toolchain, version-manager.
- [juliaup](https://pkg.so/ja/brew/juliaup/) - Shares pkgdb curated category or tags: cli, developer-tools, installer, toolchain, version-manager.
- [xcodes](https://pkg.so/ja/brew/xcodes/) - Shares pkgdb curated category or tags: cli, developer-tools, installer, version-manager.
- [proto](https://pkg.so/ja/brew/proto/) - Shares pkgdb curated category or tags: cli, developer-tools, toolchain, version-manager.
- [zigup](https://pkg.so/ja/brew/zigup/) - Shares pkgdb curated category or tags: cli, developer-tools, toolchain, version-manager.
- [llvm](https://pkg.so/ja/brew/llvm/) - Shares pkgdb curated category or tags: cli, developer-tools, toolchain.
- [rbenv](https://pkg.so/ja/brew/rbenv/) - Shares pkgdb curated category or tags: cli, developer-tools, version-manager.
- [tfenv](https://pkg.so/ja/brew/tfenv/) - Shares pkgdb curated category or tags: cli, developer-tools, version-manager.

## 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
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
