# 使用 Homebrew, apk, Nix, pacman 安装 cargo-update

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

## 安装

```sh
sudo av install brew:cargo-update
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cargo-update
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add cargo-update
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#cargo-update
```

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

- pacman (92%):

```sh
sudo pacman -S cargo-update
```

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

## 软件包事实

- **软件包键:** brew:cargo-update
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cargo-update>
- **版本:** 20.0.3
- **来源摘要:** Cargo subcommand for checking and applying updates to installed executables
- **主页:** <https://github.com/nabijaczleweli/cargo-update>
- **仓库:** <https://github.com/nabijaczleweli/cargo-update>
- **上游文档:** <https://docs.rs/cargo-update>
- **许可证:** MIT
- **源码归档:** <https://github.com/nabijaczleweli/cargo-update/archive/refs/tags/v20.0.3.tar.gz>
- **最后更新:** 2026-06-22T14:02:59-07:00
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- cargo-install-update (cli)
- cargo-install-update-config (cli)
- cargo-install-update (别名)
- cargo-install-update-config (别名)

## 依赖

- libgit2
- libssh2
- openssl@3

## 构建依赖

- pkgconf
- rust

## macOS 提供的库

- curl

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 20.0.3
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://github.com/nabijaczleweli/cargo-update
- 检测到的最新版本: v20.0.3 (当前)
## 项目历史与用法

cargo-update provides Cargo subcommands for checking and applying updates to executables installed with `cargo install`.

### 项目历史

The official manual says cargo-update was built from frustration with periodically checking cargo-installed executables for updates. The README presents `cargo install-update` and `cargo install-update-config` as the two user-facing commands.

### 采用历史

GitHub records the repository as created in October 2016, and crates.io records the first cargo-update release the same month. The input package facts list Alpine, Homebrew, Nix, and Arch packages.

### 使用方式

The manual documents updating all installed packages with `cargo install-update -a`, updating selected packages, listing without updating, using cargo-binstall when appropriate, and configuring per-package build options with `cargo install-update-config`.

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

cargo-update fills a long-standing package-manager gap for Cargo-installed CLI tools: it gives users a repeatable way to discover and apply crate executable updates while preserving per-package install options.

### 时间线

- 2016: GitHub repository created and first crates.io release recorded.
- 2026: crates.io records max_version 20.0.2.

### Related projects

- The manual documents optional cargo-binstall integration and relies on Cargo registry metadata and Cargo install state.

### 来源

- <https://api.github.com/repos/nabijaczleweli/cargo-update>
- <https://github.com/nabijaczleweli/cargo-update>
- <https://docs.rs/cargo-update>
- <https://github.com/nabijaczleweli/cargo-update#readme>
- <https://rawcdn.githack.com/nabijaczleweli/cargo-update/man/cargo-install-update-config.1.html>
- <https://rawcdn.githack.com/nabijaczleweli/cargo-update/man/cargo-install-update.1.html>
- <https://crates.io/api/v1/crates/cargo-update>
- <https://formulae.brew.sh/api/formula/cargo-update.json>


## 安全说明

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: $CARGO_HOME/.install_config.toml, ~/.cargo/.install_config.toml

## Credential files

- Unix: $CARGO_HOME/credentials, $CARGO_HOME/credentials.toml, ~/.cargo/credentials, ~/.cargo/credentials.toml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cargo-update
- **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 - cargo-update: normalized package name match | nixpkgs package indexes: pkgs/by-name/ca/cargo-update/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - cargo-update - 18.0.0-r0: normalized package name match | Alpine Linux edge package indexes: cargo-update from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | cargo subcommand for checking and applying updates to installed executables | https://github.com/nabijaczleweli/cargo-update
- apk - cargo-update-doc - 18.0.0-r0: normalized package name match | Alpine Linux edge package indexes: cargo-update-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | cargo subcommand for checking and applying updates to installed executables (documentation) | https://github.com/nabijaczleweli/cargo-update
- pacman - cargo-update - 20.0.1-1: normalized package name match | Arch Linux sync databases: cargo-update from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A cargo subcommand for checking and applying updates to installed executables | https://github.com/nabijaczleweli/cargo-update


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://www.automicvault.com/zh-hans/pkg/package-publishers/) - Belongs to a package publishing or registry command family.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Matched curated package taxonomy and local package facts.
- [libgit2](https://www.automicvault.com/zh-hans/pkg/brew/libgit2/) - Runtime dependency declared by Homebrew.
- [openssl@3](https://www.automicvault.com/zh-hans/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [cargo-c](https://www.automicvault.com/zh-hans/pkg/brew/cargo-c/) - Package names and metadata indicate a similar tool family. Shared terms: cargo, install, libgit2, libssh2, openssl.
- [cargo-outdated](https://www.automicvault.com/zh-hans/pkg/brew/cargo-outdated/) - Package names and metadata indicate a similar tool family. Shared terms: cargo, libgit2, openssl, openssl-3, subcommand.
- [cargo-generate](https://www.automicvault.com/zh-hans/pkg/brew/cargo-generate/) - Package names and metadata indicate a similar tool family. Shared terms: cargo, libgit2, libssh2, openssl, openssl-3.

## Combined YAML source

View the package source record on GitHub. [combined/cargo-update.yml](https://github.com/automic-vault/db/blob/main/combined/cargo-update.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
