# Install croc with Homebrew, apk, chocolatey, MacPorts, Nix, pacman, scoop, winget

Securely send things from one computer to another. Version 10.4.11 via Homebrew; verified 2026-07-08.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install croc
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install croc
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

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

- Scoop (92%):

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

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:croc
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/croc>
- **Version:** 10.4.11
- **Source summary:** Securely send things from one computer to another
- **Homepage:** <https://github.com/schollz/croc>
- **Repository:** <https://github.com/schollz/croc>
- **Upstream docs:** <https://github.com/schollz/croc#readme>
- **License:** MIT
- **Source archive:** <https://github.com/schollz/croc/archive/refs/tags/v10.4.11.tar.gz>
- **Last updated:** 2026-07-08T06:07:55Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- croc (cli)
- croc (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 10.4.11
- Package-manager updated: 2026-07-08
- Local data: ok
- Upstream repository: https://github.com/schollz/croc
- Upstream latest detected: v10.4.11 (current)
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

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


## Security Notes

No matching local secret-handling manifest was found for croc. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** croc
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- 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-r10: 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-r10: 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-r10: 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-r10: 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:10.4.4-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','cmake.portable'
- 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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [magic-wormhole](https://www.automicvault.com/pkg/brew/magic-wormhole/) - Shares av.db curated category or tags: cli, file-transfer, networking, secure-transfer.
- [magic-wormhole.rs](https://www.automicvault.com/pkg/brew/magic-wormhole-rs/) - Shares av.db curated category or tags: cli, file-transfer, networking, secure-transfer.
- [portal](https://www.automicvault.com/pkg/brew/portal/) - Shares av.db curated category or tags: cli, file-transfer, networking, peer-to-peer.
- [sendme](https://www.automicvault.com/pkg/brew/sendme/) - Shares av.db curated category or tags: cli, file-transfer, networking, peer-to-peer.
- [wush](https://www.automicvault.com/pkg/brew/wush/) - Shares av.db curated category or tags: cli, file-transfer, networking, peer-to-peer.
- [airshare](https://www.automicvault.com/pkg/brew/airshare/) - Shares av.db curated category or tags: cli, file-transfer, networking.
- [bbftp-client](https://www.automicvault.com/pkg/brew/bbftp-client/) - Shares av.db curated category or tags: cli, file-transfer, networking.
- [davix](https://www.automicvault.com/pkg/brew/davix/) - Shares av.db curated category or tags: cli, file-transfer, networking.

## Combined YAML source

View the package source record on GitHub. [combined/croc.yml](https://github.com/automic-vault/db/blob/main/combined/croc.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
