Re: Yum release version problem in rawhide Fedora 7.Please Help me



On Jun 24, 9:28 am, "hide1...@xxxxxxxxx" <hide1...@xxxxxxxxx> wrote:
Hello everyone:
I'm currently using Fedora 7 which is updated form FC5 by yum. I find
i couldn't use yum to update or install anymore. the Err message is

http://download.fedora.redhat.com/pub/fedora/linux/releases/7.89/Ever...
[Errno -1] Error importing repomd.xml for fedora: Damaged repomd.xml
file

I notice that the version is 7.89 but it should be 7.After looking
into /etc/yum.repo.d/ I realize that a variable named $releasever is
not correct and this variable is set in yum.conf by disttroverpkg
option. Follow those hints, I changed the content in/etc/fedora-
release file from 7.89 to 7 But THAT DOESN'TWORK. I also managed to
reinstall the fedora-release 7-3 or install fedora-release 7.89-2 and
remove other repo like freshrpm and livna.I guess freshrpm was not
compatible with a rawhide version fedora and massed up my yum.

My QUESTION IS how to change the $releasever in yum repo files in
order to make a correct download path

Another problem is that when i changed fedora.repo file with correct
path.My yum could download primary.sqlite.bz2 from server but the
matadata file's checksum always worong. I want to know where does yum
get checksum file and How to set them in the yum

Thanks.



I look into the source code of yum in /usr/lib/python2.5/site-packages/
yum/config.py

In this file you will find that the releasever var is matched form rpm
database. After that the solution is pretty
easy.

use rpm --force --i fedora-release-7-3.rpm to install fc7
you also have to use rpm -e fedora-release-7.89.rpm to uninstall old
one so that the rpm database could return a correct releasever.

.



Relevant Pages

  • Re: Yum issues..
    ... Subject: Yum issues.. ... In above baseurl you did something that won't work. ... rely on the $releasever variable to expand to "10" automatically. ...
    (Fedora)
  • Re: Yum $releasever $basearch
    ... Paul Howarth wrote: ... > Yum just expands these strings to the appropriate values as and when it ... > It derives the $releasever value from the version number of the package ... This might explain why you need to use "wget -c" to get the new yum RPM ...
    (Fedora)
  • Re: Some thoughts about yum and repositories
    ... > yum use to look for the releasever. ... Whatever package you define in the yum.conf for distroverpkg. ...
    (Fedora)
  • Re: fedora-list Digest, Vol 55, Issue 95
    ... Regarding Fedora core 9 ... Re: Yum Error ... KDE 4.1 Desktop, folder view, panel and widget tips and ... Rawhide packages are NOT signed. ...
    (Fedora)
  • Re: Win4Lin (ask if the next yum kernel update would need to be seperately patched????)
    ... > really do my job without either using a windows machine, or running win4lin. ... I do tend to trust yum. ... could a 2nd copy of win4lin in the other fedora ... If both of those are true, I might decide to manually do my kernel ...
    (Fedora)