Command-line tool
cpio
brew/cpio
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Copies files into or out of a cpio or tar archive archive tar gnuwin32 cpio
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
winget install --id GnuWin32.Cpio -e
macOS
brew install cpio
Linux
brew install cpio
Take a list of file names from `stdin` and add them onto an archive (copy-[o]ut) in cpio's binary forma
echo "path/to/file1 path/to/file2 ..." | cpio -o > archive.cpio
Copy all files and directories in a directory and add them onto an archive (copy-[o]ut), in verbose mode
find path/to/directory | cpio -ov > archive.cpio
Pick all files from an archive (copy-[i]n), generating directories where needed, in verbose mode
cpio < archive.cpio -idv
Related command-line tools
- rpm2cpio
Tool to convert RPM package to CPIO archive - afio
Creates cpio-format archives - gzip
Popular GNU data compression program archive gnuwin32 gzip - pax
Portable Archive Interchange archive tool - btyacc
A version of Byacc with backtracking (from GNUWin32) - rsync
Utility that provides fast incremental file transfer - file-formula
Utility to determine file types file gnuwin32 - zip
Compression and file packaging/archive utility
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents