Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Nov 2006 00:34:09 -0500
From:      Parv <parv@pair.com>
To:        Dino Vliet <dino_vliet@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: simple question...how to show packages which depend upon a particular port
Message-ID:  <20061130053409.GA5162@holestein.holy.cow>
In-Reply-To: <629233.82571.qm@web51109.mail.yahoo.com>
References:  <629233.82571.qm@web51109.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
in message <629233.82571.qm@web51109.mail.yahoo.com>,
wrote Dino Vliet thusly...
>
> I'm almost ashamed to ask this BUT I really don't know how to find
> the packages which depend upon a particular port.
>
> In this case, a portversion -l "<" showed mysql-client in that
> list. I can't recall having installed it by myself

Did you install mysql-server with default options?  Actually, in
mysql51-server port, there is no option to disable install of the
client portion.


> I wanted to know what the packages are which depend on it. Can
> somebody show me this command......and if it will be a RTFM
> answer, please tell me which FM:-)

Here are some of the ways not requiring connection to Internet I
know ...

  - running "make -V {LIB,RUN,BUILD}_DEPENDS" in a port directory
    also lists the appropriate type of dependency list, so would
    running "make pretty-print-{run,build}-depends-list";

  - pkg_info(1) w/ -[rR] options lists the dependencies for given
    ports|packages;

  - ${PORTSDIR:-/usr/ports}/INDEX* lists dependencies for each port
    (which may need post processing to be human readable);

  - sysutils/pkg_tree port creates text tree of the dependencies;


As for FM, see ...

  - pkg_info(1) & pkg_tree(7)  man pages;

  - ${PORTSDIR:-/usr/ports}/Mk/bsd.port.mk


  - Parv

-- 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061130053409.GA5162>