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

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

 



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@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
-- 
__________________________________________________
Troy Dawson  dawson@xxxxxxxx  (630)840-6468
Fermilab  ComputingDivision/CSS  CSI Group
__________________________________________________

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux