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 is able to extract the contents. It works the same way that a tar.gz file works. A compressed file inside a compressed file.
On Windows 7 Pro with 7-Zip installed:
Right click the rpm file. Mouse over 7-Zip in the context menu. Select extract to "filename".
Enter into the filename folder.
Right click the cpio file. Mouse over 7-Zip in the context menu. Select extract to "filename".
You are done. The folder with "filename" contains the extracted contents for inspecting.
I know you Linux guys despise things being made easy, but in the long run, if you have to spend time hunting down a solution to a simple problem like this; that inefficiency is costing you money.
Given the fact that you Linux guys despise efficient simplicity, I highly doubt that the Linux version of 7-Zip will do the same thing in the exact same way.
Why make it easy when you can make downright stupid hard and claim to be a genius at the same time?
Just to be clear; I'm not a Windows fanboy. I'm actually looking into moving over to Linux. I just couldn't resist the opportunity to rub what Windows developers would see as common sense, best developer practices into your faces.
Just be glad it's me posting this and you don't have Mark Harmon standing next to you cause; Special agent Leroy Jethro Gibbs would have done given you a head slap for not using your head.
I don't know which Gibbs rule it is but the rule is: Don't make things harder for yourself than they have to be.
Now we get to see who needs to take a vacation. Take care!