From owner-freebsd-ports@freebsd.org Sun Jan 14 10:15:37 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 050AEEB86F4 for ; Sun, 14 Jan 2018 10:15:37 +0000 (UTC) (envelope-from marko.cupac@mimar.rs) Received: from mail.mimar.rs (tazar.mimar.rs [193.53.106.132]) (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 B1C7C75B19 for ; Sun, 14 Jan 2018 10:15:35 +0000 (UTC) (envelope-from marko.cupac@mimar.rs) Received: from tazar.mimar.rs (localhost [127.0.2.132]) by mail.mimar.rs (Postfix) with ESMTP id 91016625A244 for ; Sun, 14 Jan 2018 11:15:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mimar.rs; h= content-transfer-encoding:content-type:content-type:mime-version :x-mailer:organization:references:in-reply-to:message-id:subject :subject:from:from:date:date:received:received; s=1711; t= 1515924924; x=1517739325; bh=E1NJ3aYgRTSKctmOcdyCNl4uC4HLQY7elA0 zZxBGB2Y=; b=omayjQ0w7YnllzNvYH7L4KG9vCO/bR3nBE+NIjYVcvi1DZeM7yt 9Gda9aljBpKBy5CpW2Wk4SM+7W49hPmTkbFhZKCCsZ/IRemsblN4+RqVIR4aAeTw Wsmh2dh0goWbPqFY5qkqNleaCYEL7hyvR2Z3K5+ldRnd2MzN5cIuMe+Jy5X/u3z/ 5VVgJwE0HAZSSvGd8oOF38yP+u/08jKVCCv6S5V1miOVcH5TrvGogajCnC6eLu+x m1DexesM/6uSMDJUFHOstrp2rUl2zM7rlmr0CtqYNa6HOzcDc9v4l6jZ43nD7B7e 8xvUuhCMVps/TD7zhzpeT1qzeB7/E3L3dew== X-Virus-Scanned: amavisd-new at mimar.rs Received: from mail.mimar.rs ([127.0.2.132]) by tazar.mimar.rs (amavis.mimar.rs [127.0.2.132]) (amavisd-new, port 10026) with LMTP id k7FcJTwbejbb for ; Sun, 14 Jan 2018 11:15:24 +0100 (CET) Received: from efreet-freebsd.kappastar.com (79-101-184-218.dynamic.isp.telekom.rs [79.101.184.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marko.cupac) by mail.mimar.rs (Postfix) with ESMTPSA id ADBAE625A23E for ; Sun, 14 Jan 2018 11:15:24 +0100 (CET) Date: Sun, 14 Jan 2018 11:15:22 +0100 From: Marko =?UTF-8?B?Q3VwYcSH?= To: freebsd-ports@freebsd.org Subject: Re: pkg search dependency tree Message-ID: <20180114111522.6793c082@efreet-freebsd.kappastar.com> In-Reply-To: <5252b45f-5ef1-64fa-02c3-dc954f8574d5@infracaninophile.co.uk> References: <20180112120903.6cba8b16@efreet-freebsd.kappastar.com> <5252b45f-5ef1-64fa-02c3-dc954f8574d5@infracaninophile.co.uk> Organization: Mimar X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; amd64-portbld-freebsd11.1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jan 2018 10:15:37 -0000 On Fri, 12 Jan 2018 15:38:20 +0000 matthew@FreeBSD.org wrote: > On 12/01/2018 11:09, Marko Cupa=C4=87 wrote: > > > > Is there a way to get dependency tree from pkg search? > >=20 > > Thank you in advance, > > =20 >=20 > This is usually done by: >=20 > pkg query -e '%a =3D=3D 0' %o >=20 > which gives you the list of packages on your system, excluding those=20 > that were automatically installed to fulfil dependencies. ie. it's=20 > basically the collection of packages where you said 'pkg install foo' > at some point. Hi, I got off-list reply on how to achieve this with locally installed packages, by using `pkg prime-origins', which is apparently an alias to the command you suggested. It will solve my problem, as I have no more than 20 servers using this repo, I just need to run the command on all of them and uniq the output. But it would be nice if I could do this for all the packages in repo, and not just for packages installed locally on each server. Best regards, --=20 Before enlightenment - chop wood, draw water. After enlightenment - chop wood, draw water. Marko Cupa=C4=87 https://www.mimar.rs/