I have an rpm and I want to treat it like a tarball. I want to extract the contents into a directory so I can inspect the contents. I am familiar with the querying commands
7-zip understands most kinds of archives, including rpm and the included cpio.
In OpenSuse at least, the unrpm command comes with the build package.
unrpm
build
In a suitable directory (because this is an archive bomb):
unrpm file.rpm