How do I install to different directory with yum?
I want install very base system to chroot with yum:
Code:
$ sudo yum --installroot=/opt/linux/ install bash Code:
--installroot=[path] set install root Centos 4. thanks for your help Nadav. |
First try replacing your current /etc/yum.repos.d/CentOS-base.repo file with the one found here;
http://isoredirect.centos.org/centos/4.4/ And you might want to upgrade yum; Code:
rpm -Uvh http://isoredirect.centos.org/centos/4.4/os/i386/CentOS/RPMS/yum-2.4.3-1.c4.noarch.rpm You may want to review this also; http://linux.web.psi.ch/livecd/build.html |
This doesn't fix the problem when using CentOS 4.4. Appears to be something else...
|
The updates repo seems to be offline. Try doing
Code:
#yum --disablerepo=update --installroot=/opt/linux/ install bash |
Appreciate the quick response! Unfortunately, no luck on this one:
Code:
[root@galena tmp]# yum --disablerepo=updates --installroot=/opt install joe Running yum without --installroot set seems to work fine. UPDATE: Well, despite numerous examples of "yum --installroot=yada" in the docs, this doesn't seem to work on a stock CentOS 4.4 install, and I've not found an adequate solution other than to install from source. My suggestion to those with this problem is to not waste time with it if you can install from source -- your time will be much better spent than trying to track this one down. Thanks to reddazz and Lenard for the suggestions! |
Quote:
[update] name=CentOS-4.4 - Updates mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updates #baseurl=http://mirror.centos.org/centos/4/updates/$basearch/ gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 |
All times are GMT -5. The time now is 09:20 AM. |