[opensuse-packaging] zypper repo-URLs
![](https://seccdn.libravatar.org/avatar/022a482927e713146ced675bb5399746.jpg?s=120&d=mm&r=g)
HI! How can I reliably construct the correct repo-URL of e.g. devel:languages:python with information available on the system? How to derive the SuSE-version-specific part? http://download.opensuse.org/repositories/devel:/languages:/python/SLE_12_SP... ^^^^^^^^^^ http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_... ^^^^^^^^^^^^^^^^^^^^ Even better if someone even knows an ansible play where this is done. Ciao, Michael.
![](https://seccdn.libravatar.org/avatar/e85bb1c491d4dd3ebd96110df58f8739.jpg?s=120&d=mm&r=g)
Am Mittwoch, 22. Juni 2016, 14:45:26 schrieb Michael Ströder:
HI!
How can I reliably construct the correct repo-URL of e.g. devel:languages:python with information available on the system? How to derive the SuSE-version-specific part?
Go to the project in OBS, click und build results on the version you would like to have, then 'go to download directory' and copy the URL: http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_... Greetz from oSC16! Axel -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/022a482927e713146ced675bb5399746.jpg?s=120&d=mm&r=g)
Axel Braun wrote:
Am Mittwoch, 22. Juni 2016, 14:45:26 schrieb Michael Ströder:
How can I reliably construct the correct repo-URL of e.g. devel:languages:python with information available on the system? How to derive the SuSE-version-specific part?
Go to the project in OBS, click und build results on the version you would like to have, then 'go to download directory' and copy the URL: http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_...
Yes, I know. But please re-read my posting. My aim is to implement fully automated Æ-DIR installation with ansible which does not depend too much on the SUSE version used. => So login to OBS is not an option. Ciao, Michael.
![](https://seccdn.libravatar.org/avatar/e85bb1c491d4dd3ebd96110df58f8739.jpg?s=120&d=mm&r=g)
Am Mittwoch, 22. Juni 2016, 15:00:16 schrieb Michael Ströder:
How can I reliably construct the correct repo-URL of e.g. devel:languages:python with information available on the system? How to derive the SuSE-version-specific part?
Go to the project in OBS, click und build results on the version you would like to have, then 'go to download directory' and copy the URL: http://download.opensuse.org/repositories/devel:/languages:/python/openSUS E_Leap_42.1/ Yes, I know.
But please re-read my posting. My aim is to implement fully automated Æ-DIR installation with ansible which does not depend too much on the SUSE version used. => So login to OBS is not an option.
Didnt understand it that way, sorry! -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/164a625f3a558d1dac0727ce6a3ba850.jpg?s=120&d=mm&r=g)
Michael Ströder [22.06.2016 14:45]:
HI!
How can I reliably construct the correct repo-URL of e.g. devel:languages:python with information available on the system? How to derive the SuSE-version-specific part?
http://download.opensuse.org/repositories/devel:/languages:/python/SLE_12_SP... ^^^^^^^^^^ http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_...
^^^^^^^^^^^^^^^^^^^^
Even better if someone even knows an ansible play where this is done.
Ciao, Michael.
Hi Michael, IMHO this cannot be done *reliably*. You can only have a guess, maybe based upon the content of /etc/os-release. But the providers of the repositories are free in choosing a name, and it may happen that a repo is renamed out ouf the blue (like, from openSUSE_42.1 to openSUSE_Leap_42.1). Maybe you can set a fact on the host you want to manage. I added some company specific ones in /etc/facter/facts.d, so that I can use them both in puppet and in ansible :) Regards, Werner --
![](https://seccdn.libravatar.org/avatar/5b748275c3dbb1ceee18ed554486547d.jpg?s=120&d=mm&r=g)
On Wednesday 2016-06-22 14:45, Michael Ströder wrote:
How can I reliably construct the correct repo-URL of e.g. devel:languages:python with information available on the system? How to derive the SuSE-version-specific part?
You can't. Because maintainers can choose any name they like. openSUSE_42.1, openSUSE_Leap_42.1, openSUSE-42.1. Seen it all! You would have to query the pkgmeta XML and look for <path>s that are of interest (since they are fixed), and then take the encompassing <repository> name. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/ba6138f793e72be6644854fdc3ec2f02.jpg?s=120&d=mm&r=g)
Hello, On Jun 22 14:45 Michael Ströder wrote (excerpt):
How can I reliably construct the correct repo-URL of e.g. devel:languages:python with information available on the system?
what do you mean with "with information available on the system"? E.g. on my openSUSE Leap 42.1 system with an installed cups package from a non-standard repo ------------------------------------------------------------- # rpm -qi cups | egrep '^Architecture|^Vendor|^Distribution' Architecture: x86_64 Vendor : obs://build.opensuse.org/home:jsmeix Distribution: home:jsmeix / openSUSE_Leap_42.1 ------------------------------------------------------------- you can re-construct the repo-URL wherefrom I got the installed cups package: http://download.opensuse.org/repositories/home:/jsmeix/openSUSE_Leap_42.1/x8... Or do you need to construct a repo-URL for packages that are not yet installed? Currently I don't have a better idea than to wget http://download.opensuse.org/repositories/devel:/languages:/python and inspect the result. Kind Regards Johannes Meixner -- SUSE LINUX GmbH - GF: Felix Imendoerffer, Jane Smithard, Graham Norton - HRB 21284 (AG Nuernberg)
![](https://seccdn.libravatar.org/avatar/022a482927e713146ced675bb5399746.jpg?s=120&d=mm&r=g)
Johannes Meixner wrote:
Or do you need to construct a repo-URL for packages that are not yet installed?
Yes.
Currently I don't have a better idea than to
wget http://download.opensuse.org/repositories/devel:/languages:/python
and inspect the result.
Hmmpf! Others already responded that it's not possible. So I will end up adding yet another OS-specific mapping into my ansible role(s). IMO it would be a very handy to have a well-defined name-space ideally based on something lsb_release -a or similar on the system would show. Ciao, Michael.
![](https://seccdn.libravatar.org/avatar/ba6138f793e72be6644854fdc3ec2f02.jpg?s=120&d=mm&r=g)
Hello, On Jun 23 10:29 Michael Ströder wrote (excerpt):
IMO it would be a very handy to have a well-defined name-space ideally based on something lsb_release -a or similar on the system would show.
Or even more generally have a zypper option to search for available repo-URLs on a particular repo server e.g. something like zyper searchrepo querystring http://download.opensuse.org/ Kind Regards Johannes Meixner -- SUSE LINUX GmbH - GF: Felix Imendoerffer, Jane Smithard, Graham Norton - HRB 21284 (AG Nuernberg)
participants (5)
-
Axel Braun
-
Jan Engelhardt
-
Johannes Meixner
-
Michael Ströder
-
Werner Flamme