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'm not sure I understand completely. With the default settings, there are two issues that I can see:
1) `slackpkg update` always acts like there are updates, even when there's nothing to update.
Specifically, on every run (with VERBOSE=3) I see something like this:
Code:
Files //var/lib/slackpkg/CHECKSUMS.md5.asc and /tmp/slackpkg.9Nstx0/CHECKSUMS.md5.asc differ
But why should they differ if nothing changed? On the user end, the outcome is that unlike with regular slackpkg, I never see this prompt anymore:
Code:
No changes in ChangeLog.txt between your last update and now.
Do you really want to download all other files (y/N)?
2) `slackpkg check-updates` pulls the whole ChangeLog
With the default slackpkg+ settings, `slackpkg check-updates` will download the entire ChangeLog from each repo to see if there are updates. That's pretty inefficient/slow, couldn't slackpkg+ just use the method of comparing cached vs upstream CHECKSUMS.md5.asc file on both 14.2 and -current? Or at a minimum, use that method if slackpkg-15 is detected?
I could not fix it becouse slackpkg+ 1.7.0d0 had to work both with slackware 14.2 and slackware 15, and the fix is an huge patch.
Now that slackpkg+ 1.7.1 no longer supports slackware 14.2, I can fix it.
Sounds like a good idea not to try and support 14.2/15.0 at the same time, too much work!
I tested the new code, seems to work nicely for the official Slackware packages when I did `slackpkg update`, but it didn't check any of my other repos (slackpkg+dev and alienbob), even though SLACKPKGPLUS=on.
Thanks for looking at it though, check it out whenever. And happy birthday !
It works for me. If it works for someother I will package it as 1.7.3 (not today since it's my birthday )
Happy birthday.
I use slackpkg+ with third-party repositories and tested the new release.
"slackpkg update" works as advertised (question appears if nothing changed) and "slackpkg check-updates" is much quicker.
I use slackpkg+ with third-party repositories and tested the new release.
"slackpkg update" works as advertised (question appears if nothing changed)
The dialogue box is back for me too, but does `slackpkg update` check all your REPOPLUS for updates before asking that? For me it's only checking the main Slackware repo (and not alienbob or slackpkgplus repos, which I have set in slackpkgplus.conf).
The dialogue box is back for me too, but does `slackpkg update` check all your REPOPLUS for updates before asking that? For me it's only checking the main Slackware repo (and not alienbob or slackpkgplus repos, which I have set in slackpkgplus.conf).
check-updates is super fast too, very nice!
This is what I am seeing. It's checking all repositories with meta data. (highlighted in red)
Code:
slackpkg update
Updating the package lists...
Downloading...
Signatures
'/home/slackware/slackware64-current/CHECKSUMS.md5.asc' -> '/tmp/slackpkg.JtzUyE/CHECKSUMS.md5.asc'
'/home/non-slack/slackbuilds/CHECKSUMS.md5.asc' -> '/tmp/slackpkg.JtzUyE/CHECKSUMS.md5-nonslack.asc'
2021-02-28 16:51:31 URL:http://slakfinder.org/slackpkg+dev/CHECKSUMS.md5.asc [455/455] -> "/tmp/slackpkg.JtzUyE/CHECKSUMS.md5-slackpkgplus.asc" [1]
'/home/non-slack/multilib/current/CHECKSUMS.md5.asc' -> '/tmp/slackpkg.JtzUyE/CHECKSUMS.md5-multilib.asc'
'/home/non-slack/alienbob_restricted/current/x86_64/CHECKSUMS.md5.asc' -> '/tmp/slackpkg.JtzUyE/CHECKSUMS.md5-restricted.asc'
'/home/non-slack/alienbob/current/x86_64/CHECKSUMS.md5.asc' -> '/tmp/slackpkg.JtzUyE/CHECKSUMS.md5-alienbob.asc'
No changes in ChangeLog.txt between your last update and now.
Do you really want to download all other files (y/N)? >
Last edited by chrisretusn; 02-28-2021 at 03:03 AM.
Now that it appears the error code from slackpkg is fixed, can we get that in slackpkg+?
This is what I get now.
Code:
slackpkg check-updates ; echo $?
Slackpkg: Updated packages are available since last check.
[ Repository ] [ Status ]
slackware AVAILABLE UPDATES
nonslack Up to date
slackpkgbeta Up to date
slackpkgplus Up to date
multilib Up to date
restricted Up to date
alienbob AVAILABLE UPDATES
0
Code:
SLACKPKGPLUS=off slackpkg check-updates ; echo $?
Slackpkg: Updated packages are available since last check.
1
Edit: Using a patched version of slackpkg-15.0.1_testC-noarch-1
patches here, here and here
Last edited by chrisretusn; 02-28-2021 at 03:38 AM.
The dialogue box is back for me too, but does `slackpkg update` check all your REPOPLUS for updates before asking that? For me it's only checking the main Slackware repo (and not alienbob or slackpkgplus repos, which I have set in slackpkgplus.conf).
Yes it does.
Code:
$ slackpkg update
Updating the package lists...
Downloading...
Signatures
File: slackware -> CHECKSUMS.md5.asc .. Cached.
File: slackpkgplus -> CHECKSUMS.md5.asc .. Cached.
File: alienbob -> CHECKSUMS.md5.asc .. Cached.
File: restricted -> CHECKSUMS.md5.asc .. Cached.
No changes in ChangeLog.txt between your last update and now.
Do you really want to download all other files (y/N)?
You can see that slackpkg+ cycles through the repositories I have defined in my slackpkgplus.conf.
Without CACHE option, it's the same:
Code:
$ slackpkg update
Updating the package lists...
Downloading...
Signatures
2021-02-28 10:24:24 URL:https://slackware.nl/slackware/slackware64-current/CHECKSUMS.md5.asc [163/163] -> "/tmp/slackpkg.8EGH4s/CHECKSUMS.md5.asc" [1]
2021-02-28 10:24:25 URL:http://slakfinder.org/slackpkg+15/CHECKSUMS.md5.asc [455/455] -> "/tmp/slackpkg.8EGH4s/CHECKSUMS.md5-slackpkgplus.asc" [1]
2021-02-28 10:24:25 URL:https://slackware.nl/people/alien/sbrepos/current/x86_64/CHECKSUMS.md5.asc [163/163] -> "/tmp/slackpkg.8EGH4s/CHECKSUMS.md5-alienbob.asc" [1]
2021-02-28 10:24:25 URL:https://slackware.nl/people/alien/restricted_sbrepos/current/x86_64/CHECKSUMS.md5.asc [163/163] -> "/tmp/slackpkg.8EGH4s/CHECKSUMS.md5-restricted.asc" [1]
No changes in ChangeLog.txt between your last update and now.
Do you really want to download all other files (y/N)?
I take it back, the problem was not with slackpkg+ but my configuration. Not sure exactly what, but I reset to a standard config and set things up again, and it works nicely:
Code:
# slackpkg update
Updating the package lists...
Downloading...
Signatures
2021-02-28 22:51:25 URL:http://mirrors.us.kernel.org/slackware/slackware64-current/CHECKSUMS.md5.asc [163/163] -> "/tmp/slackpkg.kNeB6X/CHECKSUMS.md5.asc" [1]
2021-02-28 22:51:26 URL:http://slakfinder.org/slackpkg+dev/CHECKSUMS.md5.asc [455/455] -> "/tmp/slackpkg.kNeB6X/CHECKSUMS.md5-slackpkgplus.asc" [1]
2021-02-28 22:51:27 URL:https://slackware.nl/people/alien/sbrepos/current/x86_64/CHECKSUMS.md5.asc [163/163] -> "/tmp/slackpkg.kNeB6X/CHECKSUMS.md5-alienbob.asc" [1]
No changes in ChangeLog.txt between your last update and now.
Do you really want to download all other files (y/N)?
I got rid of /etc/slackpkg/slackpkgplus.conf and started fresh, but looking again I probably didn't chmod +x the new slackpkgplus.sh in /usr/libexec/slackpkg/functions.d/ the first time around, since chmod -x on it produces the same behaviour I was seeing. In any case, there's no problem with slackpkg+.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.