Page 1 of 1

which kernel I am running

Posted: 7. May 2025, 02:22
by bradnag
Hi Folks,

1. I am running kernel 5.15.161 and regularly do upgrade with

Code: Select all

slapt-get -u && slapt-get --upgrade 
and

Code: Select all

slapt-get -i kernel-huge kernel-headers kernel-modules kernel-firmware kernel-source
D o I need to upgrade this kernel? I know slackware is 15.0 and the current is a rolling upgrade. Will this kernel ever upgrade using the command above or I have to install manually (which I do not want to do).
2. How can I know (other than grub) if I am running huge or generic? This salix is on partition on a multiboot machine (Ubuntu/Salix/Alpine)

Code: Select all

ll /boot
total 42232
drwxr-xr-x  4 root root     4096 May  6 18:51 ./
drwxr-xr-x 27 root root     4096 May  6 21:43 ../
lrwxrwxrwx  1 root root       38 Oct 18  2022 README.initrd -> /usr/doc/mkinitrd-1.4.11/README.initrd
lrwxrwxrwx  1 root root       27 May  6 10:07 System.map -> System.map-generic-5.15.161
-rw-r--r--  1 root root  5126698 Jun 16  2024 System.map-generic-5.15.161
-rw-r--r--  1 root root  6925103 Jun 16  2024 System.map-huge-5.15.161
-rw-r--r--  1 root root   148480 May  5 14:03 amd-ucode.img
-rw-r--r--  1 root root      137 Oct 18  2022 boot_message.txt
-rw-r--r--  1 root root      426 Aug  8  2022 coffee.dat
lrwxrwxrwx  1 root root       27 May  6 10:07 config -> config-generic-5.15.161.x64
-rw-r--r--  1 root root   239646 Jun 16  2024 config-generic-5.15.161.x64
-rw-r--r--  1 root root   239615 Jun 16  2024 config-huge-5.15.161.x64
-rwxr-xr-x  1 root root   215987 Nov 20  2017 elilo-ia32.efi*
-rwxr-xr-x  1 root root   237749 Nov 20  2017 elilo-x86_64.efi*
drwxr-xr-x  2 root root     4096 Sep 10  2021 grub/
drwxr-xr-x 14 root root     4096 May  6 18:51 initrd-tree/
-rw-r--r--  1 root root 10259517 May  6 18:51 initrd.gz
-rw-r--r--  1 root root      432 Aug  8  2022 inside.dat
-rw-r--r--  1 root root      424 Aug  8  2022 onlyblue.dat
-rw-r--r--  1 root root   307318 Aug  8  2022 salix.bmp
-rw-r--r--  1 root root      423 Aug  8  2022 tuxlogo.dat
lrwxrwxrwx  1 root root       24 May  6 10:07 vmlinuz -> vmlinuz-generic-5.15.161
lrwxrwxrwx  1 root root       24 May  6 10:07 vmlinuz-generic -> vmlinuz-generic-5.15.161
-rw-r--r--  1 root root  7834080 Jun 16  2024 vmlinuz-generic-5.15.161
lrwxrwxrwx  1 root root       21 Jun 29  2024 vmlinuz-huge -> vmlinuz-huge-5.15.161
-rw-r--r--  1 root root 11650336 Jun 16  2024 vmlinuz-huge-5.15.161
Thanks a lot!

Re: which kernel I am running

Posted: 7. May 2025, 05:14
by sammy
1. Kernel 5.15.161 is the most recent one, so there's no need to update it.
2. Your ls output shows that vmlinuz is linked to the generic kernel, and if lilo or grub uses vmlinuz and not vmlinuz-huge, then the generic kernel is beeing booted.

Re: which kernel I am running

Posted: 7. May 2025, 23:31
by bradnag
OK, thank you very much. This kernel is for some quite time and I thought maybe I am not upgrading properly.

Re: which kernel I am running

Posted: 8. May 2025, 01:06
by bradnag
Is there a way to check which kernel generic or huge is running other than boodloaders?

Re: which kernel I am running

Posted: 8. May 2025, 11:48
by laprjns
Use the command "uname -a" in a terminal. Here's what the response looks like.

Code: Select all

rich[~]$ uname -a
Linux Rich-Laptop.laprjns.com 5.15.161 #1 SMP PREEMPT Sun Jun 16 15:55:06 CDT 2024 x86_64 AMD Athlon Gold 3150U with Radeon Graphics AuthenticAMD GNU/Linux

Re: which kernel I am running

Posted: 8. May 2025, 12:14
by bradnag
where tells you if it is huge or generic?

Re: which kernel I am running

Posted: 14. May 2025, 10:18
by DidierSpaier
cat /proc/cmdline

Re: which kernel I am running

Posted: 14. May 2025, 13:41
by bradnag
Thank you, yes this shows what kernel booted.