Red Hat Package Manager, abbreviated RPM, by default, you need install RPM under Red Hat, but some times, we just want to extract something from RPM without installation, how to?
I like using 7-Zip under Windows, 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 I think I can extract file from RPM with the help of 7-ZIP, but I am not sure if it has Linux version, so I googled it, it does not, but I found alternative, P7ZIP:
p7zip is a port of 7za.exe for POSIX systems like Unix (Linux, Solaris, OpenBSD, FreeBSD, Cygwin, AIX, …), MacOS X and BeOS.
now, I got it.
btw, under Debian or Ubuntu, it is very easy to install it and use,
apt-get install p7zip-full
7z x ABC.RPM
7z x ABC.cpio.gz
7z x ABC.cpio