Easy Way to Extract RPM with P7zip Under Linux
Red Hat Package Manager, abbreviated RPM, RPM is some sort of cpio archive.
P7ZIP is a port of 7za.exe for POSIX systems like Unix (Linux, Solaris, OpenBSD, FreeBSD, Cygwin, AIX, …), MacOS X and BeOS,it supports many formats:
- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR
- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM, MSI, WIM, Z, CPIO, RPM, DEB and NSIS
so if you want to extract a RPM file, such as myrpm.rpm,you can do in this way
7z myrpm.rpm 7z myrpm.cpio
btw, under windows, you can use 7-zip to do the same job.
reference,