From owner-freebsd-pkg@FreeBSD.ORG Wed Oct 8 08:17:59 2014 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E29E6AF5 for ; Wed, 8 Oct 2014 08:17:59 +0000 (UTC) Received: from blue.qeng-ho.org (blue.qeng-ho.org [217.155.128.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7A5139FA for ; Wed, 8 Oct 2014 08:17:58 +0000 (UTC) Received: from arthur.home.qeng-ho.org (arthur.home.qeng-ho.org [172.23.1.2]) by fileserver.home.qeng-ho.org (8.14.7/8.14.5) with ESMTP id s988Hu6Y082136; Wed, 8 Oct 2014 09:17:57 +0100 (BST) (envelope-from freebsd@qeng-ho.org) Message-ID: <5434F334.9090204@qeng-ho.org> Date: Wed, 08 Oct 2014 09:17:56 +0100 From: Arthur Chance User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: Matthias Apitz , freebsd-pkg@freebsd.org Subject: Re: pkg query a package for packages it depends on References: <20141008080314.GA1937@unixarea.DDR.dd> In-Reply-To: <20141008080314.GA1937@unixarea.DDR.dd> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Oct 2014 08:18:00 -0000 On 08/10/2014 09:03, Matthias Apitz wrote: > I'm using a local repo (created by poudriere on some other host) and > pkg(8) to install the ports on my netbook. > > # pkg -v > 1.4.0.pre-alpha7 > > I have not found in its man page how to query a given package for the > packages it depends on. Have I overlooked something? The various pkg-* man pages? man pkg only gives details of the pkg command itself, man pkg-xxx gives details of the xxx subcommand. If you want to query an installed port, pkg info -d If you want to query a port that is not installed pkg rquery '%dn' This looks through all active repos. The '%dn' format gives the names of the dependencies, change it to '%do' to get the dependency origins.