# cargo-deny mit Homebrew, apk, dnf, Nix, pacman installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für cargo-deny in AI-Agent-Workflows.

## Installation

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

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install cargo-deny
```

  Evidenz: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add cargo-deny
```

  Evidenz: Alpine Linux edge package indexes: cargo-deny from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install cargo-deny
```

  Evidenz: Fedora Rawhide package metadata: cargo-deny from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

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

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

- pacman (92%):

```sh
sudo pacman -S cargo-deny
```

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

## Paketfakten

- **Paketschlüssel:** brew:cargo-deny
- **Paketmanager:** Homebrew
- **Version:** 0.20.2
- **Quellzusammenfassung:** Cargo plugin for linting your dependencies
- **Homepage:** <https://github.com/EmbarkStudios/cargo-deny>
- **Repository:** <https://github.com/EmbarkStudios/cargo-deny>
- **Zuletzt aktualisiert:** 2026-07-09T22:03:47Z
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- cargo-deny (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

- Seite generiert: 2026-08-03
- Manager-Version: 0.20.2
## Projektgeschichte und Nutzung

cargo-deny is an Embark Studios Cargo plugin for linting Rust dependency graphs. It checks advisories, license policy, banned crates, duplicate versions, and allowed package sources from a project-level deny.toml file.

### Projektgeschichte

Embark Studios created the repository and published the crate in May 2019. The README frames cargo-deny as an open-source release of a tool Embark uses internally, with a dedicated book for in-depth documentation.

The project grew into one of the standard Rust dependency-policy tools, with docs organized around checks for licenses, bans, advisories, and sources. Its repository topics and README both present it as a Cargo subcommand for dependency linting.

### Adoptionsgeschichte

cargo-deny has broad adoption for Rust CI because it covers policy decisions that Cargo itself intentionally does not enforce: which licenses are acceptable, whether multiple versions are allowed, whether vulnerable advisories should fail builds, and which registries or git sources are trusted.

The tool is packaged in apk, Homebrew, dnf, Nix, and pacman, and crates.io metadata shows more than four million downloads by June 2026. The README also points to cargo-deny-action for GitHub Actions use.

### Wie es verwendet wird

The quickstart is `cargo install --locked cargo-deny && cargo deny init && cargo deny check`. The init command creates a deny.toml template in the current working directory unless a path is supplied.

Users commonly run `cargo deny check` in CI, or run targeted checks such as `cargo deny check licenses`, `cargo deny check bans`, `cargo deny check advisories`, and `cargo deny check sources`.

### Warum Paket-Nerds sich dafür interessieren

cargo-deny is package-nerd infrastructure because it makes dependency policy executable. Instead of tracking license allowlists, source restrictions, duplicate-version rules, and advisories in prose, teams can encode them in deny.toml and fail builds consistently.

It is also an example of Cargo's external-tool model handling ecosystem governance concerns without bloating Cargo itself.

### Zeitleiste

- 2019: GitHub repository created and first crates.io publication recorded.
- 2019-2020: Early 0.6.x tags show rapid iteration on dependency linting.
- 2024-2026: Release stream continues through 0.19.x.
- 2026: crates.io metadata shows more than four million downloads and version 0.19.9 current in the sampled registry data.

### Related projects

- cargo-deny-action packages cargo-deny for GitHub Actions workflows.
- RustSec advisory data is part of the broader ecosystem behind advisory checking.
- SPDX license identifiers and license lists are central to the licenses check documented by cargo-deny.

### Quellen

- <https://api.github.com/repos/EmbarkStudios/cargo-deny>
- <https://crates.io/api/v1/crates/cargo-deny>
- <https://embarkstudios.github.io/cargo-deny>
- <https://github.com/EmbarkStudios/cargo-deny#readme>
- <https://github.com/EmbarkStudios/cargo-deny/blob/main/docs/src/cli/init.md>


## Sicherheitshinweise

Für cargo-deny wurde kein passendes lokales Secret-Handling-Manifest gefunden. Nucleus-Paketmetadaten bleiben hier veröffentlicht, damit künftige Abdeckung eine stabile Paket-URL hat.



## 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: <cwd>/deny.toml
## Andere Paketmanager-Einträge

- Nix - cargo-deny: normalized package name match | nixpkgs package indexes: pkgs/by-name/ca/cargo-deny/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - cargo-deny - 0.19.8-r0: normalized package name match | Alpine Linux edge package indexes: cargo-deny from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Cargo plugin for linting your dependencies | https://github.com/EmbarkStudios/cargo-deny
- dnf - cargo-deny - 0.19.9-2.fc45: normalized package name match | Fedora Rawhide package metadata: cargo-deny from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Cargo plugin to help you manage large dependency graphs | https://crates.io/crates/cargo-deny
- pacman - cargo-deny - 0.20.2-1: normalized package name match | Arch Linux sync databases: cargo-deny from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Cargo plugin for linting your dependencies | https://github.com/EmbarkStudios/cargo-deny


## Verwandte Links

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

## Combined YAML source

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


## Quellen

- 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
