LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-14-2023, 05:22 PM   #1
prsmith
LQ Newbie
 
Registered: Mar 2022
Location: Georgia, US
Distribution: Slackware
Posts: 15

Rep: Reputation: 0
Question "Safe" ways to roll back Slackware64-current installation to stable?


So I have a Slackware64-current multilib installation, but lately I've had several problems with slackbuilds from the sbo-git repo not compiling and I've decided the best solution is likely just to move back to stable and use the 15.0 branch for slackbuilds again, as most of the problems seem to arise from dependencies in current not always being compatible with software source versions from sbo-git.

I'm aware this is a major undertaking and backup is necessary. I've also read over some older posts on the topic but I'm still not sure of the best way to go about doing it. I know that some folks would recommend just doing a fresh install, but I'd rather not do that unless I have to.

I use slackpkg with slackpkg+ to upgrade

Here's what I think I should do:

Change the slackpkg repo mirror back to the 15.0 and change the multilib repo back to 15.0 in slackpkg+, as well as sbopkg's source repo back to 15.0

then run the following-

Code:
slackpkg update

slackpkg clean-system

slackpkg reinstall slackware64
I don't think I should have to use install-new or upgrade-all??

At this point I believe I should be rid of anything from current and have reinstalled anything that was exclusive to 15.0.

My biggest concern here is how to do this without borking my system due to the glibc downgrades. Current's glibc is at 2.37, while 15.0 is at 2.33. Is there some order I should do this in so that I won't end up with a non-working system in the middle of the downgrade process because of glibc incompatibilities?

Would it be safer to downgrade everything else first and then downgrade the glibc afterwards?
 
Old 05-14-2023, 05:57 PM   #2
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
Given the current low cost of drive real estate, why have to choose? Why not backup, create new required partitions, install 15.0 fresh and link your $HOME ?
 
2 members found this post helpful.
Old 05-14-2023, 07:29 PM   #3
prsmith
LQ Newbie
 
Registered: Mar 2022
Location: Georgia, US
Distribution: Slackware
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by enorbet View Post
Given the current low cost of drive real estate, why have to choose? Why not backup, create new required partitions, install 15.0 fresh and link your $HOME ?
Right now my space is limited to a small ssd and small M.2 on this laptop and I don't currently have the option of buying larger ones or I'd already have a secondary drive large enough for my home partition as well as a backup partition for root. I have done a current-to-stable downgrade like this years ago and I remember that it did work, I just don't remember the process I used. I can back up and restore my home on an external drive and restore it later if necessary, it'd just be easier as things are now to do a downgrade.
 
Old 05-14-2023, 08:09 PM   #4
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
rollback ?

I think is better to reinstall 15.0 from 0

First copy your $HOME on a usb stick , reinstall 15 , copy the old HOME in to 15.0 fresh.
 
3 members found this post helpful.
Old 05-14-2023, 11:13 PM   #5
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
Quote:
Originally Posted by prsmith View Post
Right now my space is limited to a small ssd and small M.2 on this laptop and I don't currently have the option of buying larger ones or I'd already have a secondary drive large enough for my home partition as well as a backup partition for root. I have done a current-to-stable downgrade like this years ago and I remember that it did work, I just don't remember the process I used. I can back up and restore my home on an external drive and restore it later if necessary, it'd just be easier as things are now to do a downgrade.
A lot of people find their belts drawn especially tight since Covid so that could be a constraint but are you aware that brand name SATA SSD's of 250GB go for around 20 bux now?
 
1 members found this post helpful.
Old 05-15-2023, 12:50 AM   #6
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 958

Rep: Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648
A really nice thing to have is one of those docking station where you can place a SATA drive and connect it with USB to the computer. There are even some of those where you can place twp SATA drives and clone from one drive to another without connecting it to a computer. Combine such a thing with something like a live CD and you can easily clone entire drives or create or restore backups of single files or directories.

Regardless of any strategy for switching Slackware version you should have some kind of backup if you put any value in your data.

regards Henrik
Attached Thumbnails
Click image for larger version

Name:	prokord.jpg
Views:	16
Size:	33.9 KB
ID:	41064  
 
Old 05-15-2023, 03:27 AM   #7
jloco
Member
 
Registered: Apr 2016
Location: Detroit, MI
Distribution: Slackware
Posts: 180

Rep: Reputation: 148Reputation: 148
Personally, what I would do in your case is install 15.0 in a chroot. Then boot from a live system (liveslak, or the slackware installer preferably) and move your current install into a folder, then move the 15.0 install into your root. This way you have a clean 15.0 system and no leftovers from a in-place downgrade from current. You can delete the -current install after you verify you can boot the other. Of course, you'll need to fix grub/lilo/elilo or what-not, but this is very possible to do and much lower-risk than using slackpkg to downgrade. Bonus being your /home stays intact provided you don't mess with it.

I've done this many times until I realized it was just easier to keep another 20gb partition around to have both on hand. Though now I've just resorted to keeping 15.0 on a liveslak usb system since I only use it to verify SBo scripts build properly.

I wish you luck in whatever path you choose.
 
Old 05-15-2023, 08:00 AM   #8
Pithium
Member
 
Registered: Jul 2014
Location: Far side of the Oregon Trail
Distribution: Slackware64 15.0
Posts: 501

Rep: Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583
Quote:
Originally Posted by enorbet View Post
A lot of people find their belts drawn especially tight since Covid so that could be a constraint but are you aware that brand name SATA SSD's of 250GB go for around 20 bux now?
Are you aware that a lot of laptops these days don't have room for a SATA SSD? Sometimes M.2 NVMe is the only upgrade path.
 
Old 05-15-2023, 08:02 AM   #9
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Thumbs up

Quote:
Originally Posted by USUARIONUEVO View Post
rollback ?

I think is better to reinstall 15.0 from 0

First copy your $HOME on a usb stick , reinstall 15 , copy the old HOME in to 15.0 fresh.
This is a sane, speedy approach. A re-install of 15.0 takes minutes and you'll be up and running.
 
Old 05-15-2023, 08:11 AM   #10
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by hitest View Post
This is a sane, speedy approach. A re-install of 15.0 takes minutes and you'll be up and running.
And let's do NOT forget that on Slackware, a full system upgrade/downgrade is terrible slower compared with a clean install.

Because the upgradepkg is a slow animal, much slower than installpkg.

In the past, I have tried too what OP wants, and I have lost my patience, ending with grabbing the USB dongle with the Slackware installer and calling a day.

So, also myself I suggest to OP to not waste his time with questionable downgrades, but to dare to cut the cat's tail.

Last edited by LuckyCyborg; 05-15-2023 at 08:13 AM.
 
Old 05-15-2023, 10:59 AM   #11
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
Quote:
Originally Posted by Pithium View Post
Are you aware that a lot of laptops these days don't have room for a SATA SSD? Sometimes M.2 NVMe is the only upgrade path.
Thanks. I wasn't, but I also did assume if the laptop was so new it only had M.2 it would likely come with ~200GB drive or bigger, stock. Even brand new brand name but budget laptops costing under $500 commonly have 250GB. That's plenty for several operating systems for most folks. If not, an SATA SSD external drive can expand that and is sometimes cheaper than buying just the bare drive, commonly also around 20 bux for 250GB.

FWIW I didn't assume laptop because I don't care for them. Mine are ancient. In 2023 a full tower for home and a smartphone for mobile and a docking station to combine them comprises the best of both worlds.

Last edited by enorbet; 05-15-2023 at 11:05 AM.
 
2 members found this post helpful.
Old 05-16-2023, 04:02 AM   #12
thim
Member
 
Registered: Nov 2013
Location: Greece
Distribution: Slackware current, MX Linux, Salix
Posts: 113

Rep: Reputation: 57
I have "downgraded" from current to stable many years ago with no problems at all - but then i tried it once and many things have changed since then.
I went to
# slackpkg update
# slackpkg install-new
# slackpkg upgrade-all
# slackpkg clean-system

but i think it's more about preference.

Of course, if somethubg goes wrong, you can proceed with a new installation (supposing you have backups of your data).

Last edited by thim; 05-16-2023 at 04:10 AM.
 
1 members found this post helpful.
Old 05-17-2023, 07:16 AM   #13
chemfire
Member
 
Registered: Sep 2012
Posts: 422

Rep: Reputation: Disabled
Depending on what filesystem you are using BTRFS might be a path forward. You may be able to do an in place conversion to BTRFS. You could then make a snapshot of the current installation into a sub Volume.

Fix your lilo/elilo/initrd up have the correct rootfs type

Change the default sub volume to the snapshot you created.

Try to use slackpkg as described to 'downgrade the system'

- if it does not work you can boot the previous systems (root solvolume by appending the subvol=5 parameter to the rootfs args
 
Old 05-17-2023, 07:35 AM   #14
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
reinstall everything, or install a stable on a different partition and share the home between the two, (that's what I am doing. The only thing I have to do in stable is keep Firefox current (upto date with current slack) with that script, latest-firefox).
 
  


Reply

Tags
current64, downgrade, rollback



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] How to roll back from -current to -stable? asarangan Slackware 12 03-01-2022 07:45 AM
[SOLVED] libreoffice not working on latest ktown on sw64-current; how to roll back to 4.10.5? michaelslack Slackware 3 12-05-2014 05:06 PM
LXer: Roll up, roll up, Microsoft's rolled up dozens of OS fixes LXer Syndicated Linux News 0 11-22-2014 05:33 PM
Carefully updating from stable packages - ability to roll back Elomis Linux - Software 1 07-28-2006 08:13 PM
Roll back to stable ? tuxuser19 Debian 1 12-10-2005 06:59 AM

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

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