Ask Your Question

dnf autoremove confuses me again

asked 2015-09-26 20:22:06 -0500

florian gravatar image

updated 2015-09-27 10:36:47 -0500

mether gravatar image

When I execute sudo dnf autoremove dnf wants to remove packages that I installed intentionally using dnf. Why is this happening and how can I prevent this?

 alacarte                            noarch   3.11.91-2.fc21    @System   369 k
 audacious-plugins-jack              x86_64   3.6.2-1.fc22      @System    20 k
 dnf-plugin-system-upgrade           noarch   0.4.1-1.fc22      @System    78 k
 kernel                              x86_64   4.1.6-201.fc22    @System     0  
 kernel-core                         x86_64   4.1.6-201.fc22    @System    42 M
 kernel-devel                        x86_64   4.1.6-201.fc22    @System    36 M
 kernel-devel                        x86_64   4.1.7-200.fc22    @System    36 M
 kernel-modules                      x86_64   4.1.6-201.fc22    @System    17 M
 kernel-modules-extra                x86_64   4.1.6-201.fc22    @System   2.1 M
 libipa_hbac                         x86_64   1.13.0-4.fc22     @System    53 k
 libsss_idmap                        x86_64   1.13.0-4.fc22     @System    65 k
 libsss_nss_idmap                    x86_64   1.13.0-4.fc22     @System    61 k
 python2-dnf-plugin-system-upgrade   noarch   0.4.1-1.fc22      @System    52 k
 python3-sssdconfig                  noarch   1.13.0-4.fc22     @System   214 k
 sssd                                x86_64   1.13.0-4.fc22     @System    34 k
 sssd-ad                             x86_64   1.13.0-4.fc22     @System   482 k
 sssd-client                         x86_64   1.13.0-4.fc22     @System   206 k
 sssd-common                         x86_64   1.13.0-4.fc22     @System   3.1 M
 sssd-common-pac                     x86_64   1.13.0-4.fc22     @System   151 k
 sssd-ipa                            x86_64   1.13.0-4.fc22     @System   483 k
 sssd-krb5                           x86_64   1.13.0-4.fc22     @System    76 k
 sssd-krb5-common                    x86_64   1.13.0-4.fc22     @System   224 k
 sssd-ldap                           x86_64   1.13.0-4.fc22     @System   149 k
 sssd-proxy                          x86_64   1.13.0-4.fc22     @System   129 k
 strace                              x86_64   4.10-2.fc22       @System   1.2 M

EDIT: sssd-tools were just updated in the last days... now dnf wants to remove them... I installed alacarte recently using dnf. Something is strange here again. I was hoping to leave this behavior behind since dnf is taking care of my packages. With yum I was used to such things...

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-09-26 22:10:15 -0500

updated 2015-09-26 22:11:53 -0500

Is your system completely up to date? 'Cause your confusion is legitimate; this looks like buggy behavior which has been seen before. The autoremove functionality should no longer mistake kernel packages for removable leaf packages (explanation in the comments of the bugzilla link), so this is definitely unintended behavior on behalf of the dnf-plugins-core software (unless you really did, somehow, install that kernel purely as a dependency to other software?). At the end of the bug report, it looks like the original reporter was still seeing trouble. If you're all patched up, you should report it on bugzilla.

edit flag offensive delete link more


Yes, system is up-to-date. I am usually running dnf upgrade once a day. Let me report it tomorrow. Thanks for your input, bitwiseoperator. Have a good night.

florian gravatar imageflorian ( 2015-09-26 22:44:56 -0500 )edit

Yup, thanks for the response - I think a bug report is the only way to go. If anyone else reads this and disagrees, I'd love to hear the fix, but it seems clearly to be unexpected behavior on behalf of dnf, so a bug report seems fitting. Feel free to mark the answer as correct if/when you agree that this is a bug and not a configuration issue with which we could help in . If it turns out not to be a bug, we'll figure out what to do about it here.

bitwiseoperator gravatar imagebitwiseoperator ( 2015-09-26 22:58:14 -0500 )edit
florian gravatar imageflorian ( 2015-09-28 11:12:06 -0500 )edit

Nice work, sir.

bitwiseoperator gravatar imagebitwiseoperator ( 2015-09-28 15:36:24 -0500 )edit

answered 2016-04-01 14:20:45 -0500

sudoman gravatar image

Run the following command for the packages you wish to keep:

# dnf mark install package-name0 package-name1 ...

This will tell dnf not to autoremove these packages or their dependencies.

edit flag offensive delete link more


Yea, I did this as a workaround but this can only be a temporary solution. Dnf should be able to manage needed packages....

florian gravatar imageflorian ( 2016-04-03 10:10:06 -0500 )edit

Question Tools



Asked: 2015-09-26 20:22:06 -0500

Seen: 5,304 times

Last updated: Apr 01 '16