Re: problem with loical yum repository

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Sep 16, 2006 at 04:29:06PM +0200, adel.essafi wrote:
> Dear all
> 
> I am trying to configure a local yum repository server.
> I have copied the FC5 dvd in the /var/www/htmlyum/5/i386/os.

I think you left a / out: /var/www/html/yum/5/i386/os

> Next, I have executed the createrepo commande from os directory.

You needn't bother with the createrepo command. FC5 installations are
yum based, so there is a repo already on the DVD, in /repodata.

> when trying to do yum update, I got this. Note that the
> webserver works correctly.

It certainly does.

> Can you help please
> Thanks
> Adel
> 
> 
> [root@se adel]# yum update
> Loading "installonlyn" plugin
> Setting up Update Process
> Setting up repositories
> livna                                                        
>        [1/8]
> flash                                                        
>        [2/8]
> extras                                                       
>        [3/8]
> core                                                         
>        [4/8]
> jpackage-fedora                                              
>        [5/8]
> base                                                         
>        [6/8]
> http://193.95.34.237/yum/5/i386/os/Fedora/base/RPMS/repodata/repomd.xml:
> [Errno 14] HTTP Error 404: Date: Sat, 16 Sep 2006 15:20:23 GMT
> Server: Apache/2.2.0 (Fedora)
> Content-Length: 326
> Connection: close
> Content-Type: text/html; charset=iso-8859-1
> Trying other mirror.
> Cannot open/read repomd.xml file for repository: base
> failure: repodata/repomd.xml from base: [Errno 256] No more
> mirrors to try.
> Error: failure: repodata/repomd.xml from base: [Errno 256] No
> more mirrors to try.
> [root@se adel]# ll /var/www/html/yum/5/i386/os/repodata/
> total 8256
> -rw-r--r-- 1 root root 2422527 sep 15 15:02 filelists.xml.gz
> -rw-r--r-- 1 root root 5227250 sep 15 15:02 other.xml.gz
> -rw-r--r-- 1 root root  770285 sep 15 15:02 primary.xml.gz
> -rw-r--r-- 1 root root     951 sep 15 15:03 repomd.xml
> [root@se adel]#

Your baseurl should point to the root of the DVD file tree. Since I
mount my FC5 DVD image on a loopback device, my baseurl is as follows:

baseurl=ftp://charlesc/pub/fc$releasever/FC-5-i386-DVD.iso

On the server, I can do this:

[root@charlesc ~]# ls /var/ftp/pub/fc5/FC-5-i386-DVD.iso
eula.txt    README                 RPM-GPG-KEY-fedora
Fedora      README-Accessibility   RPM-GPG-KEY-fedora-extras
fedora.css  RELEASE-NOTES          RPM-GPG-KEY-fedora-rawhide
figs        RELEASE-NOTES-en.html  RPM-GPG-KEY-fedora-test
GPL         repodata               RPM-GPG-KEY-rawhide
images      RPM-GPG-KEY            stylesheet-images
isolinux    RPM-GPG-KEY-beta       TRANS.TBL

So if I wanted to use your repository (thank you very much :-) I would
use:

baseurl=http://193.95.34.237/yum/$releasever/$basearch/os/

-- 

Charles Curley                  /"\    ASCII Ribbon Campaign
Looking for fine software       \ /    Respect for open standards
and/or writing?                  X     No HTML/RTF in email
http://www.charlescurley.com    / \    No M$ Word docs in email

Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB

Attachment: pgp4E2rLu6yzn.pgp
Description: PGP signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux