Friday, July 20, 2018

Extract files from RPM

To extract all files from an RPM, put the RPM into an empty directory, cd into that directory and run the following command:

$ rpm2cpio ./my.rpm | cpio -idmv

This will unpack the RPM inside the empty directory you created.