Extract files from an rpm

If you want to extract the files from an rpm, it’s really easy. I needed to use this recently when I was going to install a printer driver in UNIX. The manufacturer had a linux rpm available for download, but I didn’t need the whole thing, just the PPD file. So, I ran this command and copied out the PPD file that I needed.

rpm2cpio package.rpm | cpio -dimv

Leave a Comment