From owner-freebsd-questions@FreeBSD.ORG Mon Apr 26 04:54:16 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0AE3016A4D1 for ; Mon, 26 Apr 2004 04:54:16 -0700 (PDT) Received: from hutcs.cs.hut.fi (hutcs.cs.hut.fi [130.233.192.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id B73F943D53 for ; Mon, 26 Apr 2004 04:54:15 -0700 (PDT) (envelope-from kirma@cs.hut.fi) Received: from kirma (helo=localhost) by hutcs.cs.hut.fi with local-esmtp (Exim 4.30) id 1BI4gg-0003uE-Mp; Mon, 26 Apr 2004 14:54:14 +0300 Date: Mon, 26 Apr 2004 14:54:14 +0300 (EEST) From: Jari Kirma To: Geert Hendrickx In-Reply-To: <20040426113026.GA23138@lori.mine.nu> Message-ID: References: <20040426113026.GA23138@lori.mine.nu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: Garbage collection of installed packages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2004 11:54:16 -0000 On Mon, 26 Apr 2004, Geert Hendrickx wrote: > I use this script to find packages which are NOT dependencies of other > packages: > > #/bin/sh > cd /var/db/pkg > for i in * ; do [ -e ${i}/+REQUIRED_BY ] || echo ${i} ; done > > This way you also see the packages which you installed expicitly (most > of them are not depended on by other packages either), but I suppose > you know/recognize those. Yes, this is what I already know... but in systems for set of couple thousand users that have very divergent needs, it's not actually that easy to remember which of those thousand packages are installed explicitly and which as dependencies. :] -kirma