LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 10-17-2005, 03:08 PM   #1
fiservguy
Member
 
Registered: Nov 2004
Distribution: RHEL 2.1, RHEL 3.0, SUSE 9.2
Posts: 31

Rep: Reputation: 16
Installing base packages from disk, not CD


I realize this should be a pretty straightforward thing to figure out, but I'm stumped.

I have copied my RHEL 3 CDs onto an nfs drive, and want to use that going forward to add/remove the base packages on my system. How do I do this??

I assume there's a config file somewhere that I tell the location of the rpms, but I don't know where it is. Every search I've run tells me how to set up an nfs install point. I don't want an nfs install point, I want to change the point that already exists.

Any help would be greatly appreciated.

thanks,
matt
 
Old 10-18-2005, 03:59 PM   #2
joking
LQ Newbie
 
Registered: Feb 2004
Location: Western NC
Distribution: RH 5.2, 7.3, Fedora, Gentoo
Posts: 15

Rep: Reputation: 0
this might not be much help but here goes:

this is sure-fire set up on RH 7.3

install directory:

/usr/nfs7 > contains all the data and directoryies from the cd's

/usr/nfs5 > contains all the data and directories from the cd's.

symbolic links to both from root directory /nfs7 and /nfs5

/etc/exports
"contains"
/nfs7 *(rw, no_root_squash)
/nfs5 *(rw, no_root_squash)

now restart nfs

RH7.3 it's

# service nfs restart

this will allow other computers to access the files.

if you want to install or remove something on the system these files are on, then you use the package installation program, in my case

# rpm -ivh /nfs/RedHat/RPMS/(name of rpm)

Perhaps this will help.
 
Old 10-19-2005, 08:02 AM   #3
fiservguy
Member
 
Registered: Nov 2004
Distribution: RHEL 2.1, RHEL 3.0, SUSE 9.2
Posts: 31

Original Poster
Rep: Reputation: 16
Thanks for the reply, but that's not what I'm trying to do. Let me try to explain again...

I have a system that I built from CD. If, through the GUI, I want to install, say, the K development tools, I go to the Add/Remove programs menu item, scroll down until I find the entry for "K Development tools, and check it. I click continue, and I'm told that 30+/- packages will be installed. I hit ok and it asks me to put in CD3, put in CD4, etc. etc. and eventually everything is installed.

What I want is for my system to NOT ask for CD3 to install the packages related to the K development tools. I want my system to know that I've copied all of the base RPMs onto one of the system's disks, and to install from that point.

I assume there is a config file somewhere that tells the system where to look for these packages. Where is it, and how do I modify it?
 
Old 10-19-2005, 09:05 AM   #4
joking
LQ Newbie
 
Registered: Feb 2004
Location: Western NC
Distribution: RH 5.2, 7.3, Fedora, Gentoo
Posts: 15

Rep: Reputation: 0
Okay get all gui on me. HA!

This isn't windows so forget about add/remove programs. Your actually installing packages so learn to speak rpm in redhat, apt in Debian, merge in Gentoo and so on and so forth.

If you want to install from hard disk, this includes adding rpms later, you must mount and copy cd1, cd2, cd3 and cd4 to the directories I refered to in my last reply. Most of the cd's contain an RPMS directory with the rpms in them. You can put all rpms in the same /nfs7.3/RedHat/RPMS directory. Remember to stop confusion later the /nfs7 or /nfs7.3 on my system would be /nfsX.X version you are running on yours. Did you know if your hard drive is large enough you can put many /nfs directires containing their distributions and install different flavors on different machines? Installing these cd's to hard drive is a must, without the files being copied onto the hard drive you have nothing to work with except the cd's.

Package installation programs are: Kpackage if your using KDE, I think its Gnome-RPM if using Gnome. Since I am more familiar with KDE I will stick to it in this explainatin.

You should find it under System from the Kmenu. Open this program and it will scan for installed rpm's. You could read the manual under Help or you can do this:

open the gui file manager and navigate to the directory the rpms are located in (i.e. /nfs7.3/RedHat/RPMS) and double click on the .rpm file you want to install.

stepping to building systems with those same files is a small step with kickstart diskettes or cd's.

Good luck

Last edited by joking; 10-19-2005 at 09:15 AM.
 
Old 10-19-2005, 09:15 AM   #5
fiservguy
Member
 
Registered: Nov 2004
Distribution: RHEL 2.1, RHEL 3.0, SUSE 9.2
Posts: 31

Original Poster
Rep: Reputation: 16
Again, I appreciate your help, but you're still missing the point.

I don't want to build a new system from files stored on the hard drive. I've already built the system from CDs

I don't want to install from individual RPMS stored on the hard drive. There are too many, and I don't want to manually pick through the dependencies

I want the OS to do the heavy lifting and install 30+ packages with me clicking one button.

Let me try this another way.

Let's say I want to install IIS on my Windows system. I go to add/remove programs and select IIS, and Windows prompts me for the location of the files that it needs to install -- what drive, what directory, etc.

HOW DO I GET LINUX TO ASK ME THAT QUESTION?

How do I get Linux to not assume the files are on CD when I'm using the add/remove programs function?

I know how to install individual rpms. I know how to install multiple rpms at once. I know how to determine dependency issues for various rpms. None of that is pertinent to my question.
 
Old 10-19-2005, 09:36 AM   #6
joking
LQ Newbie
 
Registered: Feb 2004
Location: Western NC
Distribution: RH 5.2, 7.3, Fedora, Gentoo
Posts: 15

Rep: Reputation: 0
I don't think you do know "how to install many at once." If you read my message after I edited in stuff I left out, you sould have gone to Kpackage and read the manual.

I know of no place to config linux, any version, to know where to install packages, other than the way I have earnestly attempted to guide you. Its been my experience to point to the location through gui or command line switches on every version of linux I have used: RedHat 5.2, 7.2, 7.3, 8.0, Fedora, Sun Java and many more. Even when using make. And most packages do require dependencies that are not included in them at best.

As for letting the system do the heavy lifting; may I suggest you look at Gentoo. This certainly will do what you want to do, but mind you it's not windows. It does use the "merge" command which will access servers on the net to pull new packages to it and install what is required to run them. Mostly I have witness this all done from the command line.

Just to let you know, if you had chosen custom when installing originally, the OS would have said, "oh, you also need these and we'll get those too!" Kpackage would probably do it as well, but if you can read its manual, there is no need for me to re-write it for you.

I think it would best for you to boot from the cd again, and this time sellect the Custom option and tell it to install all the packages. Then you would need only to connect to rhn and let them decide what you need to upgrade on your system.

That being said, again Good Luck!
 
Old 10-19-2005, 12:28 PM   #7
fiservguy
Member
 
Registered: Nov 2004
Distribution: RHEL 2.1, RHEL 3.0, SUSE 9.2
Posts: 31

Original Poster
Rep: Reputation: 16
Here's the solution I was looking for:

At a command line, enter
redhat-config-packages --tree=/path/to/rhel

where /path/to/rhel contains the RedHat directories from all CDs and the .discinfo file from the rhel directory off of the first CD.

If you don't know, you don't know. The fact that you don't know doesn't mean I don't understand you, nor does it make your answer automatically right.

Thanks anyway.
 
Old 10-19-2005, 12:48 PM   #8
Metalbarthug
Member
 
Registered: Oct 2004
Location: Scotland, UK
Distribution: Ubuntu 12.04
Posts: 57

Rep: Reputation: 16
fiservguy,

Another way to do what you're looking to do is to create an .ISO image of your installation CD / DVD (using K3b or whatever CD image burning app you have) either throughthe GUI or command line, you can make an .iso file, then through your Package manager (I see you use Suse, so for that we'll assume YasT) you can select 'Install from another location' and browse to the .ISO file.

That should stop the prompts for dvds because YAsT is looking at the .ISO file and will select the packages from there.

You have as you have posted sorted out your problem, but thought you might want 'another way' to get to the same result.

If you live in the UK, check out the Oct issue of LinuxFormat magazine, it has 72 fantastic tips, including one on the info I've given above. From memory, I may have missed bits out, but the idea is there.

hope this helps
 
Old 10-19-2005, 02:00 PM   #9
fiservguy
Member
 
Registered: Nov 2004
Distribution: RHEL 2.1, RHEL 3.0, SUSE 9.2
Posts: 31

Original Poster
Rep: Reputation: 16
Thanks, Metalbarthug. I had seen mention of that when I was researching, but since the problem occurred on a RedHat server, I couldn't figure out how to get it to work.

But, the redhat-config-packages command with the --tree optoin will also read iso files. I assume the configuration is similar to what I have, but I haven't tested it.

I like the fact that Suse is a little more apparent in allowing you to change the source location of the install files. RedHat may not make it as apparent because the packages are updated so frequently...

thanks for the input.
 
  


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
"base system" packages? garba Debian 2 06-30-2005 02:58 PM
mandrake linux disk 1 doesn't work for installing packages anxtoad Linux - General 1 08-03-2004 11:11 AM
OpenBSD 3.5 - installing base packages after install? lazlow69 *BSD 3 06-26-2004 12:00 AM
woody install problem - failure while configuring base packages dongmin Debian 2 06-02-2004 11:15 AM
alsa-base not installing rl5 Linux - General 1 05-02-2004 03:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:52 PM.

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