Skip to content

Extracting an RPM without installing it

If you want to inspect files in an RPM without installing it, use rpm2cpio piped to cpio:

rpm2cpio file.rpm | cpio -id

Note that this will create a (local) directory tree under which the extracted files will be placed. In other words, expect the files to be extracted under a newly created “usr” directory or similar.

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*