From owner-freebsd-questions@FreeBSD.ORG Sun Feb 10 12:21:40 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 8733E689 for ; Sun, 10 Feb 2013 12:21:40 +0000 (UTC) (envelope-from nvass@gmx.com) Received: from mout.gmx.net (mout.gmx.net [74.208.4.201]) by mx1.freebsd.org (Postfix) with ESMTP id 53BE39E8 for ; Sun, 10 Feb 2013 12:21:40 +0000 (UTC) Received: from mailout-us.gmx.com ([172.19.198.48]) by mrigmx.server.lan (mrigmxus001) with ESMTP (Nemesis) id 0MVMfy-1URAAq07ck-00YlaC for ; Sun, 10 Feb 2013 13:21:34 +0100 Received: (qmail invoked by alias); 10 Feb 2013 12:21:33 -0000 Received: from 188.4.187.198.dsl.dyn.forthnet.gr (EHLO [192.168.1.64]) [188.4.187.198] by mail.gmx.com (mp-us008) with SMTP; 10 Feb 2013 07:21:33 -0500 X-Authenticated: #46156728 X-Provags-ID: V01U2FsdGVkX18db10L0BQdf5XfNZzB06hzVXywnNl0KuPRtE+wZt bQrwA4DQQ1H67O Message-ID: <511790C4.4070605@gmx.com> Date: Sun, 10 Feb 2013 14:21:24 +0200 From: Nikos Vassiliadis User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Polytropon Subject: Re: packages listing References: <1360479157.43293.YahooMailNeo@web160504.mail.bf1.yahoo.com> <20130210075713.e95310af.freebsd@edvax.de> In-Reply-To: <20130210075713.e95310af.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 Cc: =?ISO-8859-1?Q?D=E1nielisz_L=E1szl=F3?= , "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 12:21:40 -0000 On 2/10/2013 8:57 AM, Polytropon wrote: > On Sat, 9 Feb 2013 22:52:37 -0800 (PST), Dánielisz László wrote: >> Hi Everybody, >> >> Do you have any idea how can I list those installed packages >> that are not required by any other? > > You can use sysutils/pkg_cutleaves to determine those. > > I use this: #!/bin/sh pkg_info -R '*' | sed -n ' /^Information for /{ N N /Required by:/d s/^Information for \(.*\):\n\n$/\1/p } ' HTH, Nikos