I'm on RHEL (8), and install some packages without docs by using something like
`dnf install --nodocs -y git`. `--nodocs` effectively sets `tsopts=nodocs`.
(That's for a base container image with minimal size.)
I later want to "backfill" the documentation by reinstalling all packages that
are missing documentation with something like `sudo dnf --setopt='tsflags='
reinstall git-core-doc`. (When the container gets used by a human being.)
But as you can see on this trivial example already: The package I installed was
`git`, but I need to reinstall `git-core-doc` to backfill the documentation.
I'm now looking for a reliable way to identify all packages that got installed
with `nodocs` to reinstall them. Do you have any suggestions for me? Is the
information I'm looking for available in the rpmdb, or is it lost between dnf
and rpm?
I looked at `dnf history list`, and I could grep for all dnf invocations that
use `--nodocs` and reinstall the packages that are listed by `dnf history
info`. But there must be a less ugly way ...
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/4010
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/repo-discussions/[email protected]>
_______________________________________________
Rpm-maint mailing list
[email protected]
https://lists.rpm.org/mailman/listinfo/rpm-maint