From owner-freebsd-questions@FreeBSD.ORG Thu Mar 6 23:40:34 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 08B5A3FD for ; Thu, 6 Mar 2014 23:40:34 +0000 (UTC) Received: from smtp.centurylink.net (mail.centurylink.net [205.219.233.9]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C0BC3B9A for ; Thu, 6 Mar 2014 23:40:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; d=embarqmail.com; s=ctl201402; c=relaxed/simple; q=dns/txt; i=@embarqmail.com; t=1394149231; h=From:Subject:Date:To:Mime-Version:Content-Type; bh=akJxle5I2t5Eeq8LT6R8RFjySnQ=; b=2av7+GVqJkKR1cxwuYb+oGFtdBtthCTifxrgqDvlqCmy97GVVetYq1nabjpbXe7G a/VV46XzwuiQMCo4EVHXfbziKmvqh03hhkZac52tzMnYCh2gv0Jk5mAQ00wl+r8e ljOzORAlsWeAMXmrPO1o/dG3XDHBtb2so1ZmaYKy3p326u4Yz+8Ch4pFkwpdRA4g CnWlwTmvICjOIstJfJELaArb77WWUPGhdLDmVCA883qJaoQUsuDyrtG8gWJbh9xU 8piHHwd5fVZ+D3N8VsgjuoVTL0cgmSawWXl5SyhtEPgOvt3PBXq5zrFDI/dMHrjg maCylsY+42g396Dwvb6MBw==; X_CMAE_Category: , , X-CNFS-Analysis: v=2.0 cv=Dc+VW4RW c=1 sm=1 a=qIBoWdUHzxpId2sJ5oqmKQ==:17 a=_aHHldB2YOsA:10 a=1poGYrevpj8A:10 a=kj9zAlcOel0A:10 a=1oqGTYSLAAAA:8 a=9hAZ7HiwEJzt7sg_U-YA:9 a=CjuIK1q_8ugA:10 a=qIBoWdUHzxpId2sJ5oqmKQ==:117 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: YnNkLXVuaXhAZW1iYXJxbWFpbC5jb20= Authentication-Results: smtp01.agate.dfw.synacor.com header.from=bsd-unix@embarqmail.com; sender-id=neutral Authentication-Results: smtp01.agate.dfw.synacor.com smtp.mail=bsd-unix@embarqmail.com; spf=neutral; sender-id=neutral Authentication-Results: smtp01.agate.dfw.synacor.com smtp.user=bsd-unix@embarqmail.com; auth=pass (LOGIN) Received-SPF: neutral (smtp01.agate.dfw.synacor.com: 71.3.85.63 is neither permitted nor denied by domain of embarqmail.com) Received: from [71.3.85.63] ([71.3.85.63:11894] helo=earth.milkyway.net) by smtp.centurylink.net (envelope-from ) (ecelerity 3.5.1.37854 r(Momo-dev:3.5.1.0)) with ESMTPA id 18/65-22961-F6709135; Thu, 06 Mar 2014 18:40:31 -0500 Date: Thu, 6 Mar 2014 18:40:30 -0500 From: Randy Pratt To: Andrea Venturoli Subject: Re: pkg equivalent of "pkg_info -R" Message-Id: <20140306184030.078a99cedac859b5c5b83e22@embarqmail.com> In-Reply-To: <53186ABC.5060601@netfence.it> References: <53186ABC.5060601@netfence.it> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.22; i386-portbld-freebsd8.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Mar 2014 23:40:34 -0000 On Thu, 06 Mar 2014 13:31:56 +0100 Andrea Venturoli wrote: > Hello. > > This question was asked before, but I could find no answer... > > I used to get a list of installed ports depending on a port with > "pkg_info -R xxx". > > Now I'm trying pkgng out and, amongst other difficulties (sorry, but I > think documentation about pkgng is still not sufficient), I can't seem > to find an equivalent command. I'm finally getting used to using "man pkg-query" to access the man pages even though the command is "pkg query ...". An alternative method is the "pkg help query". > I know "pkg info -r xxx", but this will just list ports which *directly* > depend on xxx. I could find no way to get indirect dependents too. > > Is there something I'm missing? Any additional utility I can install? I think what you're looking for is "pkg query %ro xxx". Look under Multiline Patterns in man pkg-query. Note that it only lists run dependencies since build dependencies are irrelevant with packages. HTH, Randy