On Mon, 1 Dec 2008, Till Maas wrote:
Hiyas, I would like to get the output of "rpm -qpl foo.rpm" with an additional marker, when a file is marked as %doc or specific for a specific language. For the docfiles, there is at least a not so easily readable way to get this information (rpm --dump), but I cannot find a way to get this for the language specific files. It would be nice to get the output formated like this: /sbin/foo D /usr/share/man/man8/foo.8.gz D de /usr/share/man/de/man8/foo.8.gz
Docs, config files, ghosts and the like can be viewed with this ('d' is for doc):
rpm -qp --qf "[%{fileflags:fflags} %{filenames}\n]" <pkg>
For languages there are no special formatters but this will give you the
languages associated (if any) to each file:
--qf "[%{filelangs} %{filenames}\n]"
- Panu -