rpm dependencies
hi all,
I m trying a command rpm -q <packagename> -R but i suppose it gives just first level dependency. i want to know if there is a command which can give all level dependecies for a given package name? Thanks seema |
not really, as it can't know, and essentially you will end up with a HUGE amount of dependencies, as many end user RPM's can cover more than 10 levell of dependencies.
i mean essentially you couold write a basic recursive script to feed the command output back into the input... Code:
for pkg in `rpm -qR $package` |
hi Chris,
Thank you very much for your reply. I m having hard time in running recursive shell script: this is wht i was trying to do but failure can anybody help me? #echo "called by $1" for pkg in `rpm -qR $1` do if [[ "$1" == "package" ]]; # if the parameter is 'package' we were called by an errorneous package then # exit with status 0 exit 0; else echo $pkg # TODO: get the status of the call 'bash test $pkg' if ... # TODO: if the status was 0 then # TODO: return by status 1 - we need to finish the parent's call exit 1; # TODO: if the status was 1 else # TODO: continue the loop with the next package name ; fi; fi done #echo "end $1" exit 1 # NOTE: status 0 means error, status 1 means success |
All times are GMT -5. The time now is 01:57 PM. |