<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><P style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Thank you very much, David. Actually, just updating the packages yum and yum-updatesd solved the problem. I didn't try any of the other solutions you suggested, especially that of using createrepo with fedora 7 to rebuild the repodata file.</P>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">However, I once applied this solution(using createrepo) with fedora 6 a few months ago, because I had a similar problem with using the fedora 6 installation DVD as a repository. At that time, the repodata file was totally corrupted, and I had to mount the DVD manually and rebuild the repodata file, just as you described.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">I even discovered that the problem I've encountered with fedora 7 wasn't with devel packages, it was the ability of yum to deal with multiple packages as matches for a name. For example, when I issue the command</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">sudo yum install qt-devel</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">it matched both qt-devel.i386 and qt-devel.x86_64(; remember that I'm using the 64-bit edition of fedora). I've even encountered the same problem with uninstalling packages using a command like</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">sudo yum erase qt-devel</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Anyway, the problem is now gone; the updated version of yum can deal with multiple packages seamlessly, both in installation and uninstallation.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Thanks again for the support.<BR><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: fedora-list <<A href="mailto:fedora-list@redhat.com"><FONT color=#0000ff>fedora-list@redhat.com</FONT></A>><BR>To: Mohammed El-Afifi <mohammed_elafifi@yahoo.com><BR>Sent: Thuesday, September 25, 2007 00:44:38 AM<BR>Subject: Re: yum problem with local repositories<BR><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV><PRE style="MARGIN: 0em">Mohammed El-Afifi wrote:  </PRE>
<BLOCKQUOTE style="PADDING-LEFT: 0.85em; MARGIN: 0em; BORDER-LEFT: #5555ee 0.2em solid"><PRE style="MARGIN: 0em">I'm using fedora 7, 64-bit edition. I'm using yum version 3.2.0. I've added a repository for the fedora 7 installation DVD by adding the following files to the file /etc/yum.repos.d/fedora.repo:  [DVD]  name=Fedora $releasever - DVD  baseurl=file:///media/Fedora%207%20x86_64%20DVD  enabled=1  gpgcheck=0  gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GP  G-KEY  When I try to install any development package from this repository(e.g. qt-devel), yum fetches the package and asks for confirmation to download it. After I confirm, it echos the following error messages:  Downloading Packages:  Then, I get the following error messages:  Traceback (most recent call last):    File "/usr/bin/yum", line 29, in <module>      yummain.main(sys.argv[1:])    File "/usr/share/yum-cli/yummain.py", line 172, in main     
 base.doTransaction()    File "/usr/share/yum-cli/cli.py", line 302, in doTransaction      problems = self.downloadPkgs(downloadpkgs)    File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 798, in downloadPkgs      remote_pkgs.sort(mediasort)    File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 747, in mediasort      a = a.getDiscNum()    File "/usr/lib/python2.5/site-packages/yum/packages.py", line 485, in getDiscNum      return int(fragid)  ValueError: invalid literal for int() with base 10: ''  Is this a bug in this version of yum?  </PRE></BLOCKQUOTE><PRE style="MARGIN: 0em">Maybe yum update yum to get the current yum version first.    </PRE>
<BLOCKQUOTE style="PADDING-LEFT: 0.85em; MARGIN: 0em; BORDER-LEFT: #5555ee 0.2em solid"><PRE style="MARGIN: 0em">Or am I just missing something else?  </PRE></BLOCKQUOTE><FONT face="Courier New"><TT>yum -d 15 {whatever} can give some useful info on what is going wrong. </TT><TT>Without that info, my guess is: </TT><TT>If you look at the dvd's /repodata, in particular the repomd.xml, and </TT><TT>other referred files, you see: </TT></FONT><PRE style="MARGIN: 0em"><location xml:base="media://{digits.digits} href=repodata/{a file} />    </PRE><FONT face="Courier New"><TT>So it tries to look for a thing called media://digits... to find the </TT><TT>actual rpm's. </TT></FONT><PRE style="MARGIN: 0em"></PRE><FONT face="Courier New"><TT>If this is the case, it wont just be *-devel-*.rpm that are a problem, </TT><TT>but all files from the repo. </TT></FONT><PRE style="MARGIN: 0em"></PRE><FONT face="Courier New"><TT>I resolved this myself sometime ago by
 mounting the dvd, then running </TT><TT>createrepo {yum-utils} one directory higher in the hierarchy. </TT></FONT><PRE style="MARGIN: 0em">Let us know what you find.    DaveT.</PRE></DIV></DIV><BR>
<HR SIZE=1>
<A href="http://us.rd.yahoo.com/evt=48250/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v9.php?o=US2226&cmp=Yahoo&ctv=AprNI&s=Y&s2=EM&b=50" target=_blank rel=nofollow>Pinpoint customers </A>who are looking for what you sell. </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR></DIV></div><br>



      <hr size=1>Boardwalk for $500? In 2007? Ha! <br><a href="http://us.rd.yahoo.com/evt=48223/*http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow">Play Monopoly Here and Now</a> (it's updated for today's economy) at Yahoo! Games.</body></html>