From owner-freebsd-questions@FreeBSD.ORG Thu Nov 30 05:34:05 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 20DAF16A416 for ; Thu, 30 Nov 2006 05:34:05 +0000 (UTC) (envelope-from parv@pair.com) Received: from mta9.adelphia.net (mta9.adelphia.net [68.168.78.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF42F43CA2 for ; Thu, 30 Nov 2006 05:33:58 +0000 (GMT) (envelope-from parv@pair.com) Received: from default.chvlva.adelphia.net ([69.160.66.115]) by mta9.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20061130053403.YAR24175.mta9.adelphia.net@default.chvlva.adelphia.net>; Thu, 30 Nov 2006 00:34:03 -0500 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id 71C8AB535; Thu, 30 Nov 2006 00:34:09 -0500 (EST) Date: Thu, 30 Nov 2006 00:34:09 -0500 From: Parv To: Dino Vliet Message-ID: <20061130053409.GA5162@holestein.holy.cow> Mail-Followup-To: Dino Vliet , freebsd-questions@freebsd.org References: <629233.82571.qm@web51109.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <629233.82571.qm@web51109.mail.yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: simple question...how to show packages which depend upon a particular port X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Nov 2006 05:34:05 -0000 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 --