# 使用 Homebrew, apk, chocolatey, MacPorts, Nix, pacman, scoop, winget 安装 croc

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

## 安装

```sh
sudo av install brew:croc
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install croc
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install croc
```

  证据: MacPorts ports tree: net/croc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add croc
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#croc
```

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

- pacman (92%):

```sh
sudo pacman -S croc
```

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

### Windows

- Chocolatey (92%):

```sh
choco install croc
```

  证据: Chocolatey community package catalog: croc from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','cloudquery'

- Scoop (92%):

```sh
scoop install main/croc
```

  证据: Scoop official bucket manifest trees: bucket/croc.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id schollz.croc -e
```

  证据: Windows Package Manager source index: schollz.croc from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:croc
- **软件包管理器:** Homebrew
- **版本:** 11.0.1
- **来源摘要:** Securely send things from one computer to another
- **主页:** <https://github.com/schollz/croc>
- **仓库:** <https://github.com/schollz/croc>
- **最后更新:** 2026-07-31T20:45:31Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- croc (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

croc is a cross-platform CLI for simple, encrypted file and folder transfer between two computers. It combines a relay, password-authenticated key agreement, resumable transfers, and package-manager-friendly binaries into a tool aimed at replacing ad hoc local servers, port forwarding, or manual cloud handoffs.

### 项目历史

The project began in 2017 and later standardized around a Go module and release binaries. Its README describes the core promise as allowing any two computers to transfer data through a relay while preserving end-to-end encryption using PAKE.

Over time the feature set grew beyond one-shot file sending: multiple files, interrupted-transfer resume, IPv6-first behavior with IPv4 fallback, proxy support, text transfer, pipes, QR codes, Docker usage, and platform-specific install paths are all part of the official documentation.

### 采用历史

The official install section documents Homebrew and MacPorts on macOS, Scoop, Chocolatey, and Winget on Windows, Nix and NixOS, pacman on Arch, dnf on Fedora, portage on Gentoo, Termux, FreeBSD pkg, conda-forge, Docker, and Go source builds. That breadth made croc a common package-index entry for secure peer-to-peer-ish file transfer even though the protocol uses relays.

### 使用方式

A sender runs croc send with files or folders and receives a code phrase; the recipient runs croc with that phrase. The phrase establishes the PAKE-derived shared secret used for end-to-end encryption, while the relay helps two machines connect without a local server or port forwarding.

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

croc is interesting to package maintainers because it is a network CLI where usability depends heavily on reproducible, cross-platform binary distribution. The same project appears in many package ecosystems, and its runtime behavior is intentionally simple enough to be useful from ephemeral shells, developer machines, and constrained environments.

### 时间线

- 2017: Repository created.
- 2020: v8 release line published on GitHub releases.
- 2020s: Official installation instructions expanded across macOS, Windows, Linux distributions, BSD, Termux, Conda, Docker, and Go.

### Related projects

- PAKE is the cryptographic primitive used to derive the transfer secret from the code phrase.
- Package ecosystems including Homebrew, MacPorts, Scoop, Chocolatey, Winget, Nix, pacman, dnf, portage, FreeBSD pkg, Termux, and conda-forge distribute or document croc installation.

### 来源

- <https://github.com/schollz/croc#readme>
- <https://github.com/schollz/croc/releases/tag/v8.0.13>


## 安全说明

没有找到 croc 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


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

- Nix - croc: normalized package name match | nixpkgs package indexes: pkgs/by-name/cr/croc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - croc - 10.2.2-r11: normalized package name match | Alpine Linux edge package indexes: croc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Easily and securely send things from one computer to another | https://github.com/schollz/croc
- apk - croc-bash-completion - 10.2.2-r11: normalized package name match | Alpine Linux edge package indexes: croc-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for croc | https://github.com/schollz/croc
- apk - croc-doc - 10.2.2-r11: normalized package name match | Alpine Linux edge package indexes: croc-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Easily and securely send things from one computer to another (documentation) | https://github.com/schollz/croc
- apk - croc-zsh-completion - 10.2.2-r11: normalized package name match | Alpine Linux edge package indexes: croc-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for croc | https://github.com/schollz/croc
- pacman - croc - 1:11.0.1-1: normalized package name match | Arch Linux sync databases: croc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Easily and securely send things from one computer to another. | https://github.com/schollz/croc
- MacPorts - croc: normalized package name match | MacPorts ports tree: net/croc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - croc: normalized package name match | Chocolatey community package catalog: croc from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','cloudquery'
- Scoop - main/croc: normalized package name match | Scoop official bucket manifest trees: bucket/croc.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - schollz.croc: normalized package name match | Windows Package Manager source index: schollz.croc from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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