Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Feb 2013 10:55:56 +0000
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        =?ISO-8859-1?Q?D=E1nielisz_L=E1szl=F3?= <laszlo_danielisz@yahoo.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: packages listing
Message-ID:  <51177CBC.2080507@FreeBSD.org>
In-Reply-To: <1360479157.43293.YahooMailNeo@web160504.mail.bf1.yahoo.com>
References:  <1360479157.43293.YahooMailNeo@web160504.mail.bf1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51177CBC.2080507>