From owner-freebsd-questions@FreeBSD.ORG Sun Feb 10 10:56:06 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6B70D6B0 for ; Sun, 10 Feb 2013 10:56:06 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id CDD273F7 for ; Sun, 10 Feb 2013 10:56:05 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.6/8.14.6) with ESMTP id r1AAtvGJ050638 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 10 Feb 2013 10:55:57 GMT (envelope-from matthew@FreeBSD.org) DKIM-Filter: OpenDKIM Filter v2.7.4 smtp.infracaninophile.co.uk r1AAtvGJ050638 Authentication-Results: smtp.infracaninophile.co.uk/r1AAtvGJ050638; dkim=none reason="no signature"; dkim-adsp=none (insecure policy) Message-ID: <51177CBC.2080507@FreeBSD.org> Date: Sun, 10 Feb 2013 10:55:56 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: =?ISO-8859-1?Q?D=E1nielisz_L=E1szl=F3?= Subject: Re: packages listing References: <1360479157.43293.YahooMailNeo@web160504.mail.bf1.yahoo.com> In-Reply-To: <1360479157.43293.YahooMailNeo@web160504.mail.bf1.yahoo.com> X-Enigmail-Version: 1.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2AIKATBQXNJDOENVNOOTG" X-Virus-Scanned: clamav-milter 0.97.6 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Feb 2013 10:56:06 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2AIKATBQXNJDOENVNOOTG Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 10/02/2013 06:52, D=E1nielisz L=E1szl=F3 wrote: > Do you have any idea how can I list those installed packages that are n= ot required by any other? If you're using pkgng: pkg query -e "%#r=3D=3D0" "%n-%v" There isn't (as far as I know) a way of doing this directly with pkg_tools alone, so either install an appropriate tool from ports as others have suggested elsewhere in this thread, or if you have to use only what comes with the base system, then something like: cd /var/db/pkg ls -1 */+REQUIRED-BY | sed -e 's,/+REQUIRED-BY,,' (untested and from memory as I don't have any pkg_tools systems any more.) Note: this is not necessarily entirely accurate. The +REQUIRED-BY files are updated by tools like portmaster(1) or portupgrade(1) but not if you install via pkg_add(1) or by using make(1) directly in the ports tree. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey ------enig2AIKATBQXNJDOENVNOOTG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlEXfLwACgkQ8Mjk52CukIwojQCghBiI+91CjBNqzCLjjZyPfF2Q v5sAn0wPI6tCMTvMXuLcCh6mimOhp7qn =x0o7 -----END PGP SIGNATURE----- ------enig2AIKATBQXNJDOENVNOOTG--