[Yum] Downloading header problems
seth vidal
skvidal at phy.duke.edu
Thu May 26 03:35:31 UTC 2005
On Tue, 2005-05-24 at 10:09 -0500, Troy Dawson wrote:
> Howdy,
> I'm not thinking this is a yum problem, probrubly a type of
> configuration problem, but I just can't figure it out.
>
> Background
> Release: Scientific Linux 4.0
> yum-2.2.1-1.SL.noarch
> rpm-4.3.3-7_nonptl.i386
> python-2.3.4-14.1.i386
>
> This is not a modified yum like our older one. The only thing we do is
> pull the configuration files out and put them in a separate rpm. So
> this is a real 2.2.1.
>
> Problem
> For a user in Australia, when he does an update for new security
> releases, instead of just pulling down a small header, it pulls down the
> full rpm, which takes quite a while.
>
> So instead of
> ------------------------------
> #yum update firefox
>
> ...snip...
>
> Resolving Dependencies
> --> Populating transaction set with selected packages. Please wait.
> ---> Downloading header for firefox to pack into transaction set.
> firefox-1.0.4-1.4.1.i386. 100% |=========================| 66 kB 00:00
> ---> Package firefox.i386 0:1.0.4-1.4.1 set to be updated
> --> Running transaction check
>
> Dependencies Resolved
> Transaction Listing:
> Update: firefox.i386 0:1.0.4-1.4.1 - sl-errata
> Total download size: 16 M
> ---------------------------------
>
> He is getting
>
> ---------------------------------
> # yum update firefox
>
> ...snip...
>
> Resolving Dependencies
> --> Populating transaction set with selected packages. Please wait.
> ---> Downloading header for firefox to pack into transaction set.
> firefox-1.0.4-1.4.1.i386. 100% |=========================| 16 MB 08:43
> ---> Package firefox.i386 0:1.0.4-1.4.1 set to be updated
> --> Running transaction check
>
> Dependencies Resolved
> Transaction Listing:
> Update: firefox.i386 0:1.0.4-1.4.1 - sl-errata
> Total download size: 16 M
> -------------------------------------
>
> As you can see, instead of downloading a 66 kB file, it is downloading a
> 16 MB file, which is the same size as the rpm.
>
> His config file, is the same config file as a standard except for one
> thing. His cache line says
> cachedir=/mnt/software/mirror/sl/40
> which is a nfs mounted directory. This is his master machine doing the
> yum'ing, and all the others have this mounted and do a 'yum -C ...' so
> they don't have to do the downloading. But I really don't feel that
> it's the cache doing anything.
>
> Sorry for making this so long, but I've been trying to figure this out,
> so I have alot of info. :)
> Any hints as to where the problem lies? Why he would be getting the
> full file instead of just a header?
b/c he is behind a proxy which does not support http byte ranges, most
likely.
see what kind of proxy the user is behind and make sure your http server
supports byte ranges.
-sv
More information about the Yum
mailing list