Re: YumRepo Error: All mirror URLs are not using ftp, http[s] or file.

James Antill <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
Chad Woolley <[email protected]> writes:

> On Fri, Oct 15, 2010 at 5:08 AM, James Antill <[email protected]> wrote:
>>  This is the main problem, $releasever is set by looking in the rpmdb
>> and seeing what provides redhat-release. However with the first run
>> of --installroot you don't have an rpmdb, and so $releasever is unset.
>>  With newer versions of yum you can use --releasever=/ etc. but for
>> older versions of yum you'll have to edit all your .repo files and
>> manually change the $releasever to something.
>
> Thank you for the reply, manually editing worked.
>
> Is there any way I can initialize the rpmdb with the correct
> redhat-release, or avoid the need to manually edit the .repo files?

 No, that's why we added the --releasever option.

-- 
James Antill -- [email protected]
http://yum.baseurl.org/wiki/releases
http://yum.baseurl.org/wiki/whatsnew/3.2.29
http://yum.baseurl.org/wiki/YumMultipleMachineCaching
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.