• recent kernel

    From faeychild@2:250/1 to All on Mon Apr 11 06:13:59 2022


    I've stumbled into my own confusion here
    I was trying to clean up old kernels via MCC and listed the installed
    kernels



    kernel-desktop-5.15.23-1.mga8-1-1.mga8
    kernel-desktop-5.15.25-1.mga8-1-1.mga8
    kernel-desktop-5.15.28-1.mga8-1-1.mga8
    kernel-desktop-5.15.32-1.mga8-1-1.mga8
    kernel-desktop-5.15.4-1.mga8-1-1.mga8
    kernel-desktop-5.15.6-2.mga8-1-1.mga8

    So I thought , remove the kernels 5.15.23 and 5.15.25 and leave the last
    two 28 and 32

    But a closer look shows 5.15.4 and 5.15.6
    are they more recent?

    uname -a
    Linux unimatrix.cryptid 5.15.32-desktop-1.mga8 #1 SMP Mon Mar 28
    08:31:19 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

    cat /proc/version
    Linux version 5.15.32-desktop-1.mga8 (iurt@rabbit.mageia.org) (gcc
    (Mageia 10.3.0-2.mga8) 10.3.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP Mon
    Mar 28 08:31:19 UTC 2022

    I would seem to be running 5.15.32
    and I believe that I'm confused by the kernel numbering system and the
    sort order of MCC, but I'm not sure




    regards

    --
    faeychild
    Running plasmashell 5.20.4 on 5.15.32-desktop-1.mga8 kernel.
    Mageia release 8 (Official) for x86_64 installed via Mageia-8-x86_64-DVD.iso


    --- MBSE BBS v1.0.8 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From faeychild@2:250/1 to All on Mon Apr 11 06:20:15 2022
    On 11/4/22 15:13, faeychild wrote:

    OK I found the change log. They date from late last year.

    I can't imagine why they are still installed and never removed. It did
    rattle my chain though

    regards


    --
    faeychild
    Running plasmashell 5.20.4 on 5.15.32-desktop-1.mga8 kernel.
    Mageia release 8 (Official) for x86_64 installed via Mageia-8-x86_64-DVD.iso


    --- MBSE BBS v1.0.8 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From David W. Hodgins@2:250/1 to All on Mon Apr 11 06:22:02 2022
    On Mon, 11 Apr 2022 01:13:59 -0400, faeychild <faeychild@nomail.afraid.org> wrote:
    I've stumbled into my own confusion here
    I was trying to clean up old kernels via MCC and listed the installed
    kernels
    kernel-desktop-5.15.23-1.mga8-1-1.mga8
    kernel-desktop-5.15.25-1.mga8-1-1.mga8
    kernel-desktop-5.15.28-1.mga8-1-1.mga8
    kernel-desktop-5.15.32-1.mga8-1-1.mga8
    kernel-desktop-5.15.4-1.mga8-1-1.mga8
    kernel-desktop-5.15.6-2.mga8-1-1.mga8

    So I thought , remove the kernels 5.15.23 and 5.15.25 and leave the last
    two 28 and 32

    But a closer look shows 5.15.4 and 5.15.6
    are they more recent?

    uname -a
    Linux unimatrix.cryptid 5.15.32-desktop-1.mga8 #1 SMP Mon Mar 28
    08:31:19 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

    cat /proc/version
    Linux version 5.15.32-desktop-1.mga8 (iurt@rabbit.mageia.org) (gcc
    (Mageia 10.3.0-2.mga8) 10.3.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP Mon
    Mar 28 08:31:19 UTC 2022

    I would seem to be running 5.15.32
    and I believe that I'm confused by the kernel numbering system and the
    sort order of MCC, but I'm not sure

    Use 'rpm -qa|grep kernel|sort -V", or "rpm -qa --last|grep kernel" which
    will show the date installed, with most recent first.

    Or check a mirror. http://mirror.math.princeton.edu/pub/mageia/distrib/8/x86_64/media/core/updates/
    shows ...
    kernel-desktop-5.15.4-1.mga8-1-1.mga8.x86_64.rpm 2021-11-21 13:29 68M
    kernel-desktop-5.15.32-1.mga8-1-1.mga8.x86_64.rpm 2022-03-28 09:35 68M

    So .32 is newer than .4.

    Regards, Dave Hodgins


    --- MBSE BBS v1.0.8 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From David W. Hodgins@2:250/1 to All on Mon Apr 11 06:27:25 2022
    ------------oNOTLQdStP6h9Llszm9nKb
    Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: 8bit

    On Mon, 11 Apr 2022 01:20:15 -0400, faeychild <faeychild@nomail.afraid.org> wrote:
    On 11/4/22 15:13, faeychild wrote:
    OK I found the change log. They date from late last year.
    I can't imagine why they are still installed and never removed. It did rattle my chain though

    Old kernels and their associated packages such asvirtualbox-kernel are not automatically removed in order to allow fallback if booting a newer kernel fails.

    I use the attached script to remove old kernels.

    Regards, Dave Hodgins
    ------------oNOTLQdStP6h9Llszm9nKb
    Content-Disposition: attachment; filename=oldkernelsrm
    Content-Type: application/octet-stream; name=oldkernelsrm Content-Transfer-Encoding: Base64

    IyEvYmluL2Jhc2gKIyBTZXQgbnVtYmVyIG9mIHBhY2thZ2VzIHRvIGtlZXAuIE11 c3QgYmUgMSBvciBncmVhdGVyCmRlY2xhcmUgLWkgTnVtYmVyT2ZWZXJzaW9uc1Rv S2VlcD0yCnNldCAtdQpMaXN0SW5zdGFsbGVkUGFja2FnZXMoKSB7CiAgICBMYXRl c3RQcmVmaXhTdGFydD0iJHtMYXRlc3RQcmVmaXglJS0qfSIKICAgIGlmICBbICJ2 aXJ0dWFsYm94IiA9PSAiJHtMYXRlc3RQcmVmaXhTdGFydH0iIF0gOyB0aGVuCiAg ICAgICAgUGFja2FnZVByZWZpeD0idmlydHVhbGJveC1rZXJuZWwiCiAgICBlbGlm IFsgInZib3hhZGRpdGlvbnMiID09ICIke0xhdGVzdFByZWZpeFN0YXJ0fSIgXSA7 IHRoZW4KICAgICAgICBQYWNrYWdlUHJlZml4PSJ2Ym94YWRkaXRpb25zLWtlcm5l bCIKICAgIGVsaWYgWyAieHRhYmxlcyIgPT0gIiR7TGF0ZXN0UHJlZml4U3RhcnR9 IiBdIDsgdGhlbgogICAgICAgIFBhY2thZ2VQcmVmaXg9Inh0YWJsZXMtYWRkb25z LWtlcm5lbCIKICAgIGVsc2UKICAgICAgICBQYWNrYWdlUHJlZml4PSIkTGF0ZXN0 UHJlZml4IgogICAgZmkKICAgIFJwbU91dH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b2Nlc3NMYXRlc3QKZG9uZQppZiAgKCggJHsjUmVtb3ZlTGlzdFtAXX0gPiAwICkp IDsgdGhlbgogICAgdXJwbWUgLS13YWl0LWxvY2sgJHtSZW1vdmVMaXN0W0BdfQpm
    aQpleGl0Cg==

    ------------oNOTLQdStP6h9Llszm9nKb--

    --- MBSE BBS v1.0.8 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Jim@2:250/1 to All on Mon Apr 11 15:14:29 2022
    On Mon, 11 Apr 2022 15:13:59 +1000, faeychild wrote:

    I've stumbled into my own confusion here I was trying to clean up old
    kernels via MCC and listed the installed kernels



    kernel-desktop-5.15.23-1.mga8-1-1.mga8
    kernel-desktop-5.15.25-1.mga8-1-1.mga8
    kernel-desktop-5.15.28-1.mga8-1-1.mga8
    kernel-desktop-5.15.32-1.mga8-1-1.mga8
    kernel-desktop-5.15.4-1.mga8-1-1.mga8
    kernel-desktop-5.15.6-2.mga8-1-1.mga8

    So I thought , remove the kernels 5.15.23 and 5.15.25 and leave the last
    two 28 and 32

    But a closer look shows 5.15.4 and 5.15.6 are they more recent?


    You have sorted the kernel names, but neglected the difference between numerical sort and ascii sort.

    Sorted in ascii fashion, 5.15.3... precedes 5.15.4...
    Sorted in numerical fashion, 5.15.4... precedes 5.15.32...

    Cheers!

    jim b.

    --
    UNIX is not user-unfriendly, it merely
    expects users to be computer friendly.

    --- MBSE BBS v1.0.8 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From faeychild@2:250/1 to All on Mon Apr 11 22:42:22 2022
    On 12/4/22 00:14, Jim wrote:


    You have sorted the kernel names, but neglected the difference between numerical sort and ascii sort.

    Sorted in ascii fashion, 5.15.3... precedes 5.15.4...
    Sorted in numerical fashion, 5.15.4... precedes 5.15.32...


    Yes I've done all those things. What I find amusing is that in all the previous kernel cleanups I managed to completely ignore the two early kernels. They stand out clearly, obviously and yet I missed seeing them
    on at least three occasions.

    And despite plodding carefully through the list each time, this is a
    stunning lack of observation unless I have some temporary dyslexia I an unaware of.

    I have saved David's script
    He has beaten the Bit Twister to it :-)

    regards

    --
    faeychild
    Running plasmashell 5.20.4 on 5.15.32-desktop-1.mga8 kernel.
    Mageia release 8 (Official) for x86_64 installed via Mageia-8-x86_64-DVD.iso


    --- MBSE BBS v1.0.8 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Bit Twister@2:250/1 to All on Tue Apr 12 17:24:38 2022
    On Tue, 12 Apr 2022 07:42:22 +1000, faeychild wrote:
    On 12/4/22 00:14, Jim wrote:

    I have saved David's script
    He has beaten the Bit Twister to it :-)


    I had seen David's script in previous posts somewhere.
    My script did/does not query rpm like David's does.

    My ck_4_kernel_rpms script checks for more than one kernel in /boot with
    ls -1h /boot/initrd-*mga* | grep -v $(uname -r) | wc -l
    and converts ls -1 initrd-*mga* | grep -v $(uname -r) release into
    urpme kernel rpm name(s) and uses xmessage to pop up the list to be removed.

    My install_updates scripts runs ck_4_kernel_rpms to tell me to remove the
    extra kernels which I do after I have booted the new kernel and verify
    I do not seem to have problems.


    --- MBSE BBS v1.0.8 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From William Unruh@2:250/1 to All on Tue Apr 12 17:47:11 2022
    On 2022-04-11, faeychild <faeychild@nomail.afraid.org> wrote:
    On 12/4/22 00:14, Jim wrote:


    You have sorted the kernel names, but neglected the difference between
    numerical sort and ascii sort.

    Sorted in ascii fashion, 5.15.3... precedes 5.15.4...
    Sorted in numerical fashion, 5.15.4... precedes 5.15.32...


    Yes I've done all those things. What I find amusing is that in all the previous kernel cleanups I managed to completely ignore the two early kernels. They stand out clearly, obviously and yet I missed seeing them
    on at least three occasions.

    And despite plodding carefully through the list each time, this is a stunning lack of observation unless I have some temporary dyslexia I an unaware of.

    I have saved David's script
    He has beaten the Bit Twister to it :-)

    Note that you can also look at the date of installation of the file
    (well the modification time) with
    ls -t (newest first)
    or ls -tr (oldest first)
    instead of alphabetical.cd /boot

    regards


    --- MBSE BBS v1.0.8 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From TJ@2:250/1 to All on Wed Apr 13 04:15:13 2022
    On 4/11/22 01:13, faeychild wrote:


    I've stumbled into my own confusion here
    I was trying to clean up old kernels via MCC and listed the installed kernels



    kernel-desktop-5.15.23-1.mga8-1-1.mga8
    kernel-desktop-5.15.25-1.mga8-1-1.mga8
    kernel-desktop-5.15.28-1.mga8-1-1.mga8
    kernel-desktop-5.15.32-1.mga8-1-1.mga8
    kernel-desktop-5.15.4-1.mga8-1-1.mga8
    kernel-desktop-5.15.6-2.mga8-1-1.mga8

    So I thought , remove the kernels 5.15.23 and 5.15.25 and leave the last
    two 28 and 32

    But a closer look shows 5.15.4 and 5.15.6
    are they more recent?

    uname -a
    Linux unimatrix.cryptid 5.15.32-desktop-1.mga8 #1 SMP Mon Mar 28
    08:31:19 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

    cat /proc/version
    Linux version 5.15.32-desktop-1.mga8 (iurt@rabbit.mageia.org) (gcc
    (Mageia 10.3.0-2.mga8) 10.3.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP Mon
    Mar 28 08:31:19 UTC 2022

    I would seem to be running 5.15.32
    and I believe that I'm confused by the kernel numbering system and the
    sort order of MCC, but I'm not sure


    This first time I remember running into this situation was back with
    Mandriva. As I recall, there was about 2-3 seconds of confusion before I realized the reason for the way the kernels were listed, but it had been
    a long day and I was tired.

    Actually, I had remembered installing and later updating the
    later-listed kernels, so I knew they were older without looking them up.

    TJ

    --- MBSE BBS v1.0.8 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Doug Laidlaw@2:250/1 to All on Wed Apr 13 11:06:23 2022
    On 11/4/22 15:20, faeychild wrote:
    On 11/4/22 15:13, faeychild wrote:

    OK I found the change log. They date from late last year.

    I can't imagine why they are still installed and never removed.  It did rattle my chain though

    regards


    My experience with Kernel 5-15-4. has been similar. I am guessing that
    it is installed by the OS installer, and for some reason, it doesn't
    appear as "old."

    --- MBSE BBS v1.0.8 (Linux-x86_64)
    * Origin: Aioe.org NNTP Server (2:250/1@fidonet)
  • From faeychild@2:250/1 to All on Wed Apr 13 22:32:10 2022
    On 13/4/22 13:15, TJ wrote:

    I would seem to be running 5.15.32
    and I believe that I'm confused by the kernel numbering system and the
    sort order of MCC, but I'm not sure


    This first time I remember running into this situation was back with Mandriva. As I recall, there was about 2-3 seconds of confusion before I realized the reason for the way the kernels were listed, but it had been
    a long day and I was tired.

    YES! And the mind half on something else thinking I'll just do this and
    get back to... and then confrontation with the anomaly
    and everything is sidetracked.


    --
    faeychild
    Running plasmashell 5.20.4 on 5.15.32-desktop-1.mga8 kernel.
    Mageia release 8 (Official) for x86_64 installed via Mageia-8-x86_64-DVD.iso


    --- MBSE BBS v1.0.8 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From William Unruh@2:250/1 to All on Wed Apr 13 23:08:58 2022
    On 2022-04-13, Doug Laidlaw <laidlaws@hotkey.net.au> wrote:
    On 11/4/22 15:20, faeychild wrote:
    On 11/4/22 15:13, faeychild wrote:

    OK I found the change log. They date from late last year.

    I can't imagine why they are still installed and never removed.  It did
    rattle my chain though

    They are not removed so that if your new kernel does not work, you are
    not left up shit creek without a boat or paddle.
    (Actually there is a creek in College Station Tx called Sewer Creek--
    runs through the middle of the golf course.)

    If you want to remove your old kernels, you can do so. Urpme is your
    friend.


    regards


    My experience with Kernel 5-15-4. has been similar. I am guessing that
    it is installed by the OS installer, and for some reason, it doesn't
    appear as "old."

    Mageia does not remove "old" kernels. However it does put them onto the
    orphans list so, if you are silly enough to remove orphans it will be
    removed ( It is silly because if one of those "Package" rpms gets
    orphaned its removal can destroy your whole system. And they do get
    orphaned at times. )

    --- MBSE BBS v1.0.8 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From William Unruh@2:250/1 to All on Wed Apr 13 23:10:11 2022
    On 2022-04-13, faeychild <faeychild@nomail.afraid.org> wrote:
    On 13/4/22 13:15, TJ wrote:

    I would seem to be running 5.15.32
    and I believe that I'm confused by the kernel numbering system and the
    sort order of MCC, but I'm not sure


    This first time I remember running into this situation was back with
    Mandriva. As I recall, there was about 2-3 seconds of confusion before I
    realized the reason for the way the kernels were listed, but it had been
    a long day and I was tired.

    YES! And the mind half on something else thinking I'll just do this and
    get back to... and then confrontation with the anomaly
    and everything is sidetracked.


    ls -t or ls -tr is your friend.


    --- MBSE BBS v1.0.8 (Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)