-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
В Sun, 05 Jul 2015 14:32:07 +0200
"Carlos E. R."
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 2015-07-05 13:57, Anton Aylward wrote:
On 07/03/2015 06:37 PM, Carlos E. R. wrote:
In fact, what I would do if I were to work on this, is an rpm query, relating vendors to repositories.
You would have to do that outside of the RPM database.
Vendor string is stored in the database. You are right, the repository name can't, it changes, but there must be a way to calculate it: zypper does, somehow.
I do not think zypper really knows it. zypper knows list of packages in each repository and vendor of each package (which is part of metadata). So it can show you list of packages sorted by repo and filtered by installed status - but for a random package installed on your system there is no way to know from which repository it had been installed, short of checking each repository and comparing versions. As extreme example - take all installed RPMs and place them in single directory and add this directory as repository. You have single repository and multiple vendors inside. There is no relation between package and repository that can be deduced by looking at package. So I do not think you get anything better than "zypper se -si". And in general VENDOR is the right approach - you get openSUSE and everything else is /usually/ direct link to OBS project name. So it is possible to recreate configuration. I do not know what packman is using as VENDOR tag. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlWZZ60ACgkQR6LMutpd94yTkwCfXN1CVnIqeSDvFboJfs1fOsIe FBYAni4v86edovU4Qpa8GN8KmmLd9EP7 =EqJ3 -----END PGP SIGNATURE-----