I remember reading somewhere (I think on Maximum RPM) that there's a way to define custom tags (e.g., like 'name', '%provides', etc.) to be used in the RPM spec file, which can then by used in querying the package using --queryformat. For example: my-1.00-1.spec name: my version: 1.00 release: 1 %description: blah blah blah %mynewtag super-duper-tag contents . . . After building and packaging I wish I could use: rpm -q --queryformat '%{mynewtag}\n' <rpm-file> which will print out: super-duper-tag contents I would appreciate any pointers on how to accomplish that. Thanks, /Danny