how to extract specific files from an RPM

1. create a cpio file from the RPM:
# rpm2cpio name_of_package.RPM > name_of_package.cpio

2. extract the desired file from the cpio file:
# cpio -id < name_of_package.cpio ./full_path_and_name_of_the_file_you_want

3. the file will be in full_path_to_the_file_you_want relative to the directory in which you ran the cpio command.

Leave a Reply