dnf distro-sync oddities
Harald Hoyer
harald at redhat.com
Fri Aug 14 10:22:09 UTC 2015
Correct me, if I am doing s.th. wrong, but....
# dnf distro-sync --allowerasing
[…]
Installing:
[…]
Upgrading:
Removing:
[…]
kernel x86_64 4.2.0-0.rc4.git1.2.fc24 @System 0
kernel x86_64 4.2.0-0.rc4.git4.2.fc24 @System 0
kernel x86_64 4.2.0-0.rc6.git0.1.fc24 @System 0
kernel-core x86_64 4.2.0-0.rc4.git1.2.fc24 @System 51 M
kernel-core x86_64 4.2.0-0.rc4.git4.2.fc24 @System 51 M
kernel-core x86_64 4.2.0-0.rc6.git0.1.fc24 @System 51 M
kernel-devel x86_64 4.2.0-0.rc4.git1.2.fc24 @System 37 M
kernel-devel x86_64 4.2.0-0.rc4.git4.2.fc24 @System 37 M
kernel-devel x86_64 4.2.0-0.rc6.git0.1.fc24 @System 37 M
kernel-headers x86_64 4.2.0-0.rc6.git0.1.fc24 @System 3.5 M
kernel-modules x86_64 4.2.0-0.rc4.git1.2.fc24 @System 17 M
kernel-modules x86_64 4.2.0-0.rc4.git4.2.fc24 @System 17 M
kernel-modules x86_64 4.2.0-0.rc6.git0.1.fc24 @System 17 M
kernel-modules-extra x86_64 4.2.0-0.rc4.git1.2.fc24 @System 2.0 M
kernel-modules-extra x86_64 4.2.0-0.rc4.git4.2.fc24 @System 2.1 M
kernel-modules-extra x86_64 4.2.0-0.rc6.git0.1.fc24 @System 2.1 M
[…]
Downgrading:
[…]
Transaction Summary
Install 27 Packages
Upgrade 589 Packages
Remove 287 Packages
Downgrade 135 Packages
Total size: 555 M
Total download size: 362 M
Ok, this let me check, if dnf really tries to remove all my kernels.
# dnf list kernel
Installed Packages
kernel.x86_64 4.2.0-0.rc4.git1.2.fc24 @System
kernel.x86_64 4.2.0-0.rc4.git4.2.fc24 @System
kernel.x86_64 4.2.0-0.rc6.git0.1.fc24 @System
Hmm, so let's exclude the kernel package, then.
# dnf distro-sync --allowerasing --exclude='kernel*'
and I got the same output as above including all my kernels in the remove list.
Even!
# dnf list extras kernel
only lists the "*rc4*" kernels. The rc6 kernel is available, so distro-sync
should not remove it.
So:
1. Why is dnf trying to remove my kernel?
2. Why does it not honor the "--exclude"?
Before filing a bug, I wanted to ask on this list, if I am doing s.th. stupid..
Thanks for reading and always check the rpm list :)
More information about the devel
mailing list