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
Regards, Till
On Mon, 2008-12-01 at 21:22 +0100, Till Maas wrote:
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
This would be in addition to the existing rpm -qd ? (query for documentation files)
On Mon December 1 2008, Jesse Keating wrote:
On Mon, 2008-12-01 at 21:22 +0100, Till Maas wrote:
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
This would be in addition to the existing rpm -qd ? (query for documentation files)
Yes, the rpm -qd does only show the documentation files and seems not to show, whether the files are specific for a certain language. E.g. it does not allow easily to spot files that should probably marked as %doc, but are not in package reviews. Btw. it also seems that directories that only contain %doc-files are not marked as %doc, e.g. /usr/share/doc/foo-1.23, is this intended?
Regards, Till
On Mon, 1 Dec 2008, Till Maas wrote:
On Mon December 1 2008, Jesse Keating wrote:
On Mon, 2008-12-01 at 21:22 +0100, Till Maas wrote:
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
This would be in addition to the existing rpm -qd ? (query for documentation files)
Yes, the rpm -qd does only show the documentation files and seems not to show, whether the files are specific for a certain language. E.g. it does not allow easily to spot files that should probably marked as %doc, but are not in package reviews. Btw. it also seems that directories that only contain %doc-files are not marked as %doc, e.g. /usr/share/doc/foo-1.23, is this intended?
Yes, the directories are not documentation, the contents are :)
- Panu -
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 -
On Mon December 1 2008, Panu Matilainen wrote:
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]"
Thank you very much, this is so great! :-D
Regards, Till