[portmaster/pkg] Detecting build-only dependencies
Matthew Seaman
matthew at FreeBSD.org
Sun May 11 07:47:53 UTC 2014
On 11/05/2014 08:27, A.J. 'Fonz' van Werven wrote:
> Matthew Seaman wrote:
>
>> so try running 'pkg autoremove -n' and inspect the output to see what
>> looks suitable.
>
> Thanks. As a followup question: is there a "pkg query" command that
> produces the same list as "pkg autoremove -n", but without the additional
> output?
You should try lokking at the pkg-query(8) man page. It's really quite
informative. It told me that the answer to your question is:
pkg query -e "%a = 1 && %#r = 0" %o
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1036 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20140511/4ec03cd3/attachment.sig>
More information about the freebsd-ports
mailing list