LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-26-2006, 09:52 AM   #1
nadavvin
Member
 
Registered: May 2006
Distribution: ubuntu
Posts: 109

Rep: Reputation: 21
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
Setting up Install Process
Setting up repositories
not using ftp, http[s], or file for repos, skipping - Null is not a valid release or hasnt been released yet
Cannot find a valid baseurl for repo: update
Error: Cannot find a valid baseurl for repo: update
[nadav@pcnadav /tmp]$ sudo yum --installroot=/opt/linux/ install yum
Setting up Install Process
Setting up repositories
not using ftp, http[s], or file for repos, skipping - Null is not a valid release or hasnt been released yet
Cannot find a valid baseurl for repo: update
Error: Cannot find a valid baseurl for repo: update
Code:
  --installroot=[path]  set install root
Why isn't it work?

Centos 4.

thanks for your help
Nadav.
 
Old 12-27-2006, 10:19 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
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
I will leave any dependency issues for you to resolve.

You may want to review this also; http://linux.web.psi.ch/livecd/build.html

Last edited by Lenard; 12-27-2006 at 10:23 AM.
 
Old 01-18-2007, 03:05 PM   #3
brianko
LQ Newbie
 
Registered: Jun 2005
Posts: 8

Rep: Reputation: 0
This doesn't fix the problem when using CentOS 4.4. Appears to be something else...
 
Old 01-18-2007, 03:09 PM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
The updates repo seems to be offline. Try doing
Code:
#yum --disablerepo=update --installroot=/opt/linux/ install bash
 
Old 01-18-2007, 03:13 PM   #5
brianko
LQ Newbie
 
Registered: Jun 2005
Posts: 8

Rep: Reputation: 0
Appreciate the quick response! Unfortunately, no luck on this one:

Code:
[root@galena tmp]# yum --disablerepo=updates --installroot=/opt install joe


Error getting repository data for updates, repository not found
Further digging reveals that $releasever isn't getting set.

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!

Last edited by brianko; 01-18-2007 at 05:47 PM.
 
Old 01-19-2007, 05:31 AM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Quote:

Further digging reveals that $releasever isn't getting set.
As a suggestion edit the CentOS-Base.repo file, for example;

[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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install iptables for FC6? is there a yum install? mrjeffc Linux - Newbie 2 12-21-2006 10:13 PM
yum update mythtv directory GONE ryedunn Fedora 1 10-19-2006 09:40 PM
can't install yum samnjugu Linux - Software 2 04-12-2006 01:03 PM
Query re: order of yum update and yum install jajtiii Linux - General 0 12-12-2005 12:48 PM
YUM installation directory DuFF234 Linux - Newbie 6 07-25-2004 07:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration