Reference

CPIO

CPIO ("copy in, copy out") is a Unix archive format that bundles many files into one stream, similar to tar. It is used in software packaging (inside RPM packages) and in Linux initial-RAM-disk (initramfs) images.

Files & formatsGeneral

CPIO

Also known as: CPIO file, .cpio archive, copy in copy out

CPIO ("copy in, copy out") is a Unix archive format that bundles many files into one stream, similar to tar. It is used in software packaging (inside RPM packages) and in Linux initial-RAM-disk (initramfs) images.

  • Unix archive format similar to tar
  • Used inside RPM packages and Linux initramfs
  • Extracted with cpio, bsdtar, or 7-Zip

A tar-like archiver

Like tar, CPIO packs many files into a single archive without compressing them, preserving names and permissions. It reads file lists from input, which is where "copy in, copy out" comes from.

Though less common for everyday use than tar, it persists in important places under the hood of Linux systems.

Where CPIO is used

RPM packages and Linux initramfs (the early-boot RAM filesystem) are built on CPIO archives. The `cpio` command and tools like 7-Zip and bsdtar extract them; they are often paired with gzip for compression.

Related terms

Keep reading the reference.