Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a .rpm file on my windows machine. Is there a way to inspect this file (either on windows or centos) without installing it, to find out where it was compiled from? something like metadata?

share|improve this question

2 Answers 2

up vote 11 down vote accepted

They have lots of metadata. Use -qp to target the package file and --qf to specify which metadata you're interested in.

$ rpm -qp /var/cache/yum/x86_64/16/fedora/packages/db4-4.8.30-3.fc15.i686.rpm --qf "%{name}: %{buildhost}\n"

rpm --querytags will show you the metadata tags.

share|improve this answer
Any way to do that on a Windows machine (just out of curiosity)? – Mark Henderson Aug 5 '12 at 20:30
@Mark: There's this, but I doubt it supports the new hash format. – Ignacio Vazquez-Abrams Aug 5 '12 at 20:34

To check metadata on windows machine - you will need rpm utility. You can run RPM utility on Windows via Cygwin: - then from cygwin console you can run rpm -qip /path/file.rpm

On centos - rpm -qip /path/file.rpm

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.