# 使用 Homebrew, scoop, apk 安装 go-size-analyzer

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

## 安装

```sh
sudo av install brew:go-size-analyzer
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install go-size-analyzer
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add gsa
```

  证据: Alpine Linux edge package indexes: gsa from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install main/go-size-analyzer
```

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

## 软件包事实

- **软件包键:** brew:go-size-analyzer
- **软件包管理器:** Homebrew
- **版本:** 1.13.0
- **来源摘要:** Analyzing the dependencies in compiled Golang binaries
- **主页:** <https://gsa.zxilly.dev/>
- **仓库:** <https://github.com/Zxilly/go-size-analyzer>
- **最后更新:** 2026-07-27T16:47:24+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gsa (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

go-size-analyzer is a Go binary-size inspection tool distributed as the gsa command.

### 项目历史

The GitHub repository was created in 2023 by Zxilly. Its README presents the tool as an analyzer for compiled Go binaries, with support for ELF, Mach-O, PE, and experimental WebAssembly binaries, plus package-level and section-level size breakdowns.

### 采用历史

The project fits a later phase of Go tooling culture in which teams inspect the cost of dependencies, runtime sections, and compiler changes after producing static command-line or server binaries. Its availability through Homebrew, Scoop, and APK packaging makes it usable outside a source checkout.

### 使用方式

Practitioners run gsa against a compiled Go binary, choose text, JSON, HTML, SVG, web, or terminal UI output, and compare two binaries in diff mode to see which packages or sections changed size.

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

For package maintainers, go-size-analyzer is useful when validating that a release, dependency bump, or Go toolchain change did not add unexpected binary weight.

### 时间线

- 2023: GitHub repository created for go-size-analyzer.

### Related projects

- The tool is adjacent to Go linker and build tooling because it inspects the compiled artifact after the Go command has produced it.

### 来源

- <https://api.github.com/repos/Zxilly/go-size-analyzer>
- <https://formulae.brew.sh/formula/go-size-analyzer>
- <https://github.com/Zxilly/go-size-analyzer>
- <https://gsa.zxilly.dev/>


## 安全说明

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


## 其他软件包管理器记录

- Scoop - main/go-size-analyzer: normalized package name match | Scoop official bucket manifest trees: bucket/go-size-analyzer.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- apk - gsa - 27.5.0-r0: installed executable or alias match | Alpine Linux edge package indexes: gsa from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Greenbone Security Assistant - The web frontend for the Greenbone Vulnerability Management (GVM) framework | https://github.com/greenbone/gsa


## Combined YAML source

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