search on lynty.com

Related Articles

rpm

Print PDF

How To Extract an RPM Package Without Installing It (rpm extract command)

Extract rpm File

So rpm2cpio converts the .rpm file specified as a single argument to a cpio archive on standard out. If a - argument is given, an rpm stream is read from standard in.

Syntax is as follows:

rpm2cpio myrpmfile.rpm rpm2cpio - < myrpmfile.rpm rpm2cpio myrpmfile.rpm | cpio -idmv

Examples - Extract files from rpm


$ rpm2cpio php-5.1.4-1.esp1.x86_64.rpm | cpio -idmv




source:http://www.cyberciti.biz/tips/how-to-extract-an-rpm-package-without-installing-it.html

 

Related Articles+