[SOLVED] how to make slpkg install slack-current packages ?
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.
how to make slpkg install slack-current packages ?
i can't make slpkg install packages for the CURRENT release although i changed the relevant variable in slpkg.conf (by using plain emacs instead of slpkg -g edit) :
Code:
RELEASE=current
for example, i want to upgrade the currently installed emacs version emacs-26.3-x86_64-1 to the newest one such as emacs-26.3-x86_64-3.txz
my command would be :
Code:
slpkg -s slack emacs
but - oh horror - slpkg wants to go with the slack142 version of emacs which was v24.5 :
+
Code:
+==========================================================
| Package New Version Arch Build Repos Size
+==========================================================
Installing:
emacs-26.3 24.5 x86_64 2 slack 39708 K
Installing summary
===========================================================
what do i do wrong ? this problem vexes me now for months. actually, i don't know if slpkg would install 26.3 or 24.5 ? that's unclear to me, and i didn't dare (yet) to type yes and let slpgk install something wrong...
Isn't that just picking "wrong" entry in your mirrorlist?
But then slpkg uses repositories?
Quote:
Slackware Mirrors
Slpkg use the central mirror http://mirrors.slackware.com/slackware/ to find the nearest one.
If however for some reason this troublesome please edit the file in '/etc/slpkg/slackware-mirrors'.
If you're on 14.2, then installing -current packages may result in a broken system. They are built against updated dependencies and a newer toolchain and may not function properly on 14.2 and depending on what they are, could entirely break the system.
the machine in question runs actually Slack-Current. my example case with the emacs package version is fairly recent : emacs-26.3-x86_64-1. i chose to play with emacs so to not kill anything else important.
but there is still this problem : how to make slpkg consider only Slack-Current packages ???
changing to RELEASE=current in slpkg.conf didn't help. how would adjusting the slackware-mirrors file help here, as Jan suggested Jan earlier ?
It's not clear to me (tm) how much slpkg involves slackpgk... haven't studied the script but if it do then mirrorlist is in play too (most probably...) https://docs.slackware.com/slackware:current
the machine in question runs actually Slack-Current. my example case with the emacs package version is fairly recent : emacs-26.3-x86_64-1. i chose to play with emacs so to not kill anything else important.
That's good. But depending on how old your -current install is (the last time it was fully updated), you could still run into similar issues. The #2 rebuild of emacs was to build it against an upgrade to imagemagick. I'm not sure if it is a mandatory dependency for it to start or just an optional one if you're trying to use functionality. Either way, make sure you have the old package for emacs available in case something goes wrong.
Quote:
Originally Posted by pisti
changing to RELEASE=current in slpkg.conf didn't help. how would adjusting the slackware-mirrors file help here, as Jan suggested Jan earlier ?
I don't use slpkg at all, but looking over the slpkg repo, it seems it should be as simple as just switching it to current. Can you post your entire conf file within [code][/code] tags?
I don't know if this is any help but I tried it and it seems to work as expected. I'm running 14.2 but I changed RELEASE to current and running "slpkg update" to update the package lists and then "slpkg -s slack emacs" offers to upgrade emacs to version 26.3 3.
Code:
+==============================================================================
| Package New Version Arch Build Repos Size
+==============================================================================
Installing:
emacs-26.3 26.3 x86_64 3 slack 39240 K
Installing summary
===============================================================================
Total 1 package.
0 package will be installed, 1 will be upgraded and 0 will be reinstalled.
My slpkg.conf is the same as yours, I have "slack" uncommented in repositories.conf and no mirrors uncommented in slpkg's slackware-mirrors file. This is using slpkg version 3.4.3.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.