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
To debug / inspect your rpm I suggest to use redline which is a java program
Usage :
java -cp redline-1.2.1-jar-with-dependencies.jar org.redline_rpm.Scanner foo.rpm
Download : https://github.com/craigwblake/redline/releases