LinuxQuestions.org
Register a domain and help support LQ
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, 11: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-08-2004, 12:05 AM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
rpm -i --test <filename.rpm>
should do the trick ...
 
Old 06-08-2004, 12:10 AM   #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-08-2004, 12:24 AM   #4
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
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-08-2004, 12:31 AM   #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-08-2004 at 12:33 AM.
 
  


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 On
HTML code is Off


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


All times are GMT -5. The time now is 10:02 PM.

Main Menu
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