LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-15-2020, 04:38 PM   #91
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 736

Original Poster
Rep: Reputation: 234Reputation: 234Reputation: 234

Sun Mar 15 21:36:19 CET 2020
pkg/slackpkg+-1.7.0d1-noarch-10mt.txz: Rebuilt
- Small fix in search packages
- Added httpdir/httpsdir/ftpsdir repository type. See documentation.
+-------------------------+


edit: sorry, 'ftpsdir' is a typo on the changelog. ftps is not supported; just ftpdir

Last edited by zerouno; 03-15-2020 at 04:46 PM.
 
Old 03-16-2020, 11:34 PM   #92
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 268
Blog Entries: 2

Rep: Reputation: 83
Just wanted to say, the new progress numbers and terse mode are very nice. :-)

Thanks zerouno!
 
Old 03-25-2020, 10:38 AM   #93
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 268
Blog Entries: 2

Rep: Reputation: 83
A minor suggestion for the TERSE option.

Earlier, it was easy to see previous package version as well as new one while upgrading.

Now, it shows only new one:

Code:
[8/56]	Package cifs-utils-6.10-x86_64-3_pam.txz is already in cache - not downloading
	Upgrading cifs-utils-6.10-x86_64-3_pam...
Upgrading:  cifs-utils-6.10-x86_64-3_pam: CIFS filesystem utilities ......................................................................................... [470K]
Suggestion:

Old Package version can be shown in line 2, ie:

Code:
[8/56]	Package cifs-utils-6.10-x86_64-3_pam.txz is already in cache - not downloading
	Upgrading cifs-utils-6.10-x86_64-3...
Upgrading:  cifs-utils-6.10-x86_64-3_pam: CIFS filesystem utilities ......................................................................................... [470K]
Pardon if this should be filed against slackpkg and not slackpkgplus. Thanks!

Edit-
It is a part of pkgtools (upgradepkg command), not an issue of slackpkg+.

Last edited by aaditya; 03-26-2020 at 06:53 AM. Reason: not a bug of slackpkg+
 
Old 03-28-2020, 01:49 AM   #94
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 1,862

Rep: Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773
Quote:
Originally Posted by chrisretusn View Post
Not that it's an issue, but when using 'slackpkg download' it's a count, not a percentage. I personally am okay with this. I normally only use "download" with kernel packages. Just thought I'd mention it.
Quote:
Originally Posted by zerouno View Post
Unfortunately the 'download' command is not 100% slackpkg+ compliant so it is not fully supported.

Use DOWNLOADONLY switch instead.
set it in slackpkgplus.conf or use
DOWNLOADONLY=on slackpkg install ...

First off, I fully understand not fully supported. Looking for some clarification.

I have at least two kernel sets installed, the "latest kernel" and a "last working kernel". The "DOWNLOADONLY=on slackpkg install" correctly results in:
Code:
# USEBL=off DOWNLOADONLY=on slackpkg -dialog=off install kernel

Looking for kernel in package list. Please wait... DONE

[ Repository               ] [ Package                                  ]
  slackware64                  kernel-huge-5.4.28-x86_64-1.txz
This is not what I want. This is what I want and it works as expected:
Code:
# USEBL=off slackpkg -dialog=off download kernel

Looking for kernel in package list. Please wait... DONE

kernel-firmware-20200320_edf390c-noarch-1.txz
kernel-generic-5.4.28-x86_64-1.txz
kernel-headers-5.4.28-x86-1.txz
kernel-huge-5.4.28-x86_64-1.txz
kernel-modules-5.4.28-x86_64-1.txz
kernel-source-5.4.28-noarch-1.txz
With dialog on I can select the packages I want to download. In my case everything but firmware (already installed) and huge (not installed). All except firmware are blacklisted in /etc/slackpkg/blacklist. This allows me to run '# installpkg /var/cache/packages/slackware64/*/*.txz' to install the kernel packages.

I am making two assumptions, are they correct ones?

1. The slackpkg "download" option works as expected on slackware packages only. Regardless if slackpkg+ is installed or not.

2. The not fully supported part comes with the third party repositories.

Thanks.

Last edited by chrisretusn; 03-28-2020 at 01:52 AM.
 
Old 03-28-2020, 06:15 PM   #95
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 736

Original Poster
Rep: Reputation: 234Reputation: 234Reputation: 234
50% slackpkg+ code is based on the advanced priority subsystem. The download command does not invoke it, so it cannot be improved.
 
Old 03-29-2020, 12:20 AM   #96
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 1,862

Rep: Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773
Sigh... I am not asking for improvement. I guess I did not make that clear enough.

I understand that it is not supported in slackpkg+, I am 100% fine with that, and now I understand why. Thanks for that.

I was trying to show my use case of the download action, compared to the proposed solution and why that solution doesn't work. Maybe others could benefit from that example.

I was also asking if my two assumptions are correct, so I'll just go with no they are not correct.

I think a lot of people are not aware of how the "slackware download" command works, with or without slackpkg+. I'll leave that for another day.

Last edited by chrisretusn; 03-29-2020 at 12:21 AM.
 
Old 05-02-2020, 06:00 PM   #97
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 736

Original Poster
Rep: Reputation: 234Reputation: 234Reputation: 234
I'm back!
sorry, Covid19 did lock my PC

Quote:
Originally Posted by chrisretusn View Post
Not that it's an issue, but when using 'slackpkg download' it's a count, not a percentage. I personally am okay with this. I normally only use "download" with kernel packages. Just thought I'd mention it.
download the testing version:
Code:
wget https://raw.githubusercontent.com/zuno/slackpkgplus/test/src/slackpkgplus.sh -O /usr/libexec/slackpkg/functions.d/slackpkgplus.sh
 
Old 05-03-2020, 07:10 AM   #98
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 1,862

Rep: Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773
Quote:
Originally Posted by zerouno View Post
I'm back!
sorry, Covid19 did lock my PC



download the testing version:
Code:
wget https://raw.githubusercontent.com/zuno/slackpkgplus/test/src/slackpkgplus.sh -O /usr/libexec/slackpkg/functions.d/slackpkgplus.sh
Welcome back! I nice weekend lock down present to play with.

I first tested with my normal use case; 'USEBL=off slackpkg download kernel', in the dialog list I deselect kernel-firmware and kernel-huge then hit Enter "< OK >". This is the result:
Note: the dialog wipes out the first few lines reported. I am also clearing the cache before each run.
Code:
# USEBL=off slackpkg download kernel
# after "< OK >", the following is produced: 

Package: kernel-generic-5.4.36-x86_64-1.txz
'//home/slackware/slackware64-current/./slackware64/a/kernel-generic-5.4.36-x86_64-1.txz' -> '//var/cache/packages/./slackware64/a/kernel-generic-5.4.36-x86_64-1.txz'
'//home/slackware/slackware64-current/./slackware64/a/kernel-generic-5.4.36-x86_64-1.txz.asc' -> '//var/cache/packages/./slackware64/a/kernel-generic-5.4.36-x86_64-1.txz.asc'
[1/4] 
Package: kernel-headers-5.4.36-x86-1.txz
'//home/slackware/slackware64-current/./slackware64/d/kernel-headers-5.4.36-x86-1.txz' -> '//var/cache/packages/./slackware64/d/kernel-headers-5.4.36-x86-1.txz'
'//home/slackware/slackware64-current/./slackware64/d/kernel-headers-5.4.36-x86-1.txz.asc' -> '//var/cache/packages/./slackware64/d/kernel-headers-5.4.36-x86-1.txz.asc'
[1/4] 
Package: kernel-modules-5.4.36-x86_64-1.txz
'//home/slackware/slackware64-current/./slackware64/a/kernel-modules-5.4.36-x86_64-1.txz' -> '//var/cache/packages/./slackware64/a/kernel-modules-5.4.36-x86_64-1.txz'
'//home/slackware/slackware64-current/./slackware64/a/kernel-modules-5.4.36-x86_64-1.txz.asc' -> '//var/cache/packages/./slackware64/a/kernel-modules-5.4.36-x86_64-1.txz.asc'
[1/4] 
Package: kernel-source-5.4.36-noarch-1.txz
'//home/slackware/slackware64-current/./slackware64/k/kernel-source-5.4.36-noarch-1.txz' -> '//var/cache/packages/./slackware64/k/kernel-source-5.4.36-noarch-1.txz'
'//home/slackware/slackware64-current/./slackware64/k/kernel-source-5.4.36-noarch-1.txz.asc' -> '//var/cache/packages/./slackware64/k/kernel-source-5.4.36-noarch-1.txz.asc'
[1/4]
Next I ran the same with "dialog=off" (and all kernel packages in this case)
Code:
# USEBL=off slackpkg -dialog=off download kernel     

Looking for kernel in package list. Please wait... DONE

kernel-firmware-20200424_b2cad6a-noarch-1.txz
kernel-generic-5.4.36-x86_64-1.txz
kernel-headers-5.4.36-x86-1.txz
kernel-huge-5.4.36-x86_64-1.txz
kernel-modules-5.4.36-x86_64-1.txz
kernel-source-5.4.36-noarch-1.txz

Total package(s): 6

Do you wish to download selected packages (Y/n)? 

Package: kernel-firmware-20200424_b2cad6a-noarch-1.txz
'//home/slackware/slackware64-current/./slackware64/a/kernel-firmware-20200424_b2cad6a-noarch-1.txz' -> '//var/cache/packages/./slackware64/a/kernel-firmware-20200424_b2cad6a-noarch-1.txz'
'//home/slackware/slackware64-current/./slackware64/a/kernel-firmware-20200424_b2cad6a-noarch-1.txz.asc' -> '//var/cache/packages/./slackware64/a/kernel-firmware-20200424_b2cad6a-noarch-1.txz.asc'
[1/6] 
Package: kernel-generic-5.4.36-x86_64-1.txz
'//home/slackware/slackware64-current/./slackware64/a/kernel-generic-5.4.36-x86_64-1.txz' -> '//var/cache/packages/./slackware64/a/kernel-generic-5.4.36-x86_64-1.txz'
'//home/slackware/slackware64-current/./slackware64/a/kernel-generic-5.4.36-x86_64-1.txz.asc' -> '//var/cache/packages/./slackware64/a/kernel-generic-5.4.36-x86_64-1.txz.asc'
[2/6] 
Package: kernel-headers-5.4.36-x86-1.txz
'//home/slackware/slackware64-current/./slackware64/d/kernel-headers-5.4.36-x86-1.txz' -> '//var/cache/packages/./slackware64/d/kernel-headers-5.4.36-x86-1.txz'
'//home/slackware/slackware64-current/./slackware64/d/kernel-headers-5.4.36-x86-1.txz.asc' -> '//var/cache/packages/./slackware64/d/kernel-headers-5.4.36-x86-1.txz.asc'
[3/6] 
Package: kernel-huge-5.4.36-x86_64-1.txz
'//home/slackware/slackware64-current/./slackware64/a/kernel-huge-5.4.36-x86_64-1.txz' -> '//var/cache/packages/./slackware64/a/kernel-huge-5.4.36-x86_64-1.txz'
'//home/slackware/slackware64-current/./slackware64/a/kernel-huge-5.4.36-x86_64-1.txz.asc' -> '//var/cache/packages/./slackware64/a/kernel-huge-5.4.36-x86_64-1.txz.asc'
[4/6] 
Package: kernel-modules-5.4.36-x86_64-1.txz
'//home/slackware/slackware64-current/./slackware64/a/kernel-modules-5.4.36-x86_64-1.txz' -> '//var/cache/packages/./slackware64/a/kernel-modules-5.4.36-x86_64-1.txz'
'//home/slackware/slackware64-current/./slackware64/a/kernel-modules-5.4.36-x86_64-1.txz.asc' -> '//var/cache/packages/./slackware64/a/kernel-modules-5.4.36-x86_64-1.txz.asc'
[5/6] 
Package: kernel-source-5.4.36-noarch-1.txz
'//home/slackware/slackware64-current/./slackware64/k/kernel-source-5.4.36-noarch-1.txz' -> '//var/cache/packages/./slackware64/k/kernel-source-5.4.36-noarch-1.txz'
'//home/slackware/slackware64-current/./slackware64/k/kernel-source-5.4.36-noarch-1.txz.asc' -> '//var/cache/packages/./slackware64/k/kernel-source-5.4.36-noarch-1.txz.asc'
[6/6]
Here are those two runs without clearing the cache, in case that might be useful.
Code:
# USEBL=off slackpkg download kernel
# after "< OK >", the following is produced: 

        Package kernel-generic-5.4.36-x86_64-1.txz is already in cache - not downloading
[1/4]   Package kernel-headers-5.4.36-x86-1.txz is already in cache - not downloading
[1/4]   Package kernel-modules-5.4.36-x86_64-1.txz is already in cache - not downloading
[1/4]   Package kernel-source-5.4.36-noarch-1.txz is already in cache - not downloading
[1/4]
Code:
# USEBL=off slackpkg -dialog=off download kernel

Looking for kernel in package list. Please wait... DONE

kernel-firmware-20200424_b2cad6a-noarch-1.txz
kernel-generic-5.4.36-x86_64-1.txz
kernel-headers-5.4.36-x86-1.txz
kernel-huge-5.4.36-x86_64-1.txz
kernel-modules-5.4.36-x86_64-1.txz
kernel-source-5.4.36-noarch-1.txz

Total package(s): 6

Do you wish to download selected packages (Y/n)? 
        Package kernel-firmware-20200424_b2cad6a-noarch-1.txz is already in cache - not downloading
[1/6]   Package kernel-generic-5.4.36-x86_64-1.txz is already in cache - not downloading
[2/6]   Package kernel-headers-5.4.36-x86-1.txz is already in cache - not downloading
[3/6]   Package kernel-huge-5.4.36-x86_64-1.txz is already in cache - not downloading
[4/6]   Package kernel-modules-5.4.36-x86_64-1.txz is already in cache - not downloading
[5/6]   Package kernel-source-5.4.36-noarch-1.txz is already in cache - not downloading
[6/6]
Also one run with:
Code:
# USEBL=off slackpkg download kernel-generic kernel-headers kernel-modules kernel-source

        Package kernel-generic-5.4.36-x86_64-1.txz is already in cache - not downloading
[1/4]   Package kernel-headers-5.4.36-x86-1.txz is already in cache - not downloading
[1/4]   Package kernel-modules-5.4.36-x86_64-1.txz is already in cache - not downloading
[1/4]   Package kernel-source-5.4.36-noarch-1.txz is already in cache - not downloading
[1/4] 

# USEBL=off slackpkg -dialog=off download kernel-generic kernel-headers kernel-modules kernel-source

Looking for kernel-generic kernel-headers kernel-modules kernel-source in package list. Please wait... DONE

kernel-generic-5.4.36-x86_64-1.txz
kernel-headers-5.4.36-x86-1.txz
kernel-modules-5.4.36-x86_64-1.txz
kernel-source-5.4.36-noarch-1.txz

Total package(s): 4

Do you wish to download selected packages (Y/n)? 
        Package kernel-generic-5.4.36-x86_64-1.txz is already in cache - not downloading
[1/4]   Package kernel-headers-5.4.36-x86-1.txz is already in cache - not downloading
[2/4]   Package kernel-modules-5.4.36-x86_64-1.txz is already in cache - not downloading
[3/4]   Package kernel-source-5.4.36-noarch-1.txz is already in cache - not downloading
[4/4]
 
Old 05-03-2020, 07:16 AM   #99
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 736

Original Poster
Rep: Reputation: 234Reputation: 234Reputation: 234
Thanks for the exhaustive tests.
 
Old 05-03-2020, 07:23 AM   #100
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 1,862

Rep: Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773
Quote:
Originally Posted by zerouno View Post
Thanks for the exhaustive tests.
Thanks for the great addition to slackpkg. Wish my programing skills was enough to contribute more than testing. I am good with creating SlackBuild scripts and can figure out a lot of the code in slackpkg/slackpkg+, there are parts that are above my pay grade. <grin>
 
Old 05-03-2020, 07:30 AM   #101
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 736

Original Poster
Rep: Reputation: 234Reputation: 234Reputation: 234
temporary edit /usr/libexec/slackpkg/functions.d/slackpkgplus.sh

replace lines 917 and 918 with
Code:
      cc=$[$(echo $SHOWLIST|sed 's/ /\n/g'|grep -n $CHECKING|cut -f1 -d:)+1]
      [ $cc -le $qq ]&&echo -n "[$cc/$qq] " >&2
knonw bug: it will not show the [1/4] but the counter will start from [2/4]
 
Old 05-03-2020, 09:31 AM   #102
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 736

Original Poster
Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by aaditya View Post
A minor suggestion for the TERSE option.

Earlier, it was easy to see previous package version as well as new one while upgrading.
Note /var/lib/slackpkg/install.log
also test that improvement:
Code:
wget https://raw.githubusercontent.com/zuno/slackpkgplus/test/src/slackpkgplus.sh -O /usr/libexec/slackpkg/functions.d/slackpkgplus.sh
Quote:
Originally Posted by zerouno
knonw bug: it will not show the [1/4] but the counter will start from [2/4]
fixed too.
 
1 members found this post helpful.
Old 05-04-2020, 08:00 AM   #103
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 1,862

Rep: Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773
Well that's impressive. Tested all of the scenarios I previously tested above. Perfection.

Tested the TERSE part also, looks good.

Last edited by chrisretusn; 05-04-2020 at 08:04 AM.
 
1 members found this post helpful.
Old 01-23-2021, 10:45 AM   #104
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 1,862

Rep: Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773
slackpkg - version 2.84.0_beta9 / slackpkg+ 1.7.0d1

With the last big slackware64-current update Fri Jan 22 19:17:44 UTC 2021 Mass rebuild. On issuing 'slackpkg upgrade-all' I noticed that the counter display before the dialog list (Preparing list) has a display clitch. When the count goes past [999-1524] the '[' is added to the display. Example:
Code:
Preparing list [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[1234-1524]
This is also repeatable with 'slackpkg search' for example when using 'slackpkg search slackware64'

I've notice this before, just now got around to reporting it.
 
Old 01-23-2021, 11:28 AM   #105
tramtrist
Member
 
Registered: Jul 2018
Location: Cincinnati USA
Distribution: Slackware
Posts: 379

Rep: Reputation: 253Reputation: 253Reputation: 253
What is the link for the latest slackpkg+ dev beta?
EDIT: Nevermind
MIRRORPLUS['slackpkgplus']=http://slakfinder.org/slackpkg+dev/

Last edited by tramtrist; 01-23-2021 at 11:32 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] [ENCHANCEMENT] slackpkg+: do not show the notices "pkglist is older than 24h..." and "remember to re-run 'slackpkg update''..."... yars Slackware 1 01-09-2016 09:56 AM
having trouble after upgrading 14.1 slackware using slackpkg and slackpkg+ [solved] slackartist Slackware 1 12-28-2015 07:28 AM
[SOLVED] Slackpkg, Slackpkg Plus, Slackware 14.1 x86_64 install.log delay or slow to write bamunds Slackware 7 04-22-2014 11:12 AM
[SOLVED] typos in latest /etc/slackpkg/mirrors(.new) [slackpkg-2.82.0-noarch-8.tgz] wailingwailer Slackware 4 09-22-2012 04:04 AM
Slackpkg: missing something in /usr/libexec/slackpkg/functions.d/dialog-functions.sh michelino Slackware 4 03-20-2007 12:22 PM

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

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