How to extract rpm archive without installing

If you have a .rpm archive but don't use a rpm based distribution and want to extract some files from it, rpm2cpio utility comes into scene:

rpm2cpio xyz.rpm | cpio -idmv

It basically converts .rpm to cpio archive file and after that uses cpio to complete extraction process.







You must be login first or sign-up for an account to post comments.