Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: OS : Fedora 24 command : dnf update Result : Dependencies resolved. Error: The operation would result in removing the booted kernel: kernel-core-4.5.5-300.fc24.x86_64. It's simply trying to remove booted and I have 2 kernels # rpm -q kernel kernel-4.5.2-302.fc24.x86_64 kernel-4.5.5-300.fc24.x86_64 My dnf conf is [root@localhost dnf]# cat dnf.conf [main] gpgcheck=1 installonly_limit=4 clean_requirements_on_remove=True installonlypkgs=electron Version-Release number of selected component (if applicable): dnf-1.1.9-2.fc24.noarch How reproducible: dnf update Steps to Reproduce: 1. dnf update and warning message Actual results: Cancel the update because of kernel update problem. I can skip that If I exclude kernel and continue the update other packages but not the kernel but If install myself manually It will going to install new kernel and then we can updated but never did. Expected results: Update system normally Additional info: If need let me know Thank you
The problem is that the specified option in conf overridden the default value. We can introduce the new syntax that would append the new ones to existing value.
To make it clear: You've specified installonlypkgs=electron in dnf.conf which replaces default instalonlypkgs value. If you want to add electron to the list of installonly packages you have to include old values as well: installonlypkgs=kernel installonlypkg(kernel) installonlypkg(kernel-module) installonlypkg(vm) electron
I changed that value and now I can install kernel and others too or just simply disable also works too thank you.
we can also don;t override the default value "kernel". We should just unify all ~kernel provides to one kernel provide name and abandon "installonlypkg(*)"
*** This bug has been marked as a duplicate of bug 1348766 ***