On Thu, Nov 16, 2017 at 10:25:38AM -0500, Neal Becker wrote:
[nbecker@nbecker2 ~]$ sudo dnf repoquery --whatrequires plexmediaserver [nbecker@nbecker2 ~]$ sudo dnf remove plexmediaserver
[...]
... a list of 438 packages!! Why would dnf want to remove them?!?
It thinks that these packages were only installed to resolve plexmediaserver dependencies in the first place. The intention is that `dnf install plexmediaserver` and `dnf remove plexmediaserver` should be inverse operations, without the side-effect of leaving a bunch of packages plexmediaserver pulled in as dependencies installed even though you no longer need them.
Although this is finally fixed, there was a long-standing lack of communicationb between DNF and PackageKit which may result in packages which were deliberately installed not being marked as such.
See `dnf repoquery --userinstalled` to list packages marked as manually/intentionally installed.
Use `dnf mark install packagename` to mark something as something you want to not be autoremoved. Or `dnf mark install *`.
Use `dnf remove plexmediaserver --noautoremove` to remove plexmediaserver without trying to be smart about unused dependencies now.
Set `clean_requirements_on_remove` to False in dnf.conf to disable this behavior entirely.