I am trying to use yam to create a repo based on the 4.4 CDs. I have copied the contents of the CDs to /var/dist/CentOS-4.4-i386. No matter what I try, yam always creates an emtpy repo. This is my current yam.conf file: [main] srcdir = /var/yam wwwdir = /var/www/yam arch = i386 [centos] name = CentOS $release ($arch) release = 4 arch = i386 metadata = repomd os = file:///var/dist/CentOS-4.4-i386/CentOS/ And this is the directory structure after running 'yam -ug': /var/yam /var/yam/CentOS-4-i386-disc4.iso /var/yam/CentOS-4-i386-disc2.iso /var/yam/CentOS-4-i386-disc3.iso /var/yam/centos-i386 /var/yam/centos-i386/os /var/yam/CentOS-4-i386-disc1.iso /var/www/yam /var/www/yam/HEADER.shtml.yambak /var/www/yam/README.shtml.yambak /var/www/yam/HEADER.shtml /var/www/yam/README.shtml /var/www/yam/centos-i386 /var/www/yam/centos-i386/RPMS.os /var/www/yam/centos-i386/RPMS.os/.sha1sum /var/www/yam/centos-i386/RPMS.os/repodata /var/www/yam/centos-i386/RPMS.os/repodata/filelists.xml.gz /var/www/yam/centos-i386/RPMS.os/repodata/primary.xml.gz /var/www/yam/centos-i386/RPMS.os/repodata/repomd.xml /var/www/yam/centos-i386/RPMS.os/repodata/other.xml.gz /var/www/yam/centos-i386/RPMS.local /var/www/yam/centos-i386/RPMS.local/.sha1sum /var/www/yam/centos-i386/RPMS.local/repodata /var/www/yam/centos-i386/RPMS.local/repodata/filelists.xml.gz /var/www/yam/centos-i386/RPMS.local/repodata/primary.xml.gz /var/www/yam/centos-i386/RPMS.local/repodata/repomd.xml /var/www/yam/centos-i386/RPMS.local/repodata/other.xml.gz /var/www/yam/centos-i386/HEADER.shtml.yambak /var/www/yam/centos-i386/README.shtml.yambak /var/www/yam/centos-i386/HEADER.shtml /var/www/yam/centos-i386/.title /var/www/yam/centos-i386/RPMS.all /var/www/yam/centos-i386/README.shtml It simply will not copy or link the RPMs from my distribution directory. What is the correct way to do this? -- Bowie
yOn Fri, 15 Sep 2006, Bowie Bailey wrote:> I am trying to use yam to create a repo based on the 4.4 CDs. I have > copied the contents of the CDs to /var/dist/CentOS-4.4-i386. No > matter what I try, yam always creates an emtpy repo.This is the wrong mailinglist. See the Yam website for the correct mailinglist.> This is my current yam.conf file: > > [main] > srcdir = /var/yam > wwwdir = /var/www/yam > arch = i386 > > [centos] > name = CentOS $release ($arch) > release = 4 > arch = i386 > metadata = repomd > os = file:///var/dist/CentOS-4.4-i386/CentOS/Yam can handle the ISO files directly. Look at the examples that come with Yam. There is no need to copy the file from the ISO files. Kind regards, -- dag wieers, dag at wieers.com, http://dag.wieers.com/ -- [all I want is a warm bed and a kind word and unlimited power]
Dag Wieers wrote:> yOn Fri, 15 Sep 2006, Bowie Bailey wrote: > > > I am trying to use yam to create a repo based on the 4.4 CDs. I > > have copied the contents of the CDs to /var/dist/CentOS-4.4-i386. > > No matter what I try, yam always creates an emtpy repo. > > This is the wrong mailinglist. See the Yam website for the correct > mailinglist. > > > > This is my current yam.conf file: > > > > [main] > > srcdir = /var/yam > > wwwdir = /var/www/yam > > arch = i386 > > > > [centos] > > name = CentOS $release ($arch) > > release = 4 > > arch = i386 > > metadata = repomd > > os = file:///var/dist/CentOS-4.4-i386/CentOS/ > > Yam can handle the ISO files directly. Look at the examples that come > with Yam. There is no need to copy the file from the ISO files.I'll try that again. The first time I tried it, I was intending to share the repo with nfs and the ISO mounts caused problems with that. I've since switched to http. But shouldn't there be a way to do this with the directory? I thought that was what the file:// format was for? -- Bowie
Bowie Bailey wrote:> Dag Wieers wrote: > > yOn Fri, 15 Sep 2006, Bowie Bailey wrote: > > > > > I am trying to use yam to create a repo based on the 4.4 CDs. I > > > have copied the contents of the CDs to /var/dist/CentOS-4.4-i386. > > > No matter what I try, yam always creates an emtpy repo. > > > > This is the wrong mailinglist. See the Yam website for the correct > > mailinglist. > > > > > > > This is my current yam.conf file: > > > > > > [main] > > > srcdir = /var/yam > > > wwwdir = /var/www/yam > > > arch = i386 > > > > > > [centos] > > > name = CentOS $release ($arch) > > > release = 4 > > > arch = i386 > > > metadata = repomd > > > os = file:///var/dist/CentOS-4.4-i386/CentOS/ > > > > Yam can handle the ISO files directly. Look at the examples that > > come with Yam. There is no need to copy the file from the ISO files. > > I'll try that again. The first time I tried it, I was intending to > share the repo with nfs and the ISO mounts caused problems with that. > I've since switched to http. > > But shouldn't there be a way to do this with the directory? I thought > that was what the file:// format was for?Ok, I tried again with the ISO files. My yam.conf is identical to above except that I've removed the 'os' line and added this: iso = CentOS-$release-$arch-disc?.iso Yam now populates the RPMS.os directory with links into the ISO mounts, but it does not create the repodata directory. I'm going to attempt to create it myself with the createrepo command, but it should happen automatically, right? -- Bowie
Jim Perrin wrote:> > Okay, can we move this to the Yam support list now, like dag kindly > requested at the beginning?Sorry, I must have missed his comment. I didn't realized there was a separate yam support list. I'll move this over to the proper list now. *sigh* Just what I need... Yet Another Mailing list... :) -- Bowie