Hide Forgot
Description of problem: Few days ago I've removed yum package as I don't need it any more and now I see "dnf autoremove" is a bit useless :) I think that dnf themselves should be blacklisted by definition from list of packages which can possibly be removed. # dnf autoremove Last metadata expiration check: 0:38:04 ago on Tue Aug 30 17:31:04 2016. Dependencies resolved. Error: The operation would result in removing the following protected packages: dnf.
bascially it tries to remove some dependency of DNF. run dnf with --debugsolver and attach created directory "debugdata".
Created attachment 1196283 [details] debugdata debug data directory is in attachment
try something like: # dnf mark install dnf NetworkManager-wifi kernel-devel and all other packages which you want explicitly to keep. I think you were using yum-deprecated or/and PackageKit (until some release). Those 2 do not write to DNF database, so DNF thinks that it's not user-installed packages.
Just in case .. I've been generating debugdata on fully updated few minuter earlier system to latest rawhide. # dnf mark install dnf dnf-1.1.10-1.fc26.noarch marked as user installed. and after this "dnf autoremove" is producing now list of possibly to remove list of packages. Nevertheless if it is possible to mark package X to not be listed in atoremove list IMO dnf should be on such list OOTB.