LinuxQuestions.org
Review your favorite Linux distribution.
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 11-25-2019, 10:15 PM   #1
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware
Posts: 259

Rep: Reputation: 33
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...
 
Old 11-26-2019, 01:58 PM   #2
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
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'.
 
Old 11-26-2019, 08:28 PM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
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.
 
Old 11-26-2019, 08:42 PM   #4
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware
Posts: 259

Original Poster
Rep: Reputation: 33
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 ?
 
Old 11-27-2019, 10:14 AM   #5
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
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
 
Old 11-27-2019, 10:20 AM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by pisti View Post
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 View Post
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?
 
1 members found this post helpful.
Old 11-27-2019, 10:31 AM   #7
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware
Posts: 259

Original Poster
Rep: Reputation: 33
i only changed the very first entry, that's RELEASE :

cat /etc/slpkg/slpkg.conf | grep -v "^#" | sed '/^$/d'

Code:
RELEASE=current
SLACKWARE_VERSION=off
COMP_ARCH=off
BUILD_PATH=/tmp/slpkg/build/
SBOSRCARCH=off
SBOSRCARCH_LINK=http://slackware.uk/sbosrcarch/by-name/
PACKAGES=/tmp/slpkg/packages/
PATCHES=/tmp/slpkg/patches/
CHECKMD5=on
DEL_ALL=on
DEL_BUILD=off
SBO_BUILD_LOG=on
MAKEFLAGS=off
DEFAULT_ANSWER=n
REMOVE_DEPS_ANSWER=n
SKIP_UNST=n
RSL_DEPS=on
DEL_DEPS=off
USE_COLORS=on
DOWNDER=wget
DOWNDER_OPTIONS=-c -N
SLACKPKG_LOG=on
ONLY_INSTALLED=off
PRG_BAR=off
EDITOR=nano
NOT_DOWNGRADE=off
 
Old 11-27-2019, 11:36 AM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
That looks as I would expect. Do you have anything uncommented in slackware-mirrors?
 
Old 11-27-2019, 12:53 PM   #9
Ian M
Member
 
Registered: Oct 2017
Location: UK
Distribution: Slackware 15
Posts: 39

Rep: Reputation: Disabled
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.
 
2 members found this post helpful.
Old 11-27-2019, 01:17 PM   #10
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware
Posts: 259

Original Poster
Rep: Reputation: 33
that's it, "slpkg update" did it ! my fault, i probably have skipped something in the documentation, rtfm...

Code:
....
Executing install script for emacs-26.3-x86_64-3.txz.
Package emacs-26.3-x86_64-3.txz installed.
Package emacs-26.3-x86_64-1 upgraded with new package /tmp/slpkg/packages/emacs-26.3-x86_64-3.txz.
Completed!
thank you both for your suggestions, you saved me (many) day(s) !
 
  


Reply



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
Slpkg New Slackware packaging tool dslackw Slackware 228 11-23-2022 02:04 AM
slpkg, mutilib and Pipelight. globetrotterdk Slackware 6 03-02-2016 03:22 PM
slpkg usage question: how to upgrade *installed* packages wireshark Slackware 8 11-16-2015 11:47 PM
confused about iojs installation using slpkg Sefid par Slackware 4 08-31-2015 07:13 PM

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

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