On Thu, 23 Mar 2023 12:23:38 +0300, Andrei Borzenkov
On Thu, Mar 23, 2023 at 12:15 PM Robert Webb via openSUSE Users
wrote: On Thu, 23 Mar 2023 10:03:13 +0300, Andrei Borzenkov
wrote: On Thu, Mar 23, 2023 at 9:54 AM Per Jessen
wrote: With the zypper '--details' options, I see the repository for most of my packages listed as "(System Packages)" - 2633 out of 2726. I wonder if maybe the repo information was lost at some point? by a change of repos?
"Repository" is just a guess. If a package is not present in any repository (exact installed version) when you query it, it is considered "System Package". So Tumbleweed was updated, the repository contains different package versions and installed packages became "orphaned".
"Orphaned" until the next dup, right? So this is not a reliable way to correlate your installed packages with the repos they came from.
There is no reliable way to do it in the general case.
But zypper does seem to know which repo an installed package was from, because it has the '--allow-vendor-change' option.
You confuse "vendor" and "repository".
Then how to access the source repo info that is in the locally saved information about installed packages?
I do not understand that question.
Because it was based on a faulty assumption. Rather, as you describe below, the *source vendor* id is in the local package information, in the package itself, not the *source repo* id.
BTW, does "vendor" actually mean "repository", like I assume?
No. "Vendor" is RPM package property which is set when a package is built. "Repository" does not exist on RPM level at all, it is something higher level package managers (like zypper or yum) understand.
There could be multiple repositories from the same vendor - the most obvious example is main and update repositories for an openSUSE release. Zypper does not really care from which local repository definition package comes from.
Thank you for the clarity. It's strange, though, because we "choose" a vendor for a package by enabling and setting priorities on a set of repos. -- Robert Webb