extract the contents of an rpm

rpm2cpio foo.rpm | cpio -idv

the cpio args are:

  • -i: copy in

  • -d: create directories as needed

  • -v: verbose