yum autoremove tries to remove systemd
jamescassell opened this issue · 1 comments
jamescassell commented
When running yum autoremove
, yum tries to remove systemd, even though systemd is marked as 'reason: user' in yumdb.
In my case, I'm trying to remove policycoreutils-python (in a container), which indirectly depends on shadow-utils, which is required by systemd.
I can workaround the issue by yumdb set reason user shadow-utils
to make the autoremove successful.
The reason seems to be that required_packages() and requiring_packages() do not run recursively:
Lines 115 to 128 in 1222f37
Lines 131 to 138 in 1222f37