Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jan 2018 23:00:03 +0300
From:      Sergey Akhmatov <sergey@akhmatov.ru>
To:        =?UTF-8?Q?Marko_Cupa=c4=87?= <marko.cupac@mimar.rs>, freebsd-ports@freebsd.org
Subject:   Re: pkg search dependency tree
Message-ID:  <5aae2938-5d64-e98c-3ea4-279203352d05@akhmatov.ru>
In-Reply-To: <20180114111522.6793c082@efreet-freebsd.kappastar.com>
References:  <20180112120903.6cba8b16@efreet-freebsd.kappastar.com> <5252b45f-5ef1-64fa-02c3-dc954f8574d5@infracaninophile.co.uk> <20180114111522.6793c082@efreet-freebsd.kappastar.com>

next in thread | previous in thread | raw e-mail | index | archive | help

> 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.
You could useĀ  "pkg rquery", which handles requests agains remote repo 
database.
It features less request types than "pkg query" against local packages 
database,
but I hope it could give some help for you problem. E.g. you could use:
% pkg rquery '%o - %?r'
to get list of packages with a number of reverse dependencies and 
consider the ones with zero
reverse dependencies as 'top level'.
'man pkg-rquery' may give some other hints.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5aae2938-5d64-e98c-3ea4-279203352d05>