Wednesday, September 10, 2008

Extracting a File from RPM Package

Ever wanted to see the contents of just one file inside a RPM package but didn't want to actually install the package? Then simply do the following which will extract all the files into the current directory

rpm2cpio package_name.rpm | cpio -idm

Can also a "v" option for a verbose progress listing.

No comments: