# 使用 Homebrew, apk, MacPorts, Nix, pacman, apt 安装 gost

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

## 安装

```sh
sudo av install brew:gost
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gost
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gost
```

  证据: MacPorts ports tree: net/gost/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add gost
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#gost
```

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

- pacman (92%):

```sh
sudo pacman -S gost
```

  证据: Arch Linux sync databases: gost from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Ubuntu apt (92%):

```sh
sudo apt install gost
```

  证据: Ubuntu 24.04 LTS package indexes: gost from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

## 软件包事实

- **软件包键:** brew:gost
- **软件包管理器:** Homebrew
- **版本:** 3.2.6
- **来源摘要:** GO Simple Tunnel - a simple tunnel written in golang
- **主页:** <https://gost.run/>
- **仓库:** <https://github.com/go-gost/gost>
- **最后更新:** 2026-07-25T20:55:26-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gost (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

GOST, short for GO Simple Tunnel, is a Go networking tool for proxying, port forwarding, reverse proxying, and tunneling. Its documentation describes three main tunnel modes: proxy service, port forwarding, and reverse proxy or intranet exposure.

### 项目历史

The older v2 documentation presents GOST as a simple security tunnel written in Go, covering HTTP(S), SOCKS, Shadowsocks, SNI, TLS, WebSocket, KCP, QUIC, SSH, obfs, relay, forward, redirect, and related tunnel patterns. The newer go-gost/gost repository and gost.run documentation carry the v3 line.

The v3 README shows the project evolving from a single tunnel command into a broad network toolbox: multi-port listeners, forwarding chains, TCP/UDP port forwarding, reverse proxy and tunnel modes, transparent proxying, DNS resolver/proxy features, TUN/TAP and tun2socks, load balancing, routing controls, admission and rate limiting, plugins, Prometheus metrics, dynamic configuration, a Web API, GUI, and WebUI.

### 采用历史

GOST is packaged by Homebrew and appears in other package ecosystems in the batch input, including Alpine, MacPorts, Nix, Arch, and Ubuntu source packages. Its upstream README also documents binary releases, an install script, source builds, and Docker usage.

### 使用方式

Common usage combines listener and connector options to build proxies, forwarding chains, reverse tunnels, DNS proxying, transparent proxies, and controlled network paths. The configuration-file support matters for repeatable deployments, while one-line commands remain useful for temporary tunnel tests.

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

GOST matters in package indexes because it compresses many proxy and tunneling roles into one Go binary with frequent releases and multi-platform assets. It overlaps with parts of sshuttle, socat, frp, shadowsocks tooling, and reverse-proxy utilities, so clear packaging names and version lines help users choose the intended GOST generation.

### 时间线

- 2017: The v2 documentation metadata records an early GOST documentation timestamp.
- 2020: The go-gost/gost GitHub repository line is identified by GitHub release metadata.
- 2025: v3.2.x releases continue the v3 line with regular changelog entries.
- 2026: Nightly v3.2.7 builds in the release feed show dependency bumps for go-gost/core and go-gost/x.

### Related projects

- go-gost/core is the core library referenced in v3 release notes.
- go-gost/x contains extended or experimental features referenced in v3 release notes.
- go-gost/gostctl and go-gost/gost-ui are GUI and WebUI companions linked from the README.
- The v2.gost.run documentation is the official legacy documentation surface.

### 来源

- <https://formulae.brew.sh/formula/gost>
- <https://github.com/go-gost/gost>
- <https://github.com/go-gost/gost/releases.atom>
- <https://gost.run/en/>
- <https://v2.gost.run/en/>


## 安全说明

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: ./gost.yml, ./gost.json, /etc/gost/gost.yml, /etc/gost/gost.json, ~/gost/gost.yml, ~/gost/gost.json
## 其他软件包管理器记录

- Nix - gost: normalized package name match | nixpkgs package indexes: pkgs/by-name/go/gost/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - golang-github-knqyf263-gost-dev - 0.1.2-2: normalized package name match | Ubuntu 24.04 LTS package indexes: golang-github-knqyf263-gost-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | local copy tool of Security Tracker (Red Hat/Debian) written in go | https://github.com/knqyf263/gost
- Ubuntu apt - gost - 0.1.2-2: normalized package name match | Ubuntu 24.04 LTS package indexes: gost from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | local copy tool of Security Tracker (Red Hat/Debian) written in go | https://github.com/knqyf263/gost
- apk - gost - 3.2.6-r6: normalized package name match | Alpine Linux edge package indexes: gost from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | GO Simple Tunnel - a simple tunnel written in golang | https://github.com/go-gost/gost
- apk - gost-doc - 3.2.6-r6: normalized package name match | Alpine Linux edge package indexes: gost-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | GO Simple Tunnel - a simple tunnel written in golang (documentation) | https://github.com/go-gost/gost
- pacman - gost - 3.2.6-1: normalized package name match | Arch Linux sync databases: gost from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | GO Simple Tunnel | https://github.com/go-gost/gost
- MacPorts - gost: normalized package name match | MacPorts ports tree: net/gost/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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