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?
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?
They have lots of metadata. Use
-qp
to target the package file and--qf
to specify which metadata you're interested in.rpm --querytags
will show you the metadata tags.To check metadata on windows machine - you will need rpm utility. You can run RPM utility on Windows via Cygwin: http://cygwin.com/ - then from cygwin console you can run
rpm -qip /path/file.rpm
On centos -
rpm -qip /path/file.rpm
I've forked @Ignacio answer and created oneliner to quickly go over all tags: