LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-04-2009, 06:20 PM   #1
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Rep: Reputation: 40
FC10 command line install using RPM, can't find dependences


Hi group,

I want to install a new system on a fresh disk, so I am using RPM on the command line. Using --root to install on the new target disk. I have the ISO mount and RPM can find the requested kernel* files, but he fails to find the dependences.

How can I tell RPM to look at the disk ISO to find the dependences??
 
Old 04-04-2009, 06:27 PM   #2
gamax92
LQ Newbie
 
Registered: Apr 2009
Posts: 15

Rep: Reputation: 1
Why do you want to install a fresh system? And why are you using rpm off a command line? Why rpm in the first place?

I really need a lot more information about if you are all ready using linux or not. If yes, What are you using? If no, how are you trying?

Last edited by gamax92; 04-04-2009 at 06:29 PM.
 
Old 04-04-2009, 06:51 PM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
RPM is not designed to resolve dependencies, this is why yum came to be. You can use yum from the command line. IF you want to pull things from an iso, you have to mount the iso, and then redirect the media repo to the mount point for the iso.
 
Old 04-05-2009, 01:01 PM   #4
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by lazlow View Post
RPM is not designed to resolve dependencies, this is why yum came to be. You can use yum from the command line. IF you want to pull things from an iso, you have to mount the iso, and then redirect the media repo to the mount point for the iso.
I am using RPM because I can't figure out how to redirect YUM to another file system. With RPM I use the '--root' option. If you can tell me how to redirect YUM then I would use YUM, it is much easier to use.
I have the ISO mount on a loop back, is that is not a problem.
 
Old 04-05-2009, 01:29 PM   #5
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by gamax92 View Post
Why do you want to install a fresh system? And why are you using rpm off a command line? Why rpm in the first place?

I really need a lot more information about if you are all ready using linux or not. If yes, What are you using? If no, how are you trying?
I want to install a small Linux image for my server. My server runs on a Soekris 4801 which is a 266mhz cpu. Last time I installed on this SBC it took 5 hours and created a blotted system with too much stuff on it. So I am trying to bypass the standard install process. I have tried Ubuntu, Gentoo, Bintoo and Debian, not impressed. I stick with Fedora, I know it well enough.

I'm not a newbie. I have been around for a few years, worked on many systems, including Unix mainframes. The problem is getting the tools to do what I want them to do, not what the developers want! Like array indexing that start at zero and not one! That is a different topic.

I have a real problem with the standard Fedora install! I don't want Evolution, Thunderbird, Firefox or all that other stuff. I want a small system image and I will select the extras that I want. Just trying to develop that process. I tried the 'Command line' install with Ubuntu but did not like the product.

I would still like to see a mini-Gnome process.
 
Old 04-05-2009, 03:49 PM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Ok, if you look in /etc/yum.repos.d there should be a file with media in the name. I am running C5.3 but here is mine:

Quote:
[c5-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
file:///media/cdrom/
file:///media/cdrecorder/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
You just change the baseurl to the mount point of the install ISO. You will also have to set enabled=1(turn on access to that repo) and change enabled=0 (turn off) all the other repos (in each file in the same directory).
 
Old 04-08-2009, 01:52 PM   #7
stoggy
Member
 
Registered: Jun 2008
Location: Dallas, TX
Distribution: Slackware and FC
Posts: 113

Rep: Reputation: 22
You could do this with rpm, The easiest way to do this would be something like this:

rpm -ivh --root /path/to/kernel.rpm
===it will fail again but get the list of dependencies it needs===

rpm -ivh --root /path/to/new/fs /path/to/kernel.rpm /path/to/kernel.whatever-else.rpm /path/to/dependency-1.rpm /path/to/dependency-2.rpm /path/to/dependency-3.rpm ...


so basically just add the dependencies to the rpm command, so it knows to install those also.

if the dependency list is really long you could paste or redirect them into a file and then use sed or vi to remove the unneccasary info so you have a clean list of rpm names. Then add the path to each in the file.

=== so the file would look something like this===
/path/to/dependency-1.rpm
/path/to/dependency-2.rpm
/path/to/dependency-3.rpm
...


then run this command:

rpm -ivh --root /path/to/mount /path/to/kernel.rpm "`cat list-of-rpms`"


*** notice the "double-quotes" around the `ticks` this is important because the list, at least as I diplayed it is multiple lines, so if you don't put the "double-quoutes" it wont work. Unless you make the list-of-rpms file all 1 line... that would be hard to read though...


Goodluck though let us know how it goes!

Last edited by stoggy; 04-08-2009 at 03:48 PM.
 
  


Reply



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 redhat rpm from command line. droodle Linux - Newbie 4 07-26-2005 06:00 AM
Guile rpm file won't install from command line or yast2 TdlSnare SUSE / openSUSE 5 12-01-2004 07:36 AM
Can I install an RPM without command line? akilhoffer Linux - Newbie 13 09-06-2004 09:23 PM
What is the correct command line sytax to install an rpm on mandrake 10? Stevetgn Linux - Newbie 3 07-14-2004 09:48 AM
How do you install .rpm by command line (RH9.0) Thaidog Linux - Newbie 5 05-18-2004 05:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:54 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