Description of problem: Version-Release number of selected component (if applicable): dnf-0.3.7-1.gitf8bdc98.fc19.noarch How reproducible: always Steps to Reproduce: 1. yum remove kernel 2. dnf erase kernel Actual results: dnf remove *all* kernels at the moment yum remove not using kernels at the moment Expected results: dnf remove not using kernels at the moment Additional info: # dnf erase kernel Setting up Remove Process Resolving Dependencies --> Starting dependency resolution --> Finding unneeded leftover dependencies ... ---> Package kernel.x86_64 3.9.3-301.fc19 will be erased ---> Package kernel.x86_64 3.9.4-300.fc19 will be erased ---> Package kernel.x86_64 3.9.5-301.fc19 will be erased ---> Package kernel-modules-extra.x86_64 3.9.3-301.fc19 will be erased ---> Package kernel-modules-extra.x86_64 3.9.4-300.fc19 will be erased ---> Package kernel-modules-extra.x86_64 3.9.5-301.fc19 will be erased ... Transaction Summary ===================================================================================================================================================== Remove 81 Packages Installed size: 0 Is this ok [y/N] # yum erase kernel Loaded plugins: langpacks, refresh-packagekit Skipping the running kernel: kernel-3.9.5-301.fc19.x86_64 Resolving Dependencies --> Running transaction check ---> Package kernel.x86_64 0:3.9.3-301.fc19 will be erased --> Processing Dependency: kernel-uname-r = 3.9.3-301.fc19.x86_64 for package: kernel-modules-extra-3.9.3-301.fc19.x86_64 --> Processing Dependency: kernel-uname-r = 3.9.3-301.fc19.x86_64 for package: 1:kmod-nvidia-3.9.3-301.fc19.x86_64-319.23-1.fc19.x86_64 ---> Package kernel.x86_64 0:3.9.4-300.fc19 will be erased --> Processing Dependency: kernel-uname-r = 3.9.4-300.fc19.x86_64 for package: 1:kmod-nvidia-3.9.4-300.fc19.x86_64-319.23-1.fc19.3.x86_64 --> Processing Dependency: kernel-uname-r = 3.9.4-300.fc19.x86_64 for package: kernel-modules-extra-3.9.4-300.fc19.x86_64 --> Running transaction check ---> Package kernel-modules-extra.x86_64 0:3.9.3-301.fc19 will be erased ---> Package kernel-modules-extra.x86_64 0:3.9.4-300.fc19 will be erased ... --> Finished Dependency Resolution ... Transaction Summary ===================================================================================================================================================== Remove 2 Packages (+4 Dependent packages) Installed size: 289 M Is this ok [y/N]:
This is not a bug, there's no real reason besides some false user-protection to make an exception in the 'erase' semantics for kernel. In fc85529 I document this difference from Yum: http://akozumpl.github.io/dnf/cli_vs_yum.html#dnf-erase-kernel-deletes-all-packages-called-kernel
(In reply to Ales Kozumplik from comment #1) > This is not a bug, there's no real reason besides some false user-protection > to make an exception in the 'erase' semantics for kernel. > > In fc85529 I document this difference from Yum: > > http://akozumpl.github.io/dnf/cli_vs_yum.html#dnf-erase-kernel-deletes-all- > packages-called-kernel I think this bug good idea. You think otherwise ?