LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-07-2004, 10:54 PM   #1
Rotwang
Member
 
Registered: Jan 2004
Distribution: CentOS
Posts: 281

Rep: Reputation: 30
See what an RPM requires?


Hey is there a way I can see what dependencies an RPM has before trying to install it (or after installing it)? I looked around in man rpm but didn't see it.

thanks
 
Old 06-07-2004, 11:05 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
rpm -i --test <filename.rpm>
should do the trick ...
 
Old 06-07-2004, 11:10 PM   #3
Rotwang
Member
 
Registered: Jan 2004
Distribution: CentOS
Posts: 281

Original Poster
Rep: Reputation: 30
No, that won't work if the RPM is already installed (it just says "suchandsuch is already installed". (Also, that doesn't list a dependencie unless it's missing it. )
 
Old 06-07-2004, 11:24 PM   #4
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
you asked for the command to see what a package depends on before installing ..
which the above command should show, and also show any conflicts ...
try the following also ..
rpm --requires

and i am not sure why you would run that command if it is already installed ... if it is
installed then that means it doesn't require anything more, unless you forced it with
--nodeps ... and of course the above doesn't list any unless its missing them cause
thats the whole point, and like it or not, thats what you asked in the original post ...
 
Old 06-07-2004, 11:31 PM   #5
Rotwang
Member
 
Registered: Jan 2004
Distribution: CentOS
Posts: 281

Original Poster
Rep: Reputation: 30
Well, the command you gave does not show "what dependencies an RPM has", even before installing it. It would only show what the RPM needs and can't find. That's not the list of "what dependencies an RPM has". "Like it or not".

rpm --requires didn't work. thanks for trying tho, DrOzz.

rw

Last edited by Rotwang; 06-07-2004 at 11:33 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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
requires login DemoniX Slackware 2 08-06-2005 02:32 PM
unsatified Requires - Mplayer rpm dday777 SUSE / openSUSE 1 12-29-2004 04:43 AM
kernel-source-2.6.5-7.src.rpm requires kernel-dummy to build!? fizzdandantilus SUSE / openSUSE 5 12-02-2004 12:48 PM
RPM requires question Relja Programming 0 07-15-2004 12:54 PM
rpm install requires lib file blistfix Linux - General 2 08-25-2001 08:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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