[Yum] local dependencies without headers

Ted Miller tmiller at broadcast.net
Tue Aug 15 00:10:25 UTC 2006


Brian Long wrote:
> 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.

I don't think so.  That header information is in the files in repodata. 
Otherwise yum would not be able to execute the deplist command, which it 
has no problem with.  And there is discussion in the ToDo and Enhancements 
Wiki about adding the ability to generate headers for RPM without having to 
download them, based on the information in the repodata files.

Ted



More information about the Yum mailing list