On 10/02/2013 06:52, Dánielisz László wrote:

> Do you have any idea how can I list those installed packages that are not 
> required by any other?

If you're using pkgng:

   pkg query -e "%#r==0" "%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

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey



Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to