# 使用 Homebrew, MacPorts, Nix 安装 gf

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

## 安装

```sh
sudo av install brew:gf
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gf
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gf
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#gf
```

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

## 软件包事实

- **软件包键:** brew:gf
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gf>
- **版本:** 2.10.2
- **来源摘要:** App development framework of Golang
- **主页:** <https://goframe.org>
- **仓库:** <https://github.com/gogf/gf>
- **上游文档:** <https://goframe.org>
- **许可证:** MIT
- **源码归档:** <https://github.com/gogf/gf/archive/refs/tags/v2.10.2.tar.gz>
- **最后更新:** 2026-07-25T20:55:22-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- gf (cli)
- gf (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.10.2
- 管理器更新时间: 2026-07-25
- 本地数据: OK
- 上游仓库: https://github.com/gogf/gf
- 检测到的最新版本: v2.10.2 (当前)
## 项目历史与用法

GoFrame is a Go application framework and command-line toolchain aimed at full-stack service development. In package-manager terms, the `gf` executable matters because it installs the framework's project scaffolding, code generation, build, and upgrade commands alongside the Go module.

### 项目历史

GoFrame's release notes trace the public line back to v0.1 in April 2018, with early modules covering file monitoring, configuration reloads, template refreshes, conversion helpers, pagination, logging, Redis access, HTTP, and database functionality. The v1.x line followed later in 2018, and v2.0 appeared in March 2022 as a major framework generation.

### 采用历史

The project evolved into a broad Go framework with modules for web services, ORM, configuration, validation, logging, resource management, service work, and microservice development. Its GitHub repository shows a large contributor and user footprint, and the docs describe use in enterprise-style production projects such as microservices, IoT, blockchain, e-commerce, and banking systems.

### 使用方式

Practitioners use `gf` to create and maintain GoFrame applications, generate controllers and database/protobuf entities, build resource-aware binaries, and run framework upgrades. The recommended version-management path is Go modules, with the CLI available for full framework upgrades from a project root.

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

GoFrame is interesting to package maintainers because the formula name `gf` exposes a CLI, while the main project is also a Go library imported as `github.com/gogf/gf/v2`. That dual identity makes it both a developer tool and an application dependency in Go service stacks.

### 时间线

- 2018: v0.1 introduced the early public framework module set.
- 2018: v1.0 and v1.x releases expanded web, ORM, routing, and infrastructure features.
- 2022: v2.0 marked a major framework generation.
- 2025: The release documentation described Go modules as the preferred version-management path and `gf up -a` as a CLI upgrade path.

### Related projects

- The repository links the official site, English documentation, API docs on pkg.go.dev, documentation source, and related demo projects in the GoFrame organization.

### 来源

- <https://github.com/gogf/gf>
- <https://goframe.org/en/docs/cli/gen-ctrl>
- <https://goframe.org/en/docs/micro-service>
- <https://goframe.org/en/release/note>
- <https://goframe.org/en/release/v0.1.0>
- <https://goframe.org/en/release/v1.11.0>


## 安全说明

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


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gf
- **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 - gf: normalized package name match | nixpkgs package indexes: pkgs/by-name/gf/gf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - gf: normalized package name match | MacPorts ports tree: lang/gf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [wails](https://pkg.so/zh-hans/brew/wails/) - Shares pkgdb curated category or tags: application-framework, cli, developer-tools, go.
- [drogon](https://pkg.so/zh-hans/brew/drogon/) - Shares pkgdb curated category or tags: cli, developer-tools, orm, web-framework.
- [cot](https://pkg.so/zh-hans/brew/cot/) - Shares pkgdb curated category or tags: cli, developer-tools, orm, web-framework.
- [kitex](https://pkg.so/zh-hans/brew/kitex/) - Shares pkgdb curated category or tags: cli, developer-tools, go, microservices.
- [treefrog](https://pkg.so/zh-hans/brew/treefrog/) - Shares pkgdb curated category or tags: cli, developer-tools, orm, web-framework.
- [sqlboiler](https://pkg.so/zh-hans/brew/sqlboiler/) - Shares pkgdb curated category or tags: cli, developer-tools, go, orm.
- [hz](https://pkg.so/zh-hans/brew/hz/) - Shares pkgdb curated category or tags: cli, developer-tools, go, microservices.
- [glib](https://pkg.so/zh-hans/brew/glib/) - Shares pkgdb curated category or tags: application-framework, cli, developer-tools.

## Combined YAML source

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


## 来源

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