[Yum-devel] plugin to order downloads wrt size

Rakesh Pandit rakesh.pandit at gmail.com
Mon Jun 22 16:43:15 UTC 2009


2009/6/22 Seth Vidal wrote:
>
>
> On Mon, 22 Jun 2009, Rakesh Pandit wrote:
>
>>>> Suggestions and comments for improvement ?
>>>
>>> 1. dare I ask it - what difference does it make the order the pkgs are
>>> downloaded in?
>>>
>>
>> it is useful for people on low bandwidth connections as it makes it
>> easier to get packages without having to cut a large download in
>> between and having it download all over again.
>
> when you cut a large download yum restarts the download from where it left
> off. urlgrabber implemented regets specifically for this purpose.
>

That is nice and I did not notice it, still I find it useful to
download as many as possible rpms before hand and leave big remaining
for later .. when I am back at my working place (with high bandwidth)
- same behaviour as F10 had.

>
>>
>>> 2. implementing your own downloadpkgs and overriding it is completely
>>> doomed.
>>>
>>
>> May you suggest another way ? As I mentioned ordering was happening
>> between predownload and postdownload hook .. so I could not figure out
>> a better way, may you suggest?
>>
>> Moreover I was also plaining to do a download-by-deps i.e say 'yum
>> install foo bar' will download foo and all its deps first and then bar
>> and remaining deps for same reason as mention above.
>
> can't you install the downloadonly plugin and run:
>
> yum --downloadonly install foo
>
> then
> yum --downloadonly install bar
>
> then
> yum install foo bar
>
> and get the same results?
>

no it does not server my purpose .. say foo and bar is at root of a
big tree of dependencies, I would like to download all depth first and
would like yum to solve it rather then me figuring out which package
requires which package and doing yum --downloadonly install for each.

--
Regards,
Rakesh Pandit


More information about the Yum-devel mailing list