[opensuse-factory] zypper dup - kernel-devel and kernel-syms not cleant up on minor kernel updates
When updating the kernel, if it has just been recompiled due to a dependency change, zypper removes old packages, but just some of them, not all. This requires further manual steps to clean up. Example: The following 4 NEW packages are going to be installed: kernel-default 4.7.2-2.2 kernel-default-devel 4.7.2-2.2 kernel-devel 4.7.2-2.2 kernel-syms 4.7.2-2.2 ... The following 2 packages are going to be REMOVED: kernel-default 4.7.2-2.1 kernel-default-devel 4.7.2-2.1 Is there a logical reason for this? Why not remove also kernel-devel-4.7.2-2.1 and kernel-syms-4.7.2-2.1 for the above example, if there are the newer packages installed? René -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
René Krell writes:
When updating the kernel, if it has just been recompiled due to a dependency change, zypper removes old packages, but just some of them, not all. This requires further manual steps to clean up.
Example:
The following 4 NEW packages are going to be installed: kernel-default 4.7.2-2.2 kernel-default-devel 4.7.2-2.2 kernel-devel 4.7.2-2.2 kernel-syms 4.7.2-2.2
...
The following 2 packages are going to be REMOVED: kernel-default 4.7.2-2.1 kernel-default-devel 4.7.2-2.1
Is there a logical reason for this? Why not remove also kernel-devel-4.7.2-2.1 and kernel-syms-4.7.2-2.1 for the above example, if there are the newer packages installed?
-- Duncan Mac-Vicar P. - http://www.suse.com/ SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
René Krell writes:
When updating the kernel, if it has just been recompiled due to a dependency change, zypper removes old packages, but just some of them, not all. This requires further manual steps to clean up.
Example:
The following 4 NEW packages are going to be installed: kernel-default 4.7.2-2.2 kernel-default-devel 4.7.2-2.2 kernel-devel 4.7.2-2.2 kernel-syms 4.7.2-2.2
...
The following 2 packages are going to be REMOVED: kernel-default 4.7.2-2.1 kernel-default-devel 4.7.2-2.1
Is there a logical reason for this? Why not remove also kernel-devel-4.7.2-2.1 and kernel-syms-4.7.2-2.1 for the above example, if there are the newer packages installed?
René
Pressed sent by accident. Please look into /etc/zypp/zypp.conf the multiversion.kernels option. Mine is setup as: multiversion.kernels = latest,latest-1,running And then make sure the service purge-kernels is enabled: systemctl status purge-kernels Old kernels are removed on boot IIRC, or by running /sbin/purge-kernels -- Duncan Mac-Vicar P. - http://www.suse.com/ SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
2016-09-09 13:45 GMT+02:00 Duncan Mac-Vicar P.:
René Krell writes:
When updating the kernel, if it has just been recompiled due to a dependency change, zypper removes old packages, but just some of them, not all. This requires further manual steps to clean up.
Example:
The following 4 NEW packages are going to be installed: kernel-default 4.7.2-2.2 kernel-default-devel 4.7.2-2.2 kernel-devel 4.7.2-2.2 kernel-syms 4.7.2-2.2
...
The following 2 packages are going to be REMOVED: kernel-default 4.7.2-2.1 kernel-default-devel 4.7.2-2.1
Is there a logical reason for this? Why not remove also kernel-devel-4.7.2-2.1 and kernel-syms-4.7.2-2.1 for the above example, if there are the newer packages installed?
René
Please look into /etc/zypp/zypp.conf the multiversion.kernels option. Mine is setup as:
multiversion.kernels = latest,latest-1,running
Mine is the same: multiversion.kernels = latest,latest-1,running I haven't changed the default setting.
And then make sure the service purge-kernels is enabled:
systemctl status purge-kernels
Old kernels are removed on boot IIRC, or by running /sbin/purge-kernels
This command shows: purge-kernels.service - Purge old kernels Loaded: loaded (/usr/lib/systemd/system/purge-kernels.service; disabled; vendor preset: enabled) Active: inactive (dead) Cannot remember to have this changed manually, although it looks like that. Please note the problem is the PARTIAL deletion, not whether it deletes or not. Is this still a problem of purge-kernels.service? Thanks so far, René -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
2016-09-09 14:18 GMT+02:00 René Krell:
2016-09-09 13:45 GMT+02:00 Duncan Mac-Vicar P.:
René Krell writes:
When updating the kernel, if it has just been recompiled due to a dependency change, zypper removes old packages, but just some of them, not all. This requires further manual steps to clean up.
... Please note the problem is the PARTIAL deletion, not whether it deletes or not. Is this still a problem of purge-kernels.service?
Additionally please note that this is about minor kernel updates, where the kernel package itself didn't change directly in the build system. For major kernel updates the older one is preserved, which is quite fine for me, to have a fallback kernel, that worked. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (2)
-
Duncan Mac-Vicar P.
-
René Krell