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

Parag N(पराग़) panemade at gmail.com
Thu Nov 10 05:43:41 UTC 2011


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>"

Parag


More information about the devel mailing list