LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-26-2023, 12:04 PM   #76
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 281

Rep: Reputation: 42

@luvr,

checked and there is only 1 version of kernel in a/

For your previous question, I chose the "Quit" option in the 2 dialog boxes.
 
Old 01-26-2023, 01:03 PM   #77
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Xubuntu
Posts: 459
Blog Entries: 2

Rep: Reputation: 194Reputation: 194
Quote:
Originally Posted by rpedrica View Post
@luvr,

checked and there is only 1 version of kernel in a/

For your previous question, I chose the "Quit" option in the 2 dialog boxes.
OK, the Quit option will indeed set the return code to 1.
I'll try the script myself on a "-current" system once I install it on my laptop, and let you know what happens.
 
Old 01-30-2023, 10:44 AM   #78
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Xubuntu
Posts: 459
Blog Entries: 2

Rep: Reputation: 194Reputation: 194
I have just installed slackware64-current on my laptop, blacklisted all kernel packages, configured my local repository mirror, and run a slackpkg update cycle--i.e.:
Code:
slackpkg update
slackpkg install-new
slackpkg upgrade-all
slackpkg clean-system
Next, I ran my upgrade-kernel.sh script. It worked fine and it updated the kernel from 6.1.7 to 6.1.8.

So far, so good. However, to be sure whether or not the script really does work fine, I'll wait for another kernel upgrade, and see what happens next.
In the meantime, I listed the "initrd" and "vmlinuz" files in my "/boot" directory, and this is what I got:
Code:
$ ls -ld /boot/{initrd,vmlinuz}*
lrwxrwxrwx  1 root root       23 Jan 30 16:44 /boot/initrd-generic -> initrd-generic-6.1.8.gz
-rw-r--r--  1 root root  9918087 Jan 29 14:57 /boot/initrd-generic-6.1.7.gz
-rw-r--r--  1 root root  9927649 Jan 30 16:42 /boot/initrd-generic-6.1.8.gz
lrwxrwxrwx  1 root root       23 Jan 30 16:44 /boot/initrd-generic-prev -> initrd-generic-6.1.7.gz
drwxr-xr-x 14 root root     4096 Jan 30 16:42 /boot/initrd-tree
lrwxrwxrwx  1 root root       21 Jan 30 16:44 /boot/vmlinuz-generic -> vmlinuz-generic-6.1.8
-rw-r--r--  1 root root  8095456 Jan 19 01:10 /boot/vmlinuz-generic-6.1.7
-rw-r--r--  1 root root  8095360 Jan 24 20:56 /boot/vmlinuz-generic-6.1.8
lrwxrwxrwx  1 root root       21 Jan 30 16:44 /boot/vmlinuz-generic-prev -> vmlinuz-generic-6.1.7
lrwxrwxrwx  1 root root       18 Jan 30 16:44 /boot/vmlinuz-huge -> vmlinuz-huge-6.1.8
-rw-r--r--  1 root root 11993088 Jan 19 01:07 /boot/vmlinuz-huge-6.1.7
-rw-r--r--  1 root root 11993120 Jan 24 20:53 /boot/vmlinuz-huge-6.1.8
lrwxrwxrwx  1 root root       18 Jan 30 16:44 /boot/vmlinuz-huge-prev -> vmlinuz-huge-6.1.7
 
Old 02-03-2023, 10:02 AM   #79
luvr
Member
 
Registered: May 2005
Location: Boom - The Home Town of Tomorrowland, Belgium
Distribution: Slackware, Xubuntu
Posts: 459
Blog Entries: 2

Rep: Reputation: 194Reputation: 194
There is a new kernel version available in the slackware-current repository now: 6.1.9.

I have just sync'ed my local mirror, run an system update, and finally run my update-kernel.sh script. Everything worked fine.

So, I'm afraid I cannot reproduce the problem you're having. Would you mind trying the update cycle and rerunning my script, to see how it behaves? If it keeps failing, then, as a first step towards diagnosing the problem, could you then run the following command:
Code:
grep '^[^#]' /etc/slackpkg/mirrors
and verify that it produces a single line pointing to your local mirror?

Then, if that looks OK, to display the first few lines of the changelog:
Code:
head "$(sed --silent --expression='s@^file:/*@/@p' /etc/slackpkg/mirrors)"'/ChangeLog.txt'
 
Old 06-23-2023, 05:41 PM   #80
UrbanDesimator
Member
 
Registered: Feb 2022
Posts: 35

Rep: Reputation: 6
Quote:
Originally Posted by denydias View Post
Earlier this month a fellow LQ newbie asked us How to maintain a sane slackware64-current with Eric Hameleers multilib and ktown? Well, I gave my two cents there.

Now I'm here to expand on how I keep up with Slacware-current evolution in a safe manner, i.e. by avoiding system breakage between upgrades. Keep in mind that even if all this works perfectly for me and I haven't had not a single glitch in this process in the past couple years, it is solely my approach to the task. I have no intention at all that this may become an ultimate approach to it. It's just my way of doing things that could eventually help others with ideas.

The scripts are here:

https://gist.github.com/denydias/a10...08b8c1bec63ac8

And this is how they work:
  • 1_mirror.sh: this is my mirroring script. It runs everyday on my NAS to keep up with Slackware-current and AlienBOB's Ktown. It also performs a very important task to anyone avoiding bad things to happen: package preservation.
  • 2_minskyup.sh: this one upgrades Slackware-current according to the best practices exposed in Upgrading Slackware to a New Release. There are different functions for system and kernel upgrades. The later includes automation to preserve the last working kernel version so you can have a working system if the new kernel don't boot. It also includes the recovery and memtest images from Slackware's usbboot.img, meaning that if something goes really, really wrong, you'll have the tools to fix it right there. There are also functions to upgrade many of the tools of my daily workflow, that for one reason or another I decided to use the upstream binaries instead of a ready made package or SlackBuild out there: virtualbox, vagrant, docker, aws-cli, cli53, (git)hub, jq, ngrok, phpmyadmin, spectre-meltdown-checker, testssl, asciinema, calibre, pup, Synology Drive and zoom.
  • 3_minskyup_completion.sh: this one goes in /etc/bash_completion.d/ to offer tab completion for minskyup.
  • 4_lilo.conf: an example of my boot entries so the kernel upgrades works as expected.
But how it works? Whenever a see a new Slackware64 -current ChangeLog entry, or anytime I want, I run:

Code:
$ sudo minskyup mirror && sudo minskyup slack --force
This will upgrade any packages but kernel. When there is a ktown upgrade, I go to init 3 and run it without --force as it's not advisable to upgrade KDE stuff with X running.

If the changelog entry also contains a new kernel version, then I run:

Code:
$ sudo minskyup kernel
This command will ask me to confirm all the changes it detects, so I have the information I need to decide where or not is safe to move on.

As for the other minskyup options, they are pretty self explanatory. For instance, to upgrade virtualbox:

Code:
$ sudo minskyup virtualbox
It'll detect the currently installed version and the latest one from Oracle. If the installed one is outdated, it moves on and upgrades.

But there are some other tools that do not provide a way to discover which the latest version is. In that case you have to check first, but it's quite simple too:

Code:
$ sudo minskyup docker
Docker CE version is required. Example:

minskyup docker 18.06.0

See https://download.docker.com/linux/static/stable/x86_64/ for available versions.
Currently installed: Docker version 18.06.0-ce
$ sudo minskyup docker 18.06.3
And so on...

So, this is how I do it. WFM. Damn, really WFM!

PS: why minskyup? My box is named after Marvin Minsky.


Hi I realise it's been a good while since you made this post I was curious if your scripts were still available, as you github page is not offering them.
Thanks
 
  


Reply

Tags
kernel, lilo, slackware -current, sysadmin, upgrade



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
[SOLVED] Upgraded distro which upgraded perl and modules from old version not transferred to new. systemlordanubis Linux - Software 1 03-25-2018 03:37 AM
[SOLVED] slackpkg+: how to keep one package in slackware being upgraded by a 3rd party repos? michaelslack Slackware 9 12-15-2014 06:28 AM
[SOLVED] keyboard stopped working in X when I upgraded udev from 1.75 to 1.82After I upgraded RandomTroll Slackware 3 07-26-2012 02:48 PM

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

All times are GMT -5. The time now is 04:34 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