[portmaster/pkg] Detecting build-only dependencies

Matthew Seaman matthew at FreeBSD.org
Sat May 10 13:51:07 UTC 2014

On 10/05/2014 14:29, A.J. 'Fonz' van Werven wrote:
> A quick question if I may: in a setup using Portmaster and pkg, is there
> any way (some kind of "pkg query" perhaps?) to obtain a list of which
> currently installed ports are build-only dependencies?

pkg(8) only deals with run-time dependencies.  It also marks ports that
were not specifically requested to be installed as candidates for
automatic removal.  Build dependencies should fit the conditions for
autoremoval -- flagged as suitable and not having anything else
depending on them -- so try running 'pkg autoremove -n' and inspect the
output to see what looks suitable.

Of course, this will not be completely accurate.  You may have installed
a specific port by hand so it doesn't get the build dependency flag.
You may have packages installed that used to be dependencies of
something else, since removed.  You're going to have to use your own
skill and judgement to decide.



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/20140510/37e352fc/attachment.sig>

More information about the freebsd-ports mailing list