-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
Hello,
One just noticed that `dnf autoremove` is trying to remove `fedora- repos-modular` and `fedora-repos-rawhide-modular`.
tl;dr. fedora-repos-modular inherit installation reason from fedora- repos (DEPENDENCY) and nothing depends on fedora-repos-modular so it is not needed anymore (from the solver POV).
The fedora-repos is being pulled in by fedora-release-common (that is brought by fedora-release-workstation or others). fedora-repos is not part of the @core group in comps so its reason recorded in DNF DB is 1.
enum class TransactionItemReason : int { UNKNOWN = 0, DEPENDENCY = 1, USER = 2, CLEAN = 3, // hawkey compatibility WEAK_DEPENDENCY = 4, GROUP = 5 };
On my laptop:
❯ sqlite3 /var/lib/dnf/history.sqlite sqlite> select trans_id,name,epoch,version,release,reason from trans_item join rpm on rpm.item_id=trans_item.item_id where name like 'fedora-release%' or name like 'fedora-repos%'; 1|fedora-release-common|0|33|0.8|1 1|fedora-release-identity-workstation|0|33|0.8|1 1|fedora-release-workstation|0|33|0.8|5 1|fedora-repos|0|33|0.6|1 1|fedora-repos-rawhide|0|33|0.6|1 21|fedora-release-common|0|33|0.9|1 21|fedora-release-common|0|33|0.8|1 21|fedora-release-identity-workstation|0|33|0.9|1 21|fedora-release-identity-workstation|0|33|0.8|1 21|fedora-release-workstation|0|33|0.9|5 21|fedora-release-workstation|0|33|0.8|5 143|fedora-repos-modular|0|33|0.8|1 143|fedora-repos-rawhide-modular|0|33|0.8|1 143|fedora-repos|0|33|0.8|1 143|fedora-repos|0|33|0.6|1 143|fedora-repos-rawhide|0|33|0.8|1 143|fedora-repos-rawhide|0|33|0.6|1
The packages that have been brought by the obsoletes inherit reason (DEPENDENCY in this case) and since nothing depends on those they are automatically cleaned up on the autoremove.
I don't know where / which the fix should be: DNF, comps or both. Simply putting the fedora-repos-modular in comps won't help since DNF is only using them when running `group install/update/remove`.
So sending this email just in case somebody will see this interesting behavior. - -- Igor Raits ignatenkobrain@fedoraproject.org