# ghq を Homebrew, apk, MacPorts, Nix, pacman, scoop, winget でインストール

ghq のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:ghq
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install ghq
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ghq
```

  証拠: MacPorts ports tree: sysutils/ghq/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add ghq
```

  証拠: Alpine Linux edge package indexes: ghq from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#ghq
```

  証拠: nixpkgs package indexes: pkgs/by-name/gh/ghq/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S ghq
```

  証拠: Arch Linux sync databases: ghq from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install main/ghq
```

  証拠: Scoop official bucket manifest trees: bucket/ghq.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id x-motemen.ghq -e
```

  証拠: Windows Package Manager source index: x-motemen.ghq from https://cdn.winget.microsoft.com/cache/source.msix

## パッケージ情報

- **パッケージキー:** brew:ghq
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/ghq>
- **バージョン:** 1.10.1
- **ソース概要:** Remote repository management made easy
- **ホームページ:** <https://github.com/x-motemen/ghq>
- **リポジトリ:** <https://github.com/x-motemen/ghq>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/x-motemen/ghq.git>
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

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

## ビルド依存関係

- go

## インストール挙動

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

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 1.10.1
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/x-motemen/ghq
- 情報: No package-manager update timestamp was available.
- 情報: No cached GitHub release or tag data was available.
## プロジェクトの歴史と使われ方

ghq is a command-line repository manager that gives remote Git and other VCS clones a predictable local directory layout.

### プロジェクトの歴史

The ghq repository was created in 2013. Its README describes the tool as a way to organize remote repository clones like `go get`: a `ghq get` command places a checkout under a root directory, using the remote URL host and path as the local directory structure.

The project grew from a simple clone-and-list helper into a workspace manager with multiple roots, git-config based settings, support for several VCS backends, repository removal, migration of existing repositories into ghq layout, shallow and partial clone options, shell completions, and Windows packaging.

### 採用の歴史

ghq has a durable following among developers who keep many open-source and work repositories on one machine. Its official README lists installation paths through Homebrew, Void Linux, GNU Guix, Scoop, Go install, conda, asdf, mise, source build, and release binaries.

### 使われ方

Practitioners use ghq to fetch repositories into `~/ghq` or another configured root, list known checkouts, pipe repository paths into fuzzy finders or editors, remove managed clones, and migrate older working trees into a consistent host/user/project hierarchy.

### パッケージ好きにとっての重要性

Package nerds care about ghq because it turns a developer's source tree into an indexable package-like store. It is small, scriptable, and especially useful when combined with shell functions, fuzzy search, and editor launchers.

### タイムライン

- 2013: GitHub repository created.
- 2014: v0.2 published on GitHub Releases.
- 2020: README documents installation through multiple package managers and release binaries.
- 2024: ghq added repository removal support.
- 2026: ghq added migration support for existing repositories and worktree-aware operations.

### Related projects

- ghq is related to `go get` style source layouts, Git configuration, Mercurial and other VCS backends, fuzzy finders, editor launchers, and the community ghq-handbook project.

### ソース

- <https://api.github.com/repos/x-motemen/ghq>
- <https://github.com/x-motemen/ghq>
- <https://github.com/x-motemen/ghq/blob/master/CHANGELOG.md>
- <https://github.com/x-motemen/ghq/blob/master/README.adoc>
- <https://github.com/x-motemen/ghq/releases/tag/v0.2>


## セキュリティノート

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: ~/.gitconfig
## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ghq
- **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

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

- Nix - ghq: normalized package name match | nixpkgs package indexes: pkgs/by-name/gh/ghq/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - ghq - 1.8.0-r12: normalized package name match | Alpine Linux edge package indexes: ghq from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | CLI to manage remote repository clones | https://github.com/x-motemen/ghq
- apk - ghq-bash-completion - 1.8.0-r12: normalized package name match | Alpine Linux edge package indexes: ghq-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash completions for ghq | https://github.com/x-motemen/ghq
- apk - ghq-doc - 1.8.0-r12: normalized package name match | Alpine Linux edge package indexes: ghq-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | CLI to manage remote repository clones (documentation) | https://github.com/x-motemen/ghq
- apk - ghq-fish-completion - 1.8.0-r12: normalized package name match | Alpine Linux edge package indexes: ghq-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fish completions for ghq | https://github.com/x-motemen/ghq
- apk - ghq-zsh-completion - 1.8.0-r12: normalized package name match | Alpine Linux edge package indexes: ghq-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Zsh completions for ghq | https://github.com/x-motemen/ghq
- pacman - ghq - 1.10.1-1: normalized package name match | Arch Linux sync databases: ghq from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Remote repository management made easy | https://github.com/x-motemen/ghq
- MacPorts - ghq: normalized package name match | MacPorts ports tree: sysutils/ghq/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/ghq: normalized package name match | Scoop official bucket manifest trees: bucket/ghq.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - x-motemen.ghq: normalized package name match | Windows Package Manager source index: x-motemen.ghq from https://cdn.winget.microsoft.com/cache/source.msix


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [go](https://pkg.so/ja/brew/go/) - Build dependency declared by Homebrew.
- [repo](https://pkg.so/ja/brew/repo/) - Shares pkgdb curated category or tags: cli, developer-tools, git, repository-management.
- [ghorg](https://pkg.so/ja/brew/ghorg/) - Shares pkgdb curated category or tags: cli, developer-tools, git, repository-management.
- [gitup](https://pkg.so/ja/brew/gitup/) - Shares pkgdb curated category or tags: cli, developer-tools, git, repository-management.
- [mani](https://pkg.so/ja/brew/mani/) - Shares pkgdb curated category or tags: cli, developer-tools, git, repository-management.
- [scm-manager](https://pkg.so/ja/brew/scm-manager/) - Shares pkgdb curated category or tags: cli, developer-tools, git, repository-management.
- [git-workspace](https://pkg.so/ja/brew/git-workspace/) - Shares pkgdb curated category or tags: cli, developer-tools, git, workspace-management.
- [grokmirror](https://pkg.so/ja/brew/grokmirror/) - Shares pkgdb curated category or tags: cli, developer-tools, git, repository-management.
- [git-grab](https://pkg.so/ja/brew/git-grab/) - Shares pkgdb curated category or tags: cli, developer-tools, git, repository-management.
- [git-get](https://pkg.so/ja/brew/git-get/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, git, management.

## Combined YAML source

View the package source record on GitHub. [combined/ghq.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ghq.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
