If you want to extract the contents of an RPM to the current directory without installing it, run the following:
rpm2cpio foo.rpm | cpio -idv