$ curl cheat.sh/
 cheat:rpm2cpio 
---
tags: [ packaging ]
---
# To list contents of an RPM:
rpm2cpio <rpm-file> | cpio -vt

# To extract contents of an RPM:
rpm2cpio <rpm-file> | cpio -vid

 tldr:rpm2cpio 
# rpm2cpio
# Convert an RPM package to a `cpio` archive.
# More information: <http://ftp.rpm.org/max-rpm/s1-rpm-miscellania-rpm2cpio.html>.

# Convert an RPM package to a `cpio` archive and save it as `file.cpio` in the current directory:
rpm2cpio path/to/file.rpm}

$
Follow @igor_chubin cheat.sh