[Yum-devel] Yum test script

Tim Lauridsen tla at rasmil.dk
Thu Sep 20 12:26:46 UTC 2007


Tim Lauridsen wrote:
> Florian Festi wrote:
>> Tim Lauridsen wrote:
>>> I tested the script with the current yum git master branch
>>> it gives a lot of FAILED (See attached file)
>>
>> > Error: Cannot retrieve repository metadata (repomd.xml) for 
>> repository:
>> > fedora. Please verify its path and try again
>>
>> Hmm, the script currently uses the system's yum config. May be your 
>> yum configuration or the server it is pointing to is broken. (There 
>> was this F7 updates problem quite recently...)
>>
>> FYI: Expect an updated version soon.
>>
>> Florian
>> _______________________________________________
>> Yum-devel mailing list
>> Yum-devel at linux.duke.edu
>> https://lists.dulug.duke.edu/mailman/listinfo/yum-devel
> Found the problem.
> yum --installroot=/tmp/xxxx somecommand don't work with repos there 
> includes $releasever in the mirrorurl= & baseurl=, because a package 
> providing 'redhat-release' need to be installed in the install root so 
> yum can detect what version the system has.
> You must be running with some locale repos & mirrorlists, if you are 
> not getting any error.
>
> Tim
> _______________________________________________
> Yum-devel mailing list
> Yum-devel at linux.duke.edu
> https://lists.dulug.duke.edu/mailman/listinfo/yum-devel
These steps make it work:
yumdownloader fedora-release
rpm -ivh --root=/tmp/yum-release-test fedora-release-7-3.noarch.rpm


Tim



More information about the Yum-devel mailing list