Port dependency tool (if that's what you'd call it)

Jimmie James jimmiejaz at gmail.com
Mon Apr 30 19:52:36 UTC 2007

>I'm not quite sure how to put into word what I want, so bear with me. Is
>there a tool in the base system which does something along these lines:

>1. Look at the makefile of a given port as far as its RUN_DEPENDS and
>2. Subtracting what I have already installed, provide me with information
>about what would be fetched (and possibly installed) in an easy-to-digest
>format, recursively (for all dependents of dependents ... and so on).

>If not part of the base system, is there a port which offers this

>Thank ye.
make pretty-print-run-depends-list,
make pretty-print-build-depends-list
  can help you out.

I don't know of anything in base that does it, but what I've done is use 
this script (it's not perfect)

# Much love Min1ster
for i in `make pretty-print-build-depends-list | awk -F\" '{print $2 }'`
hasit=`pkg_info -E $i`
if [ -z $hasit ]; then
echo "$i is not installed"
# (not needed)echo "Everythings there, dude"

I have two of them, one with build and one with run deps (called.. 
checkbuild.sh and checkrun.sh)

Hope this helps some.


More information about the freebsd-questions mailing list