How to extract a file from a rpm package
- 3 easy ways -



According to Peck Dickens:

1) The easiest way is to use Midnight Commander to navagate into the RPM and then copy the file out that you are interested in.

2) Another method is to do it at the command line using the following commands:
 cd /tmp
 md rpmtmp
 cd rpmtmp
 rpm2cpio {FullNameOfRPM} | cpio -iumd {FullNameOfFileToExtract}

Be sure to clean up after you.

According to Pam Roberts:

3) You can use rpm-get, which is in rpm-utils-1.5-1.noarch.rpm from your friendly local rpmfind.net and installs without any problems.


searchSearch Index