# Install cpio with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, winget, zypper

Copies files into or out of a cpio or tar archive. Version 2.15 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:cpio
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cpio
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cpio
```

  Evidence: MacPorts ports tree: archivers/cpio/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add cpio
```

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

- Debian apt (92%):

```sh
sudo apt install cpio
```

  Evidence: Debian stable package indexes: cpio from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install cpio
```

  Evidence: Fedora Rawhide package metadata: cpio from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#cpio
```

  Evidence: nixpkgs package indexes: pkgs/by-name/cp/cpio/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S cpio
```

  Evidence: Arch Linux sync databases: cpio from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install cpio
```

  Evidence: openSUSE Tumbleweed package metadata: cpio from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- winget (92%):

```sh
winget install --id GnuWin32.Cpio -e
```

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

## Package facts

- **Package key:** brew:cpio
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/cpio>
- **Version:** 2.15
- **Source summary:** Copies files into or out of a cpio or tar archive
- **Homepage:** <https://www.gnu.org/software/cpio/>
- **Repository:** <https://git.savannah.gnu.org/git/cpio.git>
- **Upstream docs:** <https://www.gnu.org/software/cpio>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://ftpmirror.gnu.org/gnu/cpio/cpio-2.15.tar.bz2>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- cpio (cli)
- cpio (alias)

## Install behavior

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

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.15
- Local data: ok
- Upstream repository: https://www.gnu.org/software/cpio/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

GNU cpio is the GNU implementation of the classic copy-in/copy-out archiver. It copies files between directories and archives, including cpio formats and tar formats, and remains a small but important Unix packaging and recovery tool.

### Project history

GNU cpio's manual is published by the Free Software Foundation and documents the program as a tool for creating and extracting archives or copying directory trees. The manual credits Robert Carleton and Sergey Poznyakoff, and the current GNU source package includes documentation maintained through the 2.15 release.

The GNU package history visible in NEWS shows long-running maintenance around archive-format compatibility, large-file support, security fixes, reproducible archive options, and portability fixes. Version 2.0 added SVR4 cpio formats and traditional/POSIX tar archive support; later releases added sparse handling, GPLv3 licensing, reproducible archive support, and security fixes.

### Adoption history

The supplied package facts list GNU cpio across common Unix-like package managers, including Debian, Ubuntu, Fedora/dnf, Alpine/apk, Arch/pacman, openSUSE/zypper, Nix, MacPorts, Homebrew, and a GnuWin32 package. That breadth matches cpio's role as a standard archive utility rather than an application-level tool.

### How it is used

GNU cpio has three primary modes: copy-out to create archives from file lists, copy-in to extract archives, and copy-pass to copy directory trees. The manual emphasizes pipelines with find or ls, archive media such as disk files, tapes, and pipes, and compatibility with multiple cpio and tar formats.

### Why package nerds care

Package maintainers care about cpio because it is both a user-facing archive command and an old archive format that still appears in build systems, initramfs tooling, backups, and historical Unix data. GNU cpio's NEWS also matters to distributors because it records CVE fixes, reproducibility options, and large-file behavior changes.

### Timeline

- 1996: GNU FTP archive lists cpio 2.4.2.
- 2007: Version 2.9 switched GNU cpio to GPLv3.
- 2015: Version 2.12 added --reproducible archive support.
- 2019: Version 2.13 fixed CVE-2015-1197, CVE-2016-2037, and CVE-2019-14866.
- 2024: Version 2.15 fixed copy-in and --no-absolute-filenames behavior.

### Related projects

- GNU tar is related through archive-format compatibility.
- GNU find is commonly paired with cpio to provide file lists.

### Sources

- <https://www.gnu.org/software/cpio/manual/>
- <https://ftp.gnu.org/gnu/cpio/cpio-2.15.tar.gz>
- <https://ftp.gnu.org/gnu/cpio/>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

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

## Other Package-Manager Records

- Debian apt - cpio - 2.15+dfsg-2: normalized package name match | Debian stable package indexes: cpio from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU cpio -- a program to manage archives of files | https://www.gnu.org/software/cpio/
- Nix - cpio: normalized package name match | nixpkgs package indexes: pkgs/by-name/cp/cpio/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - cpio - 2.15+dfsg-1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: cpio from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GNU cpio -- a program to manage archives of files | https://www.gnu.org/software/cpio/
- apk - cpio - 2.15-r0: normalized package name match | Alpine Linux edge package indexes: cpio from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | tool to copy files into or out of a cpio or tar archive | https://www.gnu.org/software/cpio
- apk - cpio-doc - 2.15-r0: normalized package name match | Alpine Linux edge package indexes: cpio-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | tool to copy files into or out of a cpio or tar archive (documentation) | https://www.gnu.org/software/cpio
- dnf - cpio - 2.15-9.fc44: normalized package name match | Fedora Rawhide package metadata: cpio from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A GNU archiving program | https://www.gnu.org/software/cpio/
- pacman - cpio - 2.15-3: normalized package name match | Arch Linux sync databases: cpio from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A tool to copy files into or out of a cpio or tar archive | https://www.gnu.org/software/cpio
- zypper - cpio - 2.15-7.2: normalized package name match | openSUSE Tumbleweed package metadata: cpio from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A Backup and Archiving Utility | https://www.gnu.org/software/cpio/cpio.html
- zypper - cpio-lang - 2.15-7.2: normalized package name match | openSUSE Tumbleweed package metadata: cpio-lang from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Translations for package cpio | https://www.gnu.org/software/cpio/cpio.html
- zypper - cpio-mt - 2.15-7.2: normalized package name match | openSUSE Tumbleweed package metadata: cpio-mt from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Tape drive control utility | https://www.gnu.org/software/cpio/cpio.html
- MacPorts - cpio: normalized package name match | MacPorts ports tree: archivers/cpio/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- winget - GnuWin32.Cpio: normalized package name match | Windows Package Manager source index: GnuWin32.Cpio from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Archive and compression packages](https://www.automicvault.com/pkg/archive-compression-tools/) - Matched archive or compression metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [virt-manager](https://www.automicvault.com/pkg/brew/virt-manager/) - Popular package that depends on this formula.
- [dar](https://www.automicvault.com/pkg/brew/dar/) - Shares av.db curated category or tags: archiving, backup, cli, system.
- [gnu-tar](https://www.automicvault.com/pkg/brew/gnu-tar/) - Shares av.db curated category or tags: archive, backup, cli, system, tar.
- [p7zip](https://www.automicvault.com/pkg/brew/p7zip/) - Shares av.db curated category or tags: archive, archiving, cli, system.
- [tarlz](https://www.automicvault.com/pkg/brew/tarlz/) - Shares av.db curated category or tags: archiving, cli, system, tar.
- [afio](https://www.automicvault.com/pkg/brew/afio/) - Shares av.db curated category or tags: archive, backup, cli, system.
- [borgbackup](https://www.automicvault.com/pkg/brew/borgbackup/) - Shares av.db curated category or tags: archive, backup, cli, system.
- [gaffitter](https://www.automicvault.com/pkg/brew/gaffitter/) - Shares av.db curated category or tags: archiving, cli, system.
- [gzip](https://www.automicvault.com/pkg/brew/gzip/) - Shares av.db curated category or tags: archive, cli, gnu, system.
- [bash](https://www.automicvault.com/pkg/brew/bash/) - Local package facts share a topical domain. Shared terms: cli, gnu, system.

## Combined YAML source

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