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 04-10-2021, 10:04 AM   #1
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
weird behaviour of slackpkg (slackpkgplus?) compared to slapt-get


While I was trying the package slapt-get and tested it, I was surprised to see that:
- slapt-get showed me python-docutils to upgrade from 0.16 to 0.17 version
- I looked at /var/log/packages to see if python-docutils was really 0.16, and it was
- "slackpkg upgrade-all" didn't show me python-docutils to upgrade

I have no package of that sort in blacklist of greylist of slackpkg.
I have the same mirror for slackpkg and SOURCE for slapt-get.

Can someone make the same test as me?
Is it a corner case?

Last edited by nobodino; 04-11-2021 at 03:33 AM.
 
Old 04-10-2021, 10:13 AM   #2
hendrickxm
Member
 
Registered: Feb 2014
Posts: 344

Rep: Reputation: Disabled
Some mirrors still seem to have 0.16 so could be that slapt-get checked another mirror first.
 
Old 04-10-2021, 10:24 AM   #3
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,967

Rep: Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545
Here is my slackpkg (w/slackpkg+) result. I don't use slapt-get.
Code:
slackpkg search python-docutils

Looking for python-docutils in package list. Please wait... DONE

The list below shows all packages with name matching "python-docutils".

[ Status    ] [ Repository  ] [ Package                        ]
  installed     slackware64     python-docutils-0.17-x86_64-1

ls -l /var/lib/pkgtools/packages/python-docutils*
-rw-r--r-- 1 root root 29527 Apr  4 17:18 /var/lib/pkgtools/packages/python-docutils-0.17-x86_64-1
What mirror are you using?

I am using a mirror of slackware.mirrors.tds.net locally.

Last edited by chrisretusn; 04-10-2021 at 10:27 AM.
 
Old 04-10-2021, 11:09 AM   #4
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Original Poster
Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
for slackpkg in mirrors I selected: http://slackware.uk/slackware/slackware64-current/
for slapt-get in slapt-getrc I chose: SOURCE=http://slackware.uk/slackware/slackware64-current/:OFFICIAL

they are with the same mirror, and python-docutils-0.17 is dated "Sat Apr 3 18:28:05 UTC 2021" which is not yesterday.
 
Old 04-10-2021, 11:27 AM   #5
tadgy
Member
 
Registered: May 2018
Location: UK
Distribution: Slackware (servers), Void (desktop/laptop)
Posts: 299

Rep: Reputation: 401Reputation: 401Reputation: 401Reputation: 401Reputation: 401
I just manually checked the directory on the mirror, and the version of that package which is on the server is the .17.

Did you run 'slackpkg update' before you did the 'upgrade-all'?
 
Old 04-10-2021, 12:03 PM   #6
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Original Poster
Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
I always exec: "slackpkg update && slackpkg upgrade-all"
 
Old 04-10-2021, 12:15 PM   #7
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

Quote:
Originally Posted by nobodino View Post
I always exec: "slackpkg update && slackpkg upgrade-all"
what's the output of :

Code:
$ grep python-docutils /var/lib/slackpkg/pkglist
--
SeB
 
Old 04-10-2021, 02:20 PM   #8
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Original Poster
Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
slackware64 python-docutils 0.17 x86_64 1 python-docutils-0.17-x86_64-1 ./slackware64/l txz

I re-explain what I did:

I always use "slackpkg update && slackpkg upgrade-all", so I was suprised when I used "slapt-get --upgrade" to see there was a package which was not updated.
So I re-ran "slackpkg update && slackpkg upgrade-all" and nothing was to upgrade.
Then I listed the packages installed:
# ls /var/log/packages/python-docutils*

it was version 0.16 of the package:
- so "slapt-get --upgrade" was right
- "slackpkg upgrade-all" was wrong.
 
Old 04-10-2021, 05:44 PM   #9
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Rep: Reputation: 242Reputation: 242Reputation: 242
Quote:
Originally Posted by nobodino View Post
[...]
# ls /var/log/packages/python-docutils*

it was version 0.16 of the package:
- so "slapt-get --upgrade" was right
- "slackpkg upgrade-all" was wrong.
I don't really know much about how slackpkg works, but I would assume that "slackpkg upgrade-all" works totally correctly, but "slackpkg update" checked a mirror that hadn't been synchronised with the authoritative source. My humble understanding is that "slackpkg update" creates a list of things to be updated, and "slackpkg upgrade-all" reads that list and upgrades what's listed.

I just considered the idea to enhance "slackpkg update" for a function to check all available mirrors for the most recent version, and then create the update list from that mirror, BUT I don't think it would be a great idea, because
(1) Whenever the original Slackware server gets some updates it would be overrun, because it always will take the mirrors a while to get sync'ed
(2) The first mirrors updated will share that fate, and mirror operators won't be too happy about that
(3) It would take a while to scan all the mirrors, so I would expect a noticeable decrease of slackpkg performance

So if, and only if, slackpkg would be extended in that way, it should be possible to invoke it with that function alone, independent of update, upgrade-all etc., and it would have to be possible to exclude the original Slackware server and some authoritative mirrors from the list of mirrors to be scanned in order to ensure smooth and scalable mirror operation.

Just my 0.02 EUR.
 
Old 04-10-2021, 10:29 PM   #10
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Original Poster
Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
the mirror site is exactliy the same, and before upgrade I checked on the mirror the presence of the package: it was there!
- "slackpkg upgrade-all" didn't see it
- "slapt-get --upgrade" saw it

Your hypothesis of a non synced mirror is wrong.
 
Old 04-11-2021, 03:08 AM   #11
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,967

Rep: Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545Reputation: 1545
When you run "slackpkg update" have you tried answering "y" to this prompt?
Code:
No changes in ChangeLog.txt between your last update and now.
                Do you really want to download all other files (y/N)?
Based on:
Quote:
Originally Posted by nobodino View Post
I have no package of that sort in blacklist of greylist of slackpkg.
I assume you have slackpkg+ installed.

What does 'SLACKPKGPLUS=off slackpkg search python-docutils' produce?

What does 'ls -l /var/lib/pkgtools/packages/python-docutils*' produce?
 
Old 04-11-2021, 03:09 AM   #12
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Original Poster
Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
Do you really want to download all other files (y/N)? : Y

Now I have upgraded that package with "slapt-get --upgrade".

I can try to downgrade to 0.16 and see if I have the same result.

Last edited by nobodino; 04-11-2021 at 03:10 AM.
 
Old 04-11-2021, 03:17 AM   #13
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Original Poster
Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
You know what?
 
Old 04-11-2021, 03:23 AM   #14
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Original Poster
Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
Exactly the same result after downgrade:
- slackpkg upgrade-all: nothing
- slapt-get --upgrade : python-docutils

I enclosed my slackpkgplus.conf and slapt-getrc files, if someone can do the same thing I did: downgrade to 0.16 from cumulative mirror (http://slackware.uk/cumulative/slack.../slackware64/l) and use the same mirror. Tell me what's the result on your side.
Attached Files
File Type: txt slapt-getrc.txt (1,016 Bytes, 9 views)
File Type: txt slackpkgplus.conf.txt (9.5 KB, 9 views)

Last edited by nobodino; 04-11-2021 at 03:32 AM.
 
Old 04-11-2021, 03:30 AM   #15
nobodino
Senior Member
 
Registered: Jul 2010
Location: Near Bordeaux in France
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,564

Original Poster
Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
root@XXXXX:~/Downloads# SLACKPKGPLUS=off slackpkg search python-docutils

Looking for python-docutils in package list. Please wait... DONE

The list below shows all packages with name matching "python-docutils".

[ upgrade ] - python-docutils-0.16-x86_64-6 --> python-docutils-0.17-x86_64-1

You can search specific files using "slackpkg file-search file".
---------------------------------------
Either the problem is in slackpkgplus or in my slackpkgplus.conf?
Any idea?

Last edited by nobodino; 04-11-2021 at 03:35 AM.
 
  


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
Post your slapt-getrc for slapt-get/gslapt uppman Slackware 16 05-19-2009 08:03 AM
slapt-get not calling /etc/slapt-getrc halfpower Slackware 1 04-09-2009 03:49 PM
Which one do you use: Slapt-get or slackpkg? glore2002 Slackware 22 08-23-2008 10:07 AM
/etc/slapt-getrc modification fails to influence slapt-get timsch75 Slackware 1 04-07-2004 08:48 AM
slapt-get, swaret, or SlackPkg ??? GloVe Slackware 2 10-05-2003 12:11 PM

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

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