On 2023-03-23 12:30, Robert Webb via openSUSE Users wrote:
On Thu, 23 Mar 2023 10:17:30 +0100, Bengt Gördén
wrote: On 2023-03-23 08:03, 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".
Ah. Right. I have to admit I haven't read the man page thoroughly enough. It clearly states:
System Packages The set of installed packages on a system is sometimes denoted as repository @System or System Packages. In contrast to available repositories providing packages which can be installed, @System provides packages which can only be deleted. Installed packages which are not also provided by at least one of the available repositories are often denoted as being unwanted, orphaned or dropped.
The use of --repo is not recommended in several cases in the man page, but not in search. I wonder if it's the same with searches? Here is under the installation section:
"Using --repo is discouraged as it currently hides unmentioned repositories from the resolver, leading to inexpertly decisions. In the future --repo will become an alias for --from."
The problem with this 'zypper search' command is that the set of installed packages (--installed-only option) that are in the repository (--repo X) shrinks over time as the repo gets updated, with older package versions removed. This continues until you sync to the repo again with 'zypper dup'. But even then, the result may not show all the installed packages that came from repo X, if they are not in that repo anymore.
Then try my vendor concoction I posted, using rpm. It just has to be improved to correlate vendor string with repository string ;-) -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)