[opensuse-packaging] dependency queries to OBS
Hi: Is there any way I can do the following: Give me a sorted list of packages dependening on libfoo.so(64bit) AND libbar(64bit) [AND .. ] [OR...] osc whatdependson is not very helpful at all..you can only query exact source package names..all this metadata is there and even displayed on the web interface but I found no way to consume it to make something useful. thanks for any pointer.. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 2018-03-19 13:46:03 -0300, Cristian Rodríguez wrote:
Is there any way I can do the following:
Give me a sorted list of packages dependening on libfoo.so(64bit) AND libbar(64bit) [AND .. ] [OR...]
osc whatdependson is not very helpful at all..you can only query exact source package names..all this metadata is there and even displayed on the web interface but I found no way to consume it to make something useful.
Hmm I'm not aware of any api call for this. Something along these lines should do the trick: curl -u <username> -o factory.solv \ https://api.opensuse.org/build/openSUSE:Factory/snapshot/x86_64/_repository?... and then adapt the attached script to your needs (note it requires the perl-BSSolv package). The attached script outputs all packages that depend on "libc.so.6()(64bit)" AND "filesystem": marcus@linux:~/open-build-service/src/backend> perl query.pl uucp sendmail timezone aaa_base glibc dracut gnome-terminal udev udev-mini marcus@linux:~/open-build-service/src/backend> Marcus
El 19-03-2018 a las 15:25, Marcus Hüwe escribió:
and then adapt the attached script to your needs (note it requires the perl-BSSolv package). The attached script outputs all packages that depend on "libc.so.6()(64bit)" AND "filesystem":
Wow, thank you very much Marcus, that's more than good enough to get started. :) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (2)
-
Cristian Rodríguez
-
Marcus Hüwe