# gops を Homebrew, apk, dnf, Nix, zypper でインストール

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

## インストール

```sh
sudo av install brew:gops
```

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

### macOS

- Homebrew (100%):

```sh
brew install gops
```

  証拠: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add gops
```

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

- dnf (92%):

```sh
sudo dnf install gops
```

  証拠: Fedora Rawhide package metadata: gops from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#gops
```

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

- zypper (92%):

```sh
sudo zypper install gops
```

  証拠: openSUSE Tumbleweed package metadata: gops from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:gops
- **パッケージマネージャ:** Homebrew
- **バージョン:** 0.3.29
- **ソース概要:** Tool to list and diagnose Go processes currently running on your system
- **ホームページ:** <https://github.com/google/gops>
- **リポジトリ:** <https://github.com/google/gops>
- **最終更新:** 2026-07-25T20:55:25-04:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- gops (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 0.3.29
## プロジェクトの歴史と使われ方

gops is a Google-maintained command for listing and diagnosing Go processes on a machine. It made Go runtime introspection feel like a normal system-admin command: list Go binaries, inspect runtime state, and ask instrumented processes for stack, memory, GC, pprof, and trace data.

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

The google/gops repository was created in 2016. Its README describes a tool that lists Go processes and can diagnose processes that start the optional gops agent.

gops built on a Go-specific runtime reality: Go binaries carry enough build/runtime identity to make process listing useful, and the runtime exposes diagnostics such as goroutine stacks, memory statistics, pprof profiles, garbage collection controls, and execution tracing.

The project retained a small command-line surface while expanding subcommands around local PID inspection and remote host:port agent access.

### 採用の歴史

gops became a recognizable Go ecosystem utility because it solves a problem shared by many Go service operators: identifying which processes are Go programs and collecting runtime diagnostics without attaching a general-purpose debugger.

The input package facts list Homebrew, Alpine, Fedora, Nix, and openSUSE packages. That packaging breadth reflects a system-tool role across developer workstations and server-oriented Linux distributions.

The optional agent model limited universal introspection but made deeper diagnostics explicit: uninstrumented Go processes can be listed, while applications that import `github.com/google/gops/agent` expose richer data.

### 使われ方

Running `gops` with no arguments lists local Go processes with PID, parent PID, program name, Go version, and binary path. Processes running the gops agent are marked in the list.

With a PID or agent address, gops can report process details, stack traces, memory statistics, runtime stats, GC settings, CPU and heap pprof profiles, and execution traces.

The README documents both local mode, where the target process must run as the same user, and remote mode, where the user supplies the agent address.

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

gops is package-nerd bait because it is both a command and an importable agent package. Installing the binary is useful, but the most interesting behavior appears when Go programs deliberately import the agent.

It also shows why language-specific process tools exist alongside generic Unix tools: `ps`, `top`, and `lsof` know processes, but gops knows Go runtime concepts such as goroutines, heap profiles, and Go build versions.

### タイムライン

- 2016: google/gops repository created.
- 2017: README examples show Go 1.9-era process listing and runtime diagnostics.
- 2010s: Project documents optional `github.com/google/gops/agent` integration for richer diagnostics.
- 2020s: Distribution appears across Homebrew and multiple Linux package sets.

### Related projects

- Go's runtime/pprof and runtime tracing facilities provide the diagnostic substrate for gops commands.
- The gops agent package is embedded by target Go programs that want remote or richer inspection.
- Generic system tools such as ps and pprof overlap with parts of the gops workflow, but gops packages Go-specific discovery and diagnostics together.

### ソース

- <https://github.com/google/gops>
- <https://pkg.go.dev/github.com/google/gops>
- <https://pkg.go.dev/github.com/google/gops/agent>
- <https://pkg.go.dev/runtime/pprof>
- <https://pkg.go.dev/runtime/trace>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

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

- Nix - gops: normalized package name match | nixpkgs package indexes: pkgs/by-name/go/gops/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - gops - 0.3.29-r3: normalized package name match | Alpine Linux edge package indexes: gops from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | List and diagnose Go processes currently running on your system | https://github.com/google/gops
- apk - gops-bash-completion - 0.3.29-r3: normalized package name match | Alpine Linux edge package indexes: gops-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for gops | https://github.com/google/gops
- apk - gops-fish-completion - 0.3.29-r3: normalized package name match | Alpine Linux edge package indexes: gops-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for gops | https://github.com/google/gops
- apk - gops-zsh-completion - 0.3.29-r3: normalized package name match | Alpine Linux edge package indexes: gops-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for gops | https://github.com/google/gops
- dnf - gops - 0.3.29-6.fc45: normalized package name match | Fedora Rawhide package metadata: gops from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | List and diagnose Go processes currently running on your system | https://github.com/google/gops
- zypper - gops - 0.3.28-1.9: normalized package name match | openSUSE Tumbleweed package metadata: gops from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A tool to list and diagnose Go processes currently running on your system | https://github.com/google/gops


## Combined YAML source

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


## ソース

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