On 27/12/2021 15.49, Andrei Borzenkov wrote:
On Mon, Dec 27, 2021 at 8:20 AM Michael Hamilton <michael@actrix.gen.nz> wrote:
Problem: it doesn't contain repository information, for installations with things coming from different repos.
Rpm can report any tag.
Package repository is not in RPM metadata. Zypper simply shows you all repositories that provide a package with a given name and assumes the package comes from the repository if the installed version is the same as the version in the repository. So there is no reliable way to have it.
Sometimes the "vendor" tag contains reference to the OBS repository, but e.g. in Leap 15.3 you will see openSUSE and SUSE as vendors.
So, there could be two repos with the same vendor, and zypper could update from any of them while "keeping the vendor" quite happily. -- Cheers / Saludos, Carlos E. R. (from 15.2 x86_64 at Telcontar)