# 使用 Homebrew, Nix 安装 dcp

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

## 安装

```sh
sudo av install brew:dcp
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dcp
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#dcp
```

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

## 软件包事实

- **软件包键:** brew:dcp
- **软件包管理器:** Homebrew
- **版本:** 0.4.1
- **来源摘要:** Docker cp made easy
- **主页:** <https://github.com/exdx/dcp>
- **仓库:** <https://github.com/exdx/dcp>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dcp (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

dcp is a small Rust command-line tool that wraps the multi-step workflow behind docker cp for container images. Its README frames the project around OCI images that are used as data carriers, especially Kubernetes-adjacent images such as operator bundles and Crossplane packages.

### 项目历史

The public GitHub repository was created in July 2022, and the first tagged release, v0.1.0, was published on July 14, 2022. The project intentionally depends on existing Docker and Podman APIs rather than implementing its own container image stack.

### 采用历史

dcp is packaged for Homebrew and Nix, which points to a niche but practical audience of developers who need a quick way to inspect or extract files from container images without creating containers by hand.

### 使用方式

Users run dcp with an image name and optional content and destination flags to copy filesystem content locally. The tool can also pass username and password flags for private images, while its README warns that shell history makes that convenience insecure.

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

For package-manager users, dcp is a tiny example of the post-Docker CLI ecosystem: a focused binary that turns a verbose container-runtime ritual into one command, useful when packages, manifests, or other deployable assets are shipped inside OCI images.

### 时间线

- 2022: GitHub repository created
- 2022: v0.1.0 release published
- 2022: v0.2.1 release published

### Related projects

- docker cp, podman, containerd, dive

### 来源

- <https://github.com/exdx/dcp>
- <https://github.com/exdx/dcp#readme>
- <https://github.com/exdx/dcp/releases/tag/v0.1.0>
- <https://github.com/exdx/dcp/releases/tag/v0.2.1>
- <https://api.github.com/repos/exdx/dcp>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Nix - dcp: normalized package name match | nixpkgs package indexes: pkgs/by-name/dc/dcp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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