Description of problem: The following URL from your site shows that the rpm tags FILEUIDS/FILEGIDS are defined: http://www.redhat.com/docs/books/max-rpm/max-rpm-html/ch-queryformat-tags.html However, using them gives an error. Version-Release number of selected component (if applicable): rpm-4.3.3-22_nonptl How reproducible: Run this command: rpm -qf --queryformat '[%{FILEUIDS}:%{FILEGIDS}:%{FILENAMES}\n]' /bin/ps Steps to Reproduce: 1. Run the above command 2. 3. Actual results: An error message is shown: error: incorrect format: unknown tag Expected results: File userids/gids should be listed for the relevant package. Additional info:
Neither of FILEUIDS or FILEGIDS have been populated since (at least) rpm-2.4 in December, 1997. NOTABUG
So shouldn't the rpm command show nothing for their values rather than giving an error then? If I request the FILEMD5S for a symbolic link it shows no value, rather than an error.
Maximum RPM is somewhat dated, as jbj says those are legacy header entries and not populated by rpmbuild. Instead you should use: rpm -qf --queryformat '[%{FILEUSERNAME}:%{FILEGROUPNAME}:%{FILENAMES}\n]' You've specified not queryable tags - rpm --querytags | grep IDS shows you that, the error is correct. FILEMD5 is a queryable tag that may be empty. It's a different case.