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 02-06-2022, 11:08 AM   #1
thethinker
Member
 
Registered: Jul 2006
Location: Peabody, MA, USA
Distribution: Xubuntu, Slackware, Pop!_OS
Posts: 297
Blog Entries: 2

Rep: Reputation: 37
Upgrading multilib installation from 14.2 -> 15.0


So I upgraded my vanilla slack64 laptop from 14.2 -> 15.0 using the instructions found in the UPGRADE.txt file...no problems, just used all the commands/script straight from that.

Now I've got my mutlilib machine, which is more mission-critical. That same process won't work this time, right? Aren't there a whole bunch of 32-bit versions of the 64 bit libraries that won't be automatically upgraded?

Is there a known procedure, or is a 15.0 reinstall, then multilib conversion, just a better idea?
 
Old 02-06-2022, 12:00 PM   #2
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,407
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
I would update to 15.0 and go multilib.
If you had already converted packages I would grab the list.
Alien Bob already refreshed his compat32 packages since release.
 
1 members found this post helpful.
Old 02-06-2022, 12:12 PM   #3
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2-Multilib XDM/FVWM3
Posts: 780

Rep: Reputation: 260Reputation: 260Reputation: 260
Quote:
Originally Posted by thethinker View Post
<snip>
Now I've got my mutlilib machine, which is more mission-critical. That same process won't work this time, right? Aren't there a whole bunch of 32-bit versions of the 64 bit libraries that won't be automatically upgraded?

Is there a known procedure, or is a 15.0 reinstall, then multilib conversion, just a better idea?
I would think it depends on which method of upgrade you are using. Example are you using slackpkg+, or slpkg, or using the UPGRADE.TXT method. In each case there will be steps you may need to modify from what is generally given in UPGRADE.TXT. For example with slackpgk, slackpkgplus and slpkg the blacklist of non-upgrade packages needs to be modified, because as the UPGRADE.TXT file states, you first ugprade gcc and glibc before any other packages. If using slackpkgplus you'll need to modify the repository statements.

For my multilib computer, without slackpkg+, I'll compare Eric's multilib packages list with those on the target PC to identify extra packages that will need conversion to compat32. Download the 15.0 multilib direcotry. modify the mirrors file, remove the restrictions in the blacklist, then follow the UPGRADE.TXT, and HINTS and TIPS.TXT. That will all be done in single user mode. Then I'll install the 15.0 multilib files per Eric's instructions and blacklist glibc, gcc, and compat32 again. This is pretty much the process used when upgrading from 14.1 to 14.2 and everything worked without trouble. Be aware this time there maybe some additional compat32 packages you created that need to be recreated with convertpkg from Slackware 15.0 32 bit repository, because the multilib files in Eric's repository are only those essential for a full default 15.0 install to have multilib services. NOTE: run ls /var/log/pakcages | grep compat32 and compare the results with Erics multilib packages before starting this process, to see what additional packages you may need to convert for your system.

Hope this helps. It is simple. Read the documents, then Eric's multilib instructions, write down the steps, and follow them. If you remove the slackpkg blacklist and upgrade per the official documents, the replacement 64 bit gcc and glibs will simply not recognize any 32 bit pieces and you should then be able to apply the multilibs as done previously. Remember multilib adds 32 packages in a compat32 mode and only the gcc and glibc are actually modified. Hope this helps. BrianA_MN
 
1 members found this post helpful.
Old 02-06-2022, 12:23 PM   #4
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,699

Rep: Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381
A backup then fresh install of 15.0 then multilib is a safe bet. but...

Since I haven't done a 14.2 > 15.0 upgrade I can only speculate on it. I would think its the same as what you did on the other machine with a few extra steps for multilib. If it were me once I was in single user mode before I began I would just remove all the compat32 packages with something like

Code:
removepkg $(ls /var/log/packages | grep compat32)
then proceed with the upgrade as normal. Once I confirmed it was successful then I would just reinstall multilib as per Alien Bob's instructions using the correct mirror for 15.0

Please note: I haven't done this, its just speculation, if it is a mission critical machine proceed with caution.

Last edited by Daedra; 02-06-2022 at 12:24 PM.
 
1 members found this post helpful.
Old 02-06-2022, 12:47 PM   #5
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 594

Rep: Reputation: Disabled
You should use slackpkg together with slackpkg+. The latter is an extension to make slackpkg capable of managing packages that are not in the core Distro. More specifically: it makes it very easy to manage a multilib computer.
For instance, I just ran:
Code:
slackpkg install multilib
on this Slackware 15.0 laptop, and I discovered that pipewire-compat32 was available and apparently I did not have it installed yet.
So now I am going to run
Code:
slackpkg reinstall multilib
because I noticed this ChangeLog entry (http://www.slackware.com/~alien/mult...hangeLog.txt):
Code:
Fixed convertpkg-compat32 so that it removes /lib/udev from e2fsprogs,
  libgphoto2, libinput, libwacom, pipewire, pulseaudio, sane, v4l-utils
and I think it is wise to re-install all the multilib packages just to be safe.
Two commands, that's all it took to ensure that my multilib is healthy.
 
1 members found this post helpful.
Old 02-07-2022, 08:11 AM   #6
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 907

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Quote:
Originally Posted by thethinker View Post
So I upgraded my vanilla slack64 laptop from 14.2 -> 15.0 using the instructions found in the UPGRADE.txt file...no problems, just used all the commands/script straight from that.

Now I've got my mutlilib machine, which is more mission-critical. That same process won't work this time, right? Aren't there a whole bunch of 32-bit versions of the 64 bit libraries that won't be automatically upgraded?

Is there a known procedure, or is a 15.0 reinstall, then multilib conversion, just a better idea?
The only multilib packages which replace Slackware packages are:

Code:
./aaa_glibc-solibs-2.33_multilib-x86_64-5alien.txz
./gcc-11.2.0_multilib-x86_64-2alien.txz
./gcc-brig-11.2.0_multilib-x86_64-2alien.txz
./gcc-g++-11.2.0_multilib-x86_64-2alien.txz
./gcc-gdc-11.2.0_multilib-x86_64-2alien.txz
./gcc-gfortran-11.2.0_multilib-x86_64-2alien.txz
./gcc-gnat-11.2.0_multilib-x86_64-2alien.txz
./gcc-go-11.2.0_multilib-x86_64-2alien.txz
./gcc-objc-11.2.0_multilib-x86_64-2alien.txz
./glibc-2.33_multilib-x86_64-5alien.txz
./glibc-i18n-2.33_multilib-x86_64-5alien.txz
./glibc-profile-2.33_multilib-x86_64-5alien.txz
So anywhere in UPGRADE.TXT it tells you to upgrade the Slackware package, upgrade the multilib package instead.

After you finish with UPGRADE.TXT, upgrade all the multilib compat32 packages in slackware64-compat32. Then check for old (removed) packages from 14.2. Easiest way to do that is list packages in /var/lib/pkgtools/packages/, sorted by time, grep for compat32. All the packages have been upgraded/rebuilt since 14.2, so the few remaining leftover compat32 packages that didn't get upgraded are old 14.2 packages.

Now actually, when I did my upgrade, I forgot to mirror the multilib repository. So when I followed UPGRADE.TXT the multilib packages listed above got replaced by the Slackware packages. After I finished and rebooted, I then mirrored the multilib repository and used upgradepkg to replace the Slackware packages by the multilib packages. That way worked just fine, too.

So either way works.
 
2 members found this post helpful.
Old 02-07-2022, 03:27 PM   #7
thethinker
Member
 
Registered: Jul 2006
Location: Peabody, MA, USA
Distribution: Xubuntu, Slackware, Pop!_OS
Posts: 297

Original Poster
Blog Entries: 2

Rep: Reputation: 37
Quote:
Originally Posted by bamunds View Post
I would think it depends on which method of upgrade you are using. Example are you using slackpkg+, or slpkg, or using the UPGRADE.TXT method. In each case there will be steps you may need to modify from what is generally given in UPGRADE.TXT. For example with slackpgk, slackpkgplus and slpkg the blacklist of non-upgrade packages needs to be modified, because as the UPGRADE.TXT file states, you first ugprade gcc and glibc before any other packages. If using slackpkgplus you'll need to modify the repository statements.

For my multilib computer, without slackpkg+, I'll compare Eric's multilib packages list with those on the target PC to identify extra packages that will need conversion to compat32. Download the 15.0 multilib direcotry. modify the mirrors file, remove the restrictions in the blacklist, then follow the UPGRADE.TXT, and HINTS and TIPS.TXT. That will all be done in single user mode. Then I'll install the 15.0 multilib files per Eric's instructions and blacklist glibc, gcc, and compat32 again. This is pretty much the process used when upgrading from 14.1 to 14.2 and everything worked without trouble. Be aware this time there maybe some additional compat32 packages you created that need to be recreated with convertpkg from Slackware 15.0 32 bit repository, because the multilib files in Eric's repository are only those essential for a full default 15.0 install to have multilib services. NOTE: run ls /var/log/pakcages | grep compat32 and compare the results with Erics multilib packages before starting this process, to see what additional packages you may need to convert for your system.

Hope this helps. It is simple. Read the documents, then Eric's multilib instructions, write down the steps, and follow them. If you remove the slackpkg blacklist and upgrade per the official documents, the replacement 64 bit gcc and glibs will simply not recognize any 32 bit pieces and you should then be able to apply the multilibs as done previously. Remember multilib adds 32 packages in a compat32 mode and only the gcc and glibc are actually modified. Hope this helps. BrianA_MN
Very helpful with the details. I'm already using slackpkg, so I'll get going with slackpkg+ in 14.2 first, and then try basically this without the blacklisting. It sounds like from the other responses I can be a little more cavalier with slackpkg+, but I might as well be careful and do it step by step because I think I understand things fairly well. I'll get a process and report back.
 
Old 02-08-2022, 10:48 AM   #8
garpu
Senior Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 1,587

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
Originally Posted by Windu View Post
and I think it is wise to re-install all the multilib packages just to be safe.
Two commands, that's all it took to ensure that my multilib is healthy.
I don't know if it's necessary to reinstall multilib, so long as you've got the new things. Rather, I didn't, and things still seem to be OK. I figure if I'm staying on current, those packages will be upgraded eventually, anyway.
 
Old 02-11-2022, 10:29 PM   #9
thethinker
Member
 
Registered: Jul 2006
Location: Peabody, MA, USA
Distribution: Xubuntu, Slackware, Pop!_OS
Posts: 297

Original Poster
Blog Entries: 2

Rep: Reputation: 37
Yay!
Code:
$ uname -a
Linux Zonadar.home.org 5.15.19 #1 SMP PREEMPT Wed Feb 2 01:50:51 CST 2022 x86_64 Intel(R) Core(TM) i5 CPU         760  @ 2.80GHz GenuineIntel GNU/Linux
I'll actually paste in exactly what I did here - after going through it I'm sure many different ways are quite safe, but what I did worked.

1. Make sure slackpkg and slackpkg+ are installed and updated.
2. Get slackware tree with wget .....or maybe use DVDs, but slackware/ refers to the file tree in what follows.
3. Get multilib from AlienBob, multilib/ refers to that directory in what follows:

Code:
# SLACKVER=15.0
# mkdir multilib
# cd multilib
# lftp -c "open http://bear.alienbase.nl/mirrors/people/alien/multilib/ ; mirror -c -e ${SLACKVER}"
# cd ${SLACKVER}
4. Remove old compat32 packages

Code:
removepkg $(ls /var/log/packages | grep compat32)
5. Upgrade libgcc as per UPGRADE.TXT file, and then immediately upgrade glib to multilib.

Code:
upgradepkg --install-new /slackware/a/aaa_glibc-solibs-*.txz
upgradepkg --install-new /multilib/15.0/aaa_glibc-solibs-2.33_multilib-x86_64-5alien.txz
6. Next four lines from UPGRADE.TXT

Code:
upgradepkg /slackware/a/pkgtools-*.txz
upgradepkg /slackware/a/tar-*.txz
upgradepkg /slackware/a/xz-*.txz
upgradepkg /slackware/a/findutils-*.txz
7. Do rest of packages:
Code:
upgradepkg --install-new --terse /root/slackware/*/*.t?z
8. Do rest of multilib:

Code:
upgradepkg --reinstall --install-new /multilib/15.0/*.t?z
9. Remove the outdated packages, a la UPDATE.TXT (I deleted everything in that file but that command, chmod a+x it, dealt with the silly encoding issue, and ran it). Ok, I'm lying, I deleted all the new lines by hand instead of fixing the encoding....

10. Run the script with UPDATE.TXT for switch over the config files....but this time I Googled how to change the encoding from DOS to unix, and removed the ^M endlines....

11. Update the compat32 files from multilib:

Code:
# upgradepkg --install-new slackware64-compat32/*-compat32/*.t?z
12. Do the initrd and lilo stuff at the end of UPDATE.TXT.

13. Profit!
 
  


Reply

Tags
multilib, slackware 15.0, 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] Multilib issue: error upgrading glibc. System unusable. Slackware64 current val3xiv Slackware 2 05-21-2013 07:20 AM
[ANN] mk-slack64-multilib : A tool to create slackware64+multilib tree/iso phenixia2003 Slackware 5 12-28-2012 05:42 AM
[SOLVED] Upgrading multilib packages ADX Slackware 7 08-09-2011 12:41 AM
upgrading slackware64 13.1 multilib to slackware64 -current multilib Cultist Slackware 4 03-12-2011 09:04 AM
[SOLVED] Broffice not compile on Slack64(multilib or no multilib);SlackBuild afreitascs Slackware 4 06-14-2010 07:16 AM

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

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