# 使用 Homebrew, apk, MacPorts, Nix, zypper, scoop, winget 安装 topgrade

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

## 安装

```sh
sudo av install brew:topgrade
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install topgrade
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install topgrade
```

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

### Linux

- apk (92%):

```sh
sudo apk add topgrade
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#topgrade
```

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

- zypper (92%):

```sh
sudo zypper install topgrade
```

  证据: openSUSE Tumbleweed package metadata: topgrade from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/topgrade
```

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

- winget (92%):

```sh
winget install --id topgrade-rs.topgrade -e
```

  证据: Windows Package Manager source index: topgrade-rs.topgrade from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:topgrade
- **软件包管理器:** Homebrew
- **版本:** 17.9.0
- **来源摘要:** Upgrade all the things
- **主页:** <https://github.com/topgrade-rs/topgrade>
- **仓库:** <https://github.com/topgrade-rs/topgrade>
- **最后更新:** 2026-07-28T16:21:40Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- topgrade (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Topgrade is a Rust command-line system maintenance tool whose goal is to update many package managers and developer-tool ecosystems with one command. Its slogan, reflected in its crate metadata, is 'Upgrade all the things.'

### 项目历史

The topgrade crate was first published on crates.io in June 2018. The current topgrade-rs README states that the project is a fork of r-darwish/topgrade created to keep the tool maintained, and explains the problem it solves: system updates often require a collection of non-portable shell one-liners across different package managers.

The maintained project has become a catalogue of package-manager integrations. The README documents official and community installation routes across releases, Cargo, deb-get, AUR, PyPI/pipx/uv, Winget, Homebrew, Fedora Copr, Chocolatey, Scoop, MacPorts, Pacstall, Nix, Alpine, and Void. The changelog shows ongoing work on specific package managers and tools, including Homebrew, Nix, winget, mise, cargo, uv, firmware tools, editors, AI/developer tools, and desktop app managers.

By 2026, the project was releasing in the 17.x line; crates.io reports 17.6.2 as the current maximum version, and the changelog records 17.6.2 on June 20, 2026. Its release cadence and breadth of integrations make it a maintenance hub rather than a wrapper around one package manager.

### 采用历史

Topgrade's adoption is cross-platform and package-manager oriented. The official README presents Homebrew and Winget alongside Cargo and distro package routes, while the input metadata shows Homebrew, Alpine, MacPorts, Nix, Scoop, Winget, and zypper packaging. This breadth reflects its audience: users who accumulate several package ecosystems on one machine.

### 使用方式

The normal usage is intentionally small: run `topgrade`. The tool detects installed update mechanisms and runs the appropriate commands; users can configure behavior in `topgrade.toml`, define custom commands, use remote execution over SSH, and choose platform-specific integrations.

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

Topgrade is unusually important for package nerds because it turns package-manager sprawl into a single ritual. It does not replace Homebrew, Cargo, Nix, winget, pipx, or distro managers; it orchestrates them, making it attractive to users whose machines contain many overlapping software supply chains.

### 时间线

- 2018: topgrade crate first published on crates.io.
- Current project: topgrade-rs README identifies the maintained fork from r-darwish/topgrade.
- 2025: 16.x releases expand integrations and release automation across package managers.
- 2026: 17.0.0 bumps the minimum supported Rust version.
- 2026: 17.6.2 released with fixes for Homebrew, Linuxbrew, pip3 on Termux, Nix, and PowerShell behavior.

### Related projects

- Homebrew, Cargo, Nix, Winget, Scoop, MacPorts, Chocolatey, pipx, uv, mise, AUR, deb-get, zypper.

### 来源

- <https://crates.io/crates/topgrade>
- <https://github.com/topgrade-rs/topgrade#readme>
- <https://raw.githubusercontent.com/topgrade-rs/topgrade/main/CHANGELOG.md>
- <https://raw.githubusercontent.com/topgrade-rs/topgrade/main/Cargo.toml>
- source_facts.package-manager


## 安全说明

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



## 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: ${XDG_CONFIG_HOME:-~/.config}/topgrade.toml, ${XDG_CONFIG_HOME:-~/.config}/topgrade/topgrade.toml
## 其他软件包管理器记录

- Nix - topgrade: normalized package name match | nixpkgs package indexes: pkgs/by-name/to/topgrade/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - topgrade - 17.9.0-r0: normalized package name match | Alpine Linux edge package indexes: topgrade from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | run upgrades of packages in OS and other package managers | https://github.com/topgrade-rs/topgrade
- apk - topgrade-bash-completion - 17.9.0-r0: normalized package name match | Alpine Linux edge package indexes: topgrade-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for topgrade | https://github.com/topgrade-rs/topgrade
- apk - topgrade-doc - 17.9.0-r0: normalized package name match | Alpine Linux edge package indexes: topgrade-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | run upgrades of packages in OS and other package managers (documentation) | https://github.com/topgrade-rs/topgrade
- apk - topgrade-fish-completion - 17.9.0-r0: normalized package name match | Alpine Linux edge package indexes: topgrade-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for topgrade | https://github.com/topgrade-rs/topgrade
- apk - topgrade-zsh-completion - 17.9.0-r0: normalized package name match | Alpine Linux edge package indexes: topgrade-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for topgrade | https://github.com/topgrade-rs/topgrade
- zypper - topgrade - 17.9.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: topgrade from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Upgrade all the things | https://github.com/topgrade-rs/topgrade
- MacPorts - topgrade: normalized package name match | MacPorts ports tree: sysutils/topgrade/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/topgrade: normalized package name match | Scoop official bucket manifest trees: bucket/topgrade.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - topgrade-rs.topgrade: normalized package name match | Windows Package Manager source index: topgrade-rs.topgrade from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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