Mailinglist Archive: opensuse (527 mails)

< Previous Next >
Re: [opensuse] TW: Zypper dup : removal of previous kernels
On 08/12/2016 02:48 AM, Felix Miata wrote:
Patrick Shanahan composed on 2016-08-11 19:32 (UTC-0400):

ellanios82 composed:

TW: zypper dup : How may i prevent removal of previous kernels ?

{ in

/etc/zypp/zypp.conf

had uncommented "multiversion = provides:multiversion(kernel)"

On next uncommented line following that one, do you have a line that looks anything like this?

multiversion.kernels = latest,latest-1,running

but seems this no longer prevents removal of previous kernels. }

I believe it does but not point releases as:
4.7.0-1.1
4.7.0-1.2
4.7.0-1.3

at least it does for me on Tw.

Same here.

- thank you Patrick , thank you Felix

............


- am trying placing a new file called 'multiversion.d' [there was nothing before] in :


/etc/zypp/multiversion.d/


- i do not understand anything about how to construct

such a file , but struggling to understand the 'example' ,

have taken this attempt to make file :

............................


- file is named 'multiversion.d' , in directory :
/etc/zypp/multiversion.d/

## Aug 11, 2016
## ------------------------- [/etc/zypp/multiversion.d/example file begin] -----------------------
## # An alternate way to enable kernel packages being
## # installed in parallel:
##
## provides:multiversion(kernel)
## ------------------------- [/etc/zypp/multiversion.d/example file end] -----------------------
##
## Valid values: A directory
## Default value: {configdir}/multiversion.d
##
multiversiondir = /etc/zypp/multiversion.d

## Comma separated list of kernel packages to keep installed in parallel, if the
## above multiversion variable is set. Packages can be specified as
## 2.6.32.12-0.7 - Exact version to keep
## latest - Keep kernel with the highest version number
## latest-N - Keep kernel with the Nth highest version number
## running - Keep the running kernel
## oldest - Keep kernel with the lowest version number (the GA kernel)
## oldest+N - Keep kernel with the Nth lowest version number
##
## Note: This entry is not evaluated by libzypp, but by the
## purge-kernels service (via /sbin/purge-kernels).
##
## Default: Do not delete any kernels if multiversion = provides:multiversion(kernel) is set
## Jan 06, 2016 : changed from latest-1 to latest-3
multiversion.kernels = latest,latest-3,running


......................

Does this attempt look 'workable' ?

thank you

regards

.........


--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >