[SOLVED] Can slackpkg+ work on 32bit and 64bit repos at the same time
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'd say this is asking for trouble. Use 64-bit repos, and then add needed 32-bit compatibility packages. It's well described in AlienBob's multilib documentation.
Installing multilib and compatibility packages is not a problem. All is working perfectly. However not all the packages that you run via multilib are available in a multilib-applications repo.
For example:
I have been able to download wine and upgrade it via slackpkg+ but not steamclient
Perhaps it would be better if the packages that are only available in 32bit versions are made available in a 32bit repo and also in multilib-application repo. These could include:
I appear to be unable to make my point clearly so I will try yet again. I am not asking how to get multi-lib or multi-lib programs working.
I am trying to get it so that an installed 32bit program will upgrade via slackpkg+
This does not happen at the moment because the 32bit program is not in the 64bit repo. So I am either trying to find a way to run to repos with the same name and different architecture, or suggesting the creation of a new repo for those few 32bit programs that multi-lib enable users wish to run.
I appear to be unable to make my point clearly so I will try yet again. I am not asking how to get multi-lib or multi-lib programs working.
I am trying to get it so that an installed 32bit program will upgrade via slackpkg+
This does not happen at the moment because the 32bit program is not in the 64bit repo. So I am either trying to find a way to run to repos with the same name and different architecture, or suggesting the creation of a new repo for those few 32bit programs that multi-lib enable users wish to run.
samac
I understand what you are trying to do. Currently this is not possible, slackpkg+ removes automatically references to 32-bit packages in configured repositories when running on 64-bit. It will be better to give user a way to configure that. Something like ALLOW_32ON64=on|off in slackpkgplus.conf.
In the meantime, you can achieve this as below (as root) :
1. save the file /usr/libexec/slackpkgplus/functions.d/slackpkgplus.sh
Code:
cd /usr/libexec/slackpkgplus/functions.d
cat slackpkgplus.sh > slackpkgplus.sh.bak
2. edit /usr/libexec/slackpkgplus/functions.d/slackpkgplus.sh, and change the line #232 (slackpkg+ 1.0.1), which is as below :
3. Edit the file /etc/slackpkg/slackpkgplus.conf and create an entry into the MIRRORPLUS array for the 32-bit repository you want. Don't use the same name as for 64-bit. Example :
4. If there's no 64-bit version for packages you want to install, you should be able to install/upgrade them without any additional work. Otherwise, you'll have to give them priority over the 64-bit using the variable PKGS_PRIORITY in /etc/slackpkg/slackpkgplus.conf. For instance :
Code:
PKGS_PRIORITY=( repositoryname.x86:packagename )
Hope this helps.
Cheers.
--
SeB
Last edited by phenixia2003; 11-19-2013 at 06:52 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.