LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-06-2024, 03:47 PM   #1
lostintime
Member
 
Registered: Dec 2021
Posts: 214

Rep: Reputation: Disabled
Updating Slackware Live


I am trying to learn how to remove old kernel packages and modules on the Slackware Live ISO.

I found the following:

* https://docs.slackware.com/slackware...on_a_usb_stick

* https://www.linuxquestions.org/quest...lp-4175728140/

On my USB stick I updated the kernel from 5.15.145->5.15.160:

* Updated the packages with slackpkg.
* Update the ISO modules with upslak.

I still haven't figured out how to remove the old kernel packages and modules.

Thanks.
 
Old 06-07-2024, 01:03 AM   #2
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 599

Rep: Reputation: Disabled
You could try restoring the original kernel using upslak (-r option) and then re-installing your new kernel without keeping the old one as backup (the -b option). At least that is what I get from that first link you share.
 
Old 06-07-2024, 08:33 AM   #3
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,994

Rep: Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565
You don't have to restore the old kernel first, the script doesn't care. Just run with the -b|--nobackup option.

Another option would to be download the latest ISO and update that with the refresh option. This what you get the latest 15.0

This is what I do with slackware64-current-live
 
Old 06-08-2024, 11:17 AM   #4
lostintime
Member
 
Registered: Dec 2021
Posts: 214

Original Poster
Rep: Reputation: Disabled
I tested the -b option. Likely I am missing the big picture but remnants of the older kernel remain and the kernel files in the original boot squashfs do not get deleted.

Quote:
Another option would to be download the latest ISO and update that with the refresh option.
That and thereafter restoring a backup of the persistence directory probably is cleanest.

I think I am going to return to my old way of using the Live USB -- just don't worry about updating. The stick is never going to be used where missing security patches are going to be critical. The stick gets used in limited circumstances only, usually recovery operations and never as a daily system.
 
1 members found this post helpful.
Old 06-10-2024, 01:18 AM   #5
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,994

Rep: Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565
[QUOTE=lostintime;6506801]I tested the -b option. Likely I am missing the big picture but remnants of the older kernel remain and the kernel files in the original boot squashfs do not get deleted.[\quote]On review of the directories after booting to the USB, I found that the modules in /lib/modules were still present. Pretty sure they can be safely deleted. I didn't find any left over kernel stuff though, I could have missed some.

Quote:
Originally Posted by chrisretusn View Post
Another option would to be download the latest ISO and update that with the refresh option.
Quote:
That and thereafter restoring a backup of the persistence directory probably is cleanest.
Agree.


My use case of the USB is mostly for testing. I don't using it much. Just nice to have available. When I get around to upgrading this computer, I will use the Live USB to test for successful booting.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Have you tried USB boot of Slackware Live Edition? slackware-live/1.3.5.1 or other versions? philip0 Slackware - Installation 2 05-27-2020 12:06 PM
[SOLVED] Updating Slackware Live USB JamesGT Slackware 4 06-04-2019 07:58 PM
slackware live current or slackware live current lemonade Slackware 5 03-23-2018 06:28 AM
why is bind updating reverse zone with updating zone 202.1.168.192.1.168.192.in-addr marcobjorge Linux - Networking 5 10-12-2008 04:53 AM
Updating VMWare After Updating CentOS Linux31 Red Hat 2 09-18-2007 02:49 PM

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

All times are GMT -5. The time now is 05:25 PM.

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