From owner-freebsd-questions@freebsd.org Fri Nov 10 05:58:51 2017 Return-Path: Delivered-To: freebsd-questions@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 7A208E65CFA for ; Fri, 10 Nov 2017 05:58:51 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 63D1167113 for ; Fri, 10 Nov 2017 05:58:51 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: by mailman.ysv.freebsd.org (Postfix) id 6004CE65CF9; Fri, 10 Nov 2017 05:58:51 +0000 (UTC) Delivered-To: questions@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 5FA9CE65CF8 for ; Fri, 10 Nov 2017 05:58:51 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from lb1-smtp-cloud9.xs4all.net (lb1-smtp-cloud9.xs4all.net [194.109.24.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.xs4all.net", Issuer "RapidSSL SHA256 CA - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 03A1767112 for ; Fri, 10 Nov 2017 05:58:50 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.erewhon.home ([83.162.243.5]) by smtp-cloud9.xs4all.net with ESMTPA id D2JueaLCsnIXbD2Jvelf4Q; Fri, 10 Nov 2017 06:57:40 +0100 Received: from rsmith (uid 1001) (envelope-from rsmith@xs4all.nl) id 1238a by slackbox.erewhon.home (DragonFly Mail Agent v0.11+); Fri, 10 Nov 2017 06:57:37 +0100 Date: Fri, 10 Nov 2017 06:57:37 +0100 From: Roland Smith To: Olivier Cc: questions@freebsd.org Subject: Re: Find ports that are not in the requeirement of others Message-ID: <20171110055737.GA30695@slackbox.erewhon.home> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) X-CMAE-Envelope: MS4wfLSvAX/jaTwJnbMK5oSZcq3l1znD5Jc+TISZYlmaSToTwxp1ew03nSxfv400yFOZeT0HvCKruSUz/qXgRGYNNBvxsDmuLUuk86jZqVg/hs6u0NcjVycf MU2+WjfpZel2mBGKKLzePfJ62hBy2cEGMEAU895eNKduAt7nE6NnDr1vhmWw1hjXT13+ynpwyeMYPg== X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Nov 2017 05:58:51 -0000 On Fri, Nov 10, 2017 at 09:58:17AM +0700, Olivier wrote: > Hi, > > After a couple of years runnig and using one single machine, installing > some ports for testing, etc. I end up with hundred of ports and > packages, especially libraries that I never use directly, so am not > really aware of. > > Is there an incantation of pkg(8) that can list all the ports that are a > leaf in the tree of the installed ports. >From pkg-query(8): pkg query -e '%#r = 0' %o Roland -- R.F.Smith http://rsmith.home.xs4all.nl/ [plain text email much appreciated]