How to find out download URL for a given package through code ?

Jiri Moskovcak jmoskovc at redhat.com
Thu Nov 10 07:31:24 UTC 2011


On 11/10/2011 06:43 AM, Parag N(पराग़) wrote:
> Hi,
>
> On Thu, Nov 10, 2011 at 10:11 AM, Kushal Das<kushaldas at gmail.com>  wrote:
>> Hi all,
>>
>> I am trying to find the best suitable way to get download URL for any
>> given package ? Say, someone wants to find out download URL for
>> libreoffice-calc-3.3.3.1-1.fc15.x86_64 . The user may not be on a
>> Fedora 15 box. I saw yumdownloader --urls option.
>>
>> Any pointers ?
>
> If you have package n-v-r then you can use "koji rpminfo<n-v-r>" and
> from that output grab the build-id and using that you can construct
> download URL.
> Also, if you want to download all the binary rpms for that package
> then you can use "koji download-build<build-id>"

- or actually look into koji client code and use that part which does 
"download-build"

Jirka

>
> Parag



More information about the devel mailing list