LinuxQuestions.org
Help answer threads with 0 replies.
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 11-09-2003, 11:54 PM   #1
sharkee
Member
 
Registered: Jul 2003
Location: Australia
Distribution: Kubuntu 5.10 Ubuntu Dapper
Posts: 220

Rep: Reputation: 30
Thumbs down RPM Command Line Dependencies


For auto Install Rpm Command Line Dependencies whice are on RH Disks

mkdr /var/packages
cp -rv /mnt/cdrom/RedHat/RPMS /var/packages

Do i repeat the cp for Disk 2&3
Thanks
Regards SHARKEE
 
Old 11-10-2003, 12:28 AM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
I'm not sure what you mean by 'command line dependencies' but if what you are trying to do is to be able to install the packages from the hd instead of the cds, Yes, just dump all the rpms from the cds into one folder.
 
Old 11-10-2003, 01:46 AM   #3
sharkee
Member
 
Registered: Jul 2003
Location: Australia
Distribution: Kubuntu 5.10 Ubuntu Dapper
Posts: 220

Original Poster
Rep: Reputation: 30
Sorry a bit vague
What i am trying to do is give rpm command the capability to install from the installation cd's that is ask for the cd .The same as the Graphiical App . I have also coppied this macro file to the /etc RPM Directory


%_solve_dbpath /usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat

%_solve_pkgsdir /var/packages

%_solve_name_fmt %{?_solve_pkgsdir}%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm


Iam not sure if When i copy the 2nd cd it will overwrite the first .

I hope this explains.

thanks for your reply
Regards Jeff
 
Old 11-10-2003, 01:57 AM   #4
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
Oh I see. I think you can just copy the RPMs into a single folder like this:
cp -rv /mnt/cdrom/RedHat/RPMS/* /var/packages
note the *. This copies all the files in the RPMS directory instead of the directory itself. Repeat for the other CDs (if you what you had originally, it would overwrite the stuff from the first cd)
 
Old 11-10-2003, 05:32 AM   #5
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 620

Rep: Reputation: 30
Howzit

I used the cp -a and installed the macro into my home dir with only the second line u mentioned and it worked like a charm. The files it asks to overwrite r all the same on all 3 CD e.g GPL is lust the GPL license and is the same on all 3CD. Just out of curiosity run a diff.

The answer to u'r quetion is yeah cp away my friend

chow
 
Old 11-11-2003, 05:20 AM   #6
sharkee
Member
 
Registered: Jul 2003
Location: Australia
Distribution: Kubuntu 5.10 Ubuntu Dapper
Posts: 220

Original Poster
Rep: Reputation: 30
Thanks to you both
All is working fine
Regards
Sharkee
 
  


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 redhat rpm from command line. droodle Linux - Newbie 4 07-26-2005 07:00 AM
command line rpm dependency problem rolandkirk55 Linux - Software 0 09-07-2004 09:14 PM
Can I install an RPM without command line? akilhoffer Linux - Newbie 13 09-06-2004 10:23 PM
How do you install .rpm by command line (RH9.0) Thaidog Linux - Newbie 5 05-18-2004 06:28 AM
Istalling rpm INCLUDING dependencies via command line? rgerhards Linux - Software 1 10-08-2003 04:35 AM


All times are GMT -5. The time now is 07:24 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration