LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   weird behaviour of slackpkg (slackpkgplus?) compared to slapt-get (https://www.linuxquestions.org/questions/slackware-14/weird-behaviour-of-slackpkg-slackpkgplus-compared-to-slapt-get-4175693461/)

nobodino 04-10-2021 10:04 AM

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?

hendrickxm 04-10-2021 10:13 AM

Some mirrors still seem to have 0.16 so could be that slapt-get checked another mirror first.

chrisretusn 04-10-2021 10:24 AM

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.

nobodino 04-10-2021 11:09 AM

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.

tadgy 04-10-2021 11:27 AM

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'?

nobodino 04-10-2021 12:03 PM

I always exec: "slackpkg update && slackpkg upgrade-all"

phenixia2003 04-10-2021 12:15 PM

Hello,

Quote:

Originally Posted by nobodino (Post 6239562)
I always exec: "slackpkg update && slackpkg upgrade-all"

what's the output of :

Code:

$ grep python-docutils /var/lib/slackpkg/pkglist
--
SeB

nobodino 04-10-2021 02:20 PM

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.

gargamel 04-10-2021 05:44 PM

Quote:

Originally Posted by nobodino (Post 6239615)
[...]
# 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.

nobodino 04-10-2021 10:29 PM

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.

chrisretusn 04-11-2021 03:08 AM

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 (Post 6239526)
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?

nobodino 04-11-2021 03:09 AM

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.

nobodino 04-11-2021 03:17 AM

You know what?

nobodino 04-11-2021 03:23 AM

2 Attachment(s)
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.

nobodino 04-11-2021 03:30 AM

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?


All times are GMT -5. The time now is 09:27 AM.