# cargo-clone mit Homebrew, Nix, pacman installieren

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

## Installation

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

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install cargo-clone
```

  Evidenz: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

- pacman (92%):

```sh
sudo pacman -S cargo-clone
```

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

## Paketfakten

- **Paketschlüssel:** brew:cargo-clone
- **Paketmanager:** Homebrew
- **Version:** 1.2.4
- **Quellzusammenfassung:** Cargo subcommand to fetch the source code of a Rust crate
- **Homepage:** <https://github.com/JanLikar/cargo-clone>
- **Repository:** <https://github.com/JanLikar/cargo-clone>
- **Zuletzt aktualisiert:** 2026-06-22T14:02:57-07:00
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- cargo-clone (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

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

cargo-clone is a small Cargo subcommand that downloads the source code of crates from a registry. It fills a simple inspection gap: getting a crate's packaged source without manually navigating registry storage or repository metadata.

### Projektgeschichte

The GitHub repository was created in January 2016, early in Cargo's third-party subcommand culture. The README positions cargo-clone as a way to fetch Rust crate source from a registry and, optionally, clone the upstream git repository recorded in crate metadata.

### Adoptionsgeschichte

cargo-clone is a niche utility rather than a broad platform component. Its adoption is visible through crates.io publication and packaging in Homebrew, Nix, and pacman, mostly serving developers who inspect crate contents or reproduce package sources.

### Wie es verwendet wird

Users run commands such as `cargo clone serde` or append a version requirement such as `cargo clone cargo-clone@1.0.0`. With `--git`, the tool uses the repository URL from crate metadata and delegates to git clone.

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

The tool matters to package nerds because it distinguishes registry source from repository source. That distinction is central to auditing Rust packages: the code published to crates.io is the artifact Cargo actually builds.

### Zeitleiste

- 2016: GitHub repository created.
- 2016: First crates.io publication recorded for cargo-clone.
- 2025: crates.io metadata shows continued updates, with version 1.2.4 current by the sampled registry data.

### Related projects

- Cargo provides the external subcommand mechanism that lets `cargo clone` dispatch to cargo-clone.
- crates.io is the registry source that cargo-clone queries and downloads from.
- git is used when users choose the README-documented `--git` path.

### Quellen

- <https://api.github.com/repos/JanLikar/cargo-clone>
- <https://crates.io/api/v1/crates/cargo-clone>
- <https://github.com/JanLikar/cargo-clone#readme>


## Sicherheitshinweise

narrow executable package without higher-risk signals.

- **Geiger-Risiko:** grün / niedrig
- narrow executable package without higher-risk signals

## Andere Paketmanager-Einträge

- Nix - cargo-clone: normalized package name match | nixpkgs package indexes: pkgs/by-name/ca/cargo-clone/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - cargo-clone - 1.2.4-2: normalized package name match | Arch Linux sync databases: cargo-clone from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A cargo subcommand to fetch the source code of a Rust crate | https://github.com/JanLikar/cargo-clone


## Combined YAML source

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


## Quellen

- 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
