# cargo-sweep を Homebrew, Nix, pacman でインストール

cargo-sweep のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install cargo-sweep
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

- pacman (92%):

```sh
sudo pacman -S cargo-sweep
```

  証拠: Arch Linux sync databases: cargo-sweep from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## パッケージ情報

- **パッケージキー:** brew:cargo-sweep
- **パッケージマネージャ:** Homebrew
- **バージョン:** 0.8.0
- **ソース概要:** Utility for cleaning up unused build files generated by Cargo
- **ホームページ:** <https://github.com/holmgr/cargo-sweep>
- **リポジトリ:** <https://github.com/holmgr/cargo-sweep>
- **最終更新:** 2026-07-17T17:53:08+09:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- cargo-sweep (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 0.8.0
## プロジェクトの歴史と使われ方

cargo-sweep is a Cargo subcommand for deleting old or unused build artifacts from target directories without running a full cargo clean.

### プロジェクトの歴史

The README describes cargo-sweep as a selective cleanup tool for Cargo build artifacts and currently marks the project as unmaintained while pointing users toward cargo-clean-all as an alternative.

### 採用の歴史

GitHub records the repository as created in November 2018, and crates.io records the first cargo-sweep release in the same month. The input package facts list Homebrew, Nix, and Arch packages.

### 使われ方

The official README documents cleaning by age, installed toolchains, maximum target-directory size, recursive project search, dry-run previews, and a timestamp workflow using `--stamp` and `--file`.

### パッケージ好きにとっての重要性

cargo-sweep is notable for Cargo users who accumulate large target directories or CI caches, because it offers narrower cleanup choices than Cargo's built-in `cargo clean`.

### タイムライン

- 2018: GitHub repository created and first crates.io release recorded.
- 2025: crates.io records max_version 0.8.0.
- 2026: GitHub repository metadata still shows recent pushes, while the README marks the project unmaintained.

### Related projects

- The README lists Cargo's built-in `cargo clean` and cargo-clean-all as related cleanup tools.

### ソース

- <https://api.github.com/repos/holmgr/cargo-sweep>
- <https://github.com/holmgr/cargo-sweep>
- <https://docs.rs/crate/cargo-sweep/latest>
- <https://github.com/holmgr/cargo-sweep#readme>
- <https://crates.io/api/v1/crates/cargo-sweep>
- <https://formulae.brew.sh/api/formula/cargo-sweep.json>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## 他のパッケージマネージャ記録

- Nix - cargo-sweep: normalized package name match | nixpkgs package indexes: pkgs/by-name/ca/cargo-sweep/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - cargo-sweep - 0.8.0-2: normalized package name match | Arch Linux sync databases: cargo-sweep from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A cargo subcommand for cleaning up unused build files generated by Cargo | https://github.com/holmgr/cargo-sweep


## 関連リンク

- [cargo-sweep](https://pkg.so/ja/pkg/cargo/cargo-sweep/) - Same normalized package name exists in another local package ecosystem.

## Combined YAML source

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