LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-27-2022, 09:45 PM   #1
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Rep: Reputation: Disabled
Slackware64-15.0 (stable): Which first? upgrade-all, new kernel or patch for aaa-base?


Newbie here trying to learn how to keep my stable up to date! Want to go the slackpkg way.

Got good help at https://www.linuxquestions.org/quest...-a-4175712657/ and got finally started.

Then I found https://www.linuxquestions.org/questions/slackware-14/[security]-new-kernel-in-slackware-15-0-a-4175711875/ which helped me with how to acquire fresh firmware and how to download the files for the 5.15.38 kernels.

Now I am once again paralyzed by not knowing in which order to proceed, I have seen very many scenarios, but none that fit my specific situation, so I don't have a clear understanding of how to proceed.

Shall I install the 5.15.38 kernels before I apply the patches? - it will be my first time applying patches. And must I apply the aaa-base patch before running "slackpkg uppgrade-all" ?

I have made a back-up of the boot folder in another partition -this is a multiboot machine booted by grub in another distro - in case it goes wrong with 5.15.38 but I would like to learn how to proceed with applying the patches when blacklisting present kernel (5.15.27).

It is here I am unsure if the patches will be better applied under the new kernel or under the present kernel. I can not decide what it means that among the patches there is one for the 5.15.38 kernel. Does it mean the new kernel is critical for a successful application of the other patches? Or are the other patches critical to the installation or patching up to the new kernel?
 
Old 05-27-2022, 10:08 PM   #2
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,683

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
It doesn't matter. When you run "slackpkg upgrade all" as long as you didn't blacklist them the kernel packages will be in the list up available updates. Just install all the updates and kernel will automatically be upgraded for you. I prefer to do my kernel updates manually, but you said you were interested in the slackpkg way. Just be sure after the packages are installed you make a new initrd and update your bootloader.
 
1 members found this post helpful.
Old 05-27-2022, 10:14 PM   #3
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,683

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Another thing you don't have to do but I recommend, is keep the original kernel modules package installed that shipped with the 15.0 which is 5.5.19 along side the new kernel modules package. If you ever need to use the Slackware ISO as a rescue disc it will make your life easier if you have those modules. but again this is not necessary.
 
1 members found this post helpful.
Old 05-28-2022, 05:33 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,575
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
Quote:
Originally Posted by Daedra View Post
Another thing you don't have to do but I recommend, is keep the original kernel modules package installed that shipped with the 15.0 which is 5.5.19 along side the new kernel modules package. If you ever need to use the Slackware ISO as a rescue disc it will make your life easier if you have those modules. but again this is not necessary.
AFAIR upgrading kernel modules automatically deletes the old set. That's why I don't do it. I prefer to install the new module tree alongside the old one, then remove the old modules afterwards.
 
2 members found this post helpful.
Old 05-28-2022, 05:56 AM   #5
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 589

Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
AFAIR upgrading kernel modules automatically deletes the old set. That's why I don't do it. I prefer to install the new module tree alongside the old one, then remove the old modules afterwards.
That's why I blacklist the kernel and its modules, so that slackpkg leaves them alone. I use 'installpkg' to install the new kernel plus its modules, manually update (e)lilo and always ensure that the currently successfully running kernel remains one of the boot selections in (e)lilo.
Code:
# Automated upgrade of kernel packages may not be wanted in some situations;
# uncomment the lines below if that fits your circumstances, but note that
# kernel-headers should *not* be blacklisted:
#
kernel-generic.*
#kernel-huge.*
kernel-modules.*
#kernel-source
 
2 members found this post helpful.
Old 05-28-2022, 09:02 AM   #6
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Original Poster
Rep: Reputation: Disabled
Quote:
daedra wrote:
It doesn't matter. When you run "slackpkg upgrade all" as long as you didn't blacklist them the kernel packages will be in the list up available updates. Just install all the updates and kernel will automatically be upgraded for you. I prefer to do my kernel updates manually, but you said you were interested in the slackpkg way. Just be sure after the packages are installed you make a new initrd and update your bootloader.
Thanks for your perfectly clear answer. But I want to be able to boot my old kernel in case something goes wrong and the new one does not. What would you suggest to that end ? And would it matter, in your scenario, when - before or after uppgrade-all I install the new kernel firmware ?
 
Old 05-28-2022, 09:09 AM   #7
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Original Poster
Rep: Reputation: Disabled
Quote:
hazel wrote:
AFAIR upgrading kernel modules automatically deletes the old set. That's why I don't do it. I prefer to install the new module tree alongside the old one, then remove the old modules afterwards.
Thanks once more hazel! I got it! In your scenario when do you install the new kernel? Before or after the upgrade-all? Firmware and aaa-base, can I just forget about them ? I ask because of what is in https://www.linuxquestions.org/questions/slackware-14/[security]-new-kernel-in-slackware-15-0-a-4175711875/
 
Old 05-28-2022, 09:21 AM   #8
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Original Poster
Rep: Reputation: Disabled
Quote:
windu wrote:
That's why I blacklist the kernel and its modules, so that slackpkg leaves them alone. I use 'installpkg' to install the new kernel plus its modules, manually update (e)lilo and always ensure that the currently successfully running kernel remains one of the boot selections in (e)lilo.
Code:

# Automated upgrade of kernel packages may not be wanted in some situations;
# uncomment the lines below if that fits your circumstances, but note that
# kernel-headers should *not* be blacklisted:
#
kernel-generic.*
#kernel-huge.*
kernel-modules.*
#kernel-source

Thank you windu! I think this is the way I want to go, which hazel has also pointed out. Does it matter when the new kernel is installed? Firmware ? aaa-base?
 
Old 05-28-2022, 09:21 AM   #9
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,683

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Quote:
Originally Posted by hazel View Post
AFAIR upgrading kernel modules automatically deletes the old set. That's why I don't do it. I prefer to install the new module tree alongside the old one, then remove the old modules afterwards.
Yes that is true. that is why I do my kernel upgrades manually, but the OP said he wanted to use slackpkg.
 
2 members found this post helpful.
Old 05-28-2022, 09:26 AM   #10
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,683

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Quote:
Originally Posted by fredmyra View Post
Thank you windu! I think this is the way I want to go, which hazel has also pointed out. Does it matter when the new kernel is installed? Firmware ? aaa-base?
That is a smart way to go. Keeping your old kernel as a fail safe in case the new kernel doesn't boot is always a good idea. And no it will not matter what order you take, kernel first then patches, patches then kernel, either way it will work. Just make sure blacklist the kernel packages or don't select them when you run slackpkg. After the patches are updated you can grab the new kernel packages like this if you don't already have them.

Code:
lftp -c "open https://slackware.osuosl.org/slackware64-15.0/patches/packages/ ; mirror linux-5.15.38"

Last edited by Daedra; 05-28-2022 at 09:31 AM.
 
3 members found this post helpful.
Old 05-28-2022, 10:24 AM   #11
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,575
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
Quote:
Originally Posted by fredmyra View Post
Thanks once more hazel! I got it! In your scenario when do you install the new kernel? Before or after the upgrade-all? Firmware and aaa-base, can I just forget about them ?
Surprisingly it doesn't much matter when you update the kernel. It runs more or less independently of all the other software. In fact you can install any kernel within reason and it will work. I update userland first (with the kernel and its modules blacklisted), then do the kernel afterwards at leisure.

You only need kernel firmware if you have hardware that requires extra drivers. Mostly that's certain wifi cards.

aaa_base: this one is just directories, nearly all of which you have already. But there are a couple of configuration files included, so you should update this if it's up for it. It won't clash with anything else, that's for sure.

@daedra: that lftp command is cool. I must admit I do it the easy way and download the kernel and modules using firefox.

Last edited by hazel; 05-28-2022 at 10:26 AM.
 
2 members found this post helpful.
Old 05-28-2022, 11:24 AM   #12
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,683

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Quote:
Originally Posted by hazel View Post
@daedra: that lftp command is cool. I must admit I do it the easy way and download the kernel and modules using firefox.
Yeah I got that one from Alien Bob's many years ago . Another way that also works is...

Code:
wget -r -np -nd -l1 --accept=*.t?z https://slackware.osuosl.org/slackware64-15.0/patches/packages/linux-5.15.38/
 
1 members found this post helpful.
Old 05-28-2022, 11:52 AM   #13
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Original Poster
Rep: Reputation: Disabled
Thank you all, very helpful. I am ready to start now.

This is SOLVED!
 
Old 05-28-2022, 03:36 PM   #14
tauon
Member
 
Registered: Jun 2020
Distribution: Slackware
Posts: 82

Rep: Reputation: Disabled
Quote:
Originally Posted by Daedra View Post
Another thing you don't have to do but I recommend, is keep the original kernel modules package installed that shipped with the 15.0 which is 5.5.19 along side the new kernel modules package. If you ever need to use the Slackware ISO as a rescue disc it will make your life easier if you have those modules. but again this is not necessary.
As well as having a "Backup" line in /etc/lilo.conf with this kernel. Just a recommendation for 15.0, "must have" for -current
 
1 members found this post helpful.
Old 05-28-2022, 04:16 PM   #15
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
It might be risky, and I might come unstuck some time, but I've used slackpkg to update/upgrade all the kernel changes we had in 14.2, current for the months I ran it, and now 15.0.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Which stable Linux distro has the smallest installed base? ottavio Linux - Newbie 16 09-09-2013 09:10 PM
Blacklisted 13.37 aaa elflibs too late slackware14.0 upgrade needs them? NightSky Slackware 4 12-25-2012 02:14 PM
Hi all! Here first time, made LibreOffice 3.3.0 package (Slackware64 13.1 stable) Luneworm LinuxQuestions.org Member Intro 1 01-26-2011 11:52 AM
Stable 13 kernel vs Current kernel in Stable system linus72 Slackware 6 04-01-2010 07:45 AM
how can i upgrade my squid 2.5 stable 1 to stable 3 in RH9? debloxie Linux - Networking 0 05-12-2004 11:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration