[Yum] Using yum to create a seperate installation on a file system

Marian Szczepkowski marian at jozep.com.au
Sat Aug 6 07:12:58 UTC 2005


Hi

The yum.conf file contains the reposdir that is supposed to pull in the
repo's if finds in the defined directory. This is currently set to 
"reposdir=/root/yumstuff"... does this switch work or is this broken?





On Fri, 2005-08-05 at 12:08 -0500, Troy Dawson wrote:
> marian szczepkowski wrote:
> > Hi
> > 
> > I am trying to use yum to install to a file system without having yum 
> > install all the repo and cache data on the destination filesystem. The 
> > installroot directive appeared to be what I was after, but all fails, 
> > and the following is what I get,
> > [root at cherafir ~]# yum -c /root/yumstuff/yum.conf install yum
> > Yum Version: 2.2.1
> > COMMAND: yum -c /root/yumstuff/yum.conf install yum
> > Installroot: /root/mnt
> > Ext Commands:
> >   yum
> > Setting up Install Process
> > Setting up Repos
> > No Repositories Available to Set Up
> > 
> > My yum.conf looks like this, and I have placed a known working set of 
> > repo's in the yumstuff directory
> > [main]
> > cachedir=/root/yumstuff
> > debuglevel=10
> > logfile=/root/yumstuff/yum.log
> > pkgpolicy=newest
> > distroverpkg=redhat-release
> > tolerant=1
> > exactarch=1
> > retries=20
> > obsoletes=1
> > gpgcheck=1
> > installroot=/root/mnt
> > reposdir=/root/yumstuff
> > cachedir=/root/yumstuff
> > 
> > 
> 
> My guess is
> "No Repositories Available to Set Up"
> 
> You are not pointing yum at any repositories, so it has nothing to do. 
> You'll need to add a repository section into your yum.conf such as
> 
> [macromedia]
> name=Macromedia Flash Plugin
> baseurl=http://sluglug.ucsc.edu/macromedia/rpm/
> enabled=1
> 
> 
> Troy
-- 
Marian Szczepkowski <marian at jozep.com.au>
JOZEP Pty/Ltd



More information about the Yum mailing list