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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-07-2004, 10:54 PM
|
#1
|
|
Member
Registered: Jan 2004
Distribution: CentOS
Posts: 281
Rep:
|
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
|
|
|
|
06-07-2004, 11:05 PM
|
#2
|
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
rpm -i --test <filename.rpm>
should do the trick ...
|
|
|
|
06-07-2004, 11:10 PM
|
#3
|
|
Member
Registered: Jan 2004
Distribution: CentOS
Posts: 281
Original Poster
Rep:
|
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. )
|
|
|
|
06-07-2004, 11:24 PM
|
#4
|
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
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 ...
|
|
|
|
06-07-2004, 11:31 PM
|
#5
|
|
Member
Registered: Jan 2004
Distribution: CentOS
Posts: 281
Original Poster
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:14 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|