RubyPDF Blog Linux,tutorial,Ubuntu How to Unzip or Extract RPM under Linux

How to Unzip or Extract RPM under Linux

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

1 thought on “How to Unzip or Extract RPM under Linux”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.