Rpm doesn't keep track of install-time flags per se, *but* it does keep track
of file states in packages. So you can find out which packages have
non-installed files, and which of those files are docs.
```
rpm -qa --qf "[%{=name} %{filestates:fstate}\n]"|sort -u|grep -i "not installed"
```
That'll give you packages with files that were skipped due to some install
policy, nodocs being the most common of course. To only list documentation, one
could use something like this:
```
rpm -qa --qf "[%{=name} %{filestates:fstate} %{fileflags:fflags}\n]" |sort
-u|grep "not installed d"
```
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/4010#discussioncomment-14726106
You are receiving this because you are subscribed to this thread.
Message ID:
<rpm-software-management/rpm/repo-discussions/4010/comments/[email protected]>_______________________________________________
Rpm-maint mailing list
[email protected]
https://lists.rpm.org/mailman/listinfo/rpm-maint