Do .rpm files have metadata

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"
db4: x86-10.phx2.fedoraproject.org

rpm --querytags will show you the metadata tags.

Leave a Comment