[Yum] local dependencies without headers

Brian Long brilong at cisco.com
Mon Aug 14 15:12:31 UTC 2006


On Mon, 2006-08-14 at 08:30 -0400, Ted Miller wrote:
> Menno Smits wrote:
> > Ted Miller wrote:
> >> If I do an "yum install foo", yum exits because it cannot download the 
> >> headers.  I assume this is related to the "ToDo" and wish-list items 
> >> about not downloading headers.  If I could get yum to proceed through 
> >> the install  until it gets to the y/N question, it would have told me 
> >> the files it was going to need, and I could write a script to extract 
> >> those names.
> > 
> > Yum exiting because it cannot download headers sounds like a 
> > configuration problem.
> 
> Keep in mind that what it complains about is accurate.  The only repos it 
> can see are my local mirrors, which are just indexes (repodata directory), 
> with no *.rpm files in the RPMS directory, because yum hasn't told me what 
> *.rpm files it needs to work with.

I believe this is the source of your problem.  In older days, yum used
header files in repodata.  Nowadays, yum uses byte-ranges to download
just the header of each RPM to compute the dependencies.

Yum cannot use only the data in repodata to tell you which RPMs are
required.  It has to download a byte-range of the RPM you are trying to
install (the header), so it can read the deps.

/Brian/

-- 
       Brian Long                      |         |           |
       IT Data Center Systems          |       .|||.       .|||.
       Cisco Linux Developer           |   ..:|||||||:...:|||||||:..
       Phone: (919) 392-7363           |   C i s c o   S y s t e m s




More information about the Yum mailing list