-   Linux - General (
-   -   See what an RPM requires? (

Rotwang 06-07-2004 10:54 PM

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.


DrOzz 06-07-2004 11:05 PM

rpm -i --test <filename.rpm>
should do the trick ...

Rotwang 06-07-2004 11:10 PM

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. )

DrOzz 06-07-2004 11:24 PM

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 ...

Rotwang 06-07-2004 11:31 PM

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.


All times are GMT -5. The time now is 11:34 PM.