.cpio File Extension
.cpio file is, how to open and inspect CPIO archives safely, how Poly supports them, and when TAR or ZIP is a better choice. File extension details for .cpio
Storage Only| File type | CPIO archive |
|---|---|
| MIME type | |
| Encoding | Binary archive container with binary or ASCII-encoded headers |
| Operating systems | Windows, macOS, Linux, Unix |
| Opens with | GNU cpio, bsdcpio, bsdtar, 7-Zip |
| Poly support | Yes. Poly stores, syncs, shares, versions, and downloads CPIO archives. |
| Indexed by Poly | Partial. Poly indexes the filename and ordinary file properties, not archived members. |
| Preview in Poly | No. Download the archive to list or extract its contents. |
| Poly agent | No. The Poly agent cannot inspect files packed inside the archive. |
What kind of file is a .cpio?
A .cpio file is a CPIO archive: a sequential container that can bundle files, directories, links, device nodes, and Unix metadata. It commonly uses the conventional application/x-cpio MIME type, which is not registered with IANA.1 CPIO does not compress data itself. You may also encounter a CPIO stream inside a compressed file or a Linux initramfs image with another suffix.
CPIO has several incompatible header layouts, so no single signature identifies every archive. Common ASCII variants begin with 070707 (odc), 070701 (newc), or 070702 (crc). Historical binary CPIO stores the octal value 070707 as a 16-bit integer, with byte order varying by system.2 Check the header and parse its fields rather than trusting the filename alone.
.cpio does not convert it. Likewise, changing backup.cpio to backup.tar leaves the CPIO data unchanged.How do I open a .cpio on my computer?
- On Linux and other Unix-like systems, use GNU
cpio,bsdcpio, or libarchive'sbsdtar. - On macOS,
bsdcpioorbsdtarcan inspect and extract compatible archives. - On Windows, 7-Zip can open CPIO archives, or you can use GNU or libarchive tools in a Unix-compatible environment.3
List an unfamiliar archive before extracting it. A CPIO member can request an absolute path, contain .. components, or create links and special files. Extract into a new directory as an unprivileged user, and disable absolute filenames when your tool provides that option. GNU cpio documents --no-absolute-filenames for this purpose.4
A .cpio.gz, .cpio.xz, or similarly wrapped file must first pass through the matching decompressor. The CPIO reader only sees archive headers after the outer compression layer is removed.
Poly support for .cpio
Poly recognizes .cpio as a CPIO archive. It stores, syncs, shares, versions, downloads, and finds the outer file by name and ordinary properties.
Poly does not list or extract members, generate a thumbnail, preview the archive, or index archived paths and content. The Poly agent cannot read files inside it. If you need content-aware search or agent access, extract the archive with a trusted utility and upload the individual files.
History of .cpio
Dick Haight wrote the original cpio utility for AT&T's Unix Support Group. It appeared with PWB/UNIX 1.0 in 1977, and its name describes its original copy-in and copy-out operations.2
Later versions introduced portable ASCII, binary, newc, and crc layouts. Linux still specifies newc or crc CPIO for initramfs images, optionally combined with kernel-supported compression.5 The suffix therefore remains useful in boot tooling, firmware, packaging, and legacy Unix interchange even though TAR is more common for general archives.
Working with .cpio and alternatives
Choose the container that matches the receiving system:
| Format | Good fit | Important tradeoff |
|---|---|---|
| CPIO | Linux initramfs, firmware, or an existing CPIO workflow | Multiple variants and weaker general desktop support |
| TAR | Unix file exchange and backups | Compression is normally a separate layer |
| ZIP | Cross-platform sharing | May not preserve every Unix-specific object or metadata field |
Older CPIO layouts impose practical limits. The original PWB layout is limited to 16 MB per file, the later binary layout to 2 GB, and newc to 4 GB.2 The crc variant's check value is only a sum of data bytes, not a cryptographic integrity check. Use a separately authenticated hash or signature when provenance matters.
Converting CPIO means extracting and repacking. That process can lose device nodes, hard-link relationships, permissions, or numeric ownership, so retain the original when it is a build input or boot image.
Footnotes
- Internet Assigned Numbers Authority. Media Types Registry. The application registry does not include
application/x-cpio. ↩ - FreeBSD Project. cpio(5): Format of CPIO Archive Files. The manual documents CPIO variants, history, limits, headers, and the
crcchecksum. ↩ ↩2 ↩3 - 7-Zip Project. 7-Zip. The project's supported unpacking formats include CPIO. ↩
- GNU Project. GNU CPIO Manual. The manual covers supported formats, listing, extraction, and pathname handling. ↩
- Linux Kernel documentation. initramfs Buffer Format. Linux initramfs uses
newcorcrcCPIO archives with optional compression. ↩