Extracting files from rpm

rpm2cpio .rpm | cpio -vid (or -vt just to view contents)