From owner-freebsd-current Tue May 9 12:18: 7 2000 Delivered-To: freebsd-current@freebsd.org Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by hub.freebsd.org (Postfix) with ESMTP id 9AB9037BED9 for ; Tue, 9 May 2000 12:18:00 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from nlsys.demon.co.uk ([158.152.125.33] helo=herring.nlsystems.com) by anchor-post-30.mail.demon.net with esmtp (Exim 2.12 #1) id 12pFW2-0001fV-0U; Tue, 9 May 2000 20:17:59 +0100 Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id UAA48041; Tue, 9 May 2000 20:20:55 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Tue, 9 May 2000 20:22:25 +0100 (BST) From: Doug Rabson To: Mike Pritchard Cc: Kenneth Wayne Culver , freebsd-current@freebsd.org Subject: Re: proposed pkg_delete change In-Reply-To: <20000508063936.E64839@mppsystems.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 8 May 2000, Mike Pritchard wrote: > On Mon, May 08, 2000 at 02:10:28AM -0400, Kenneth Wayne Culver wrote: > > I have a suggestion for pkg_delete: Very often when I'm deleting a package > > (such as kde, after testing the port) I want to delete that package, and > > all it's dependancies; instead of going around looking for the > > dependancies, I think it would be a nice idea to add an option to > > pkg_delete to automatically delete all dependancies that aren't currently > > used by anything else. If nobody is interested in doing this, I can do it > > when I have some spare time (finals here at school). And then submit > > patches. > > That would have saved me a *lot* of time about a month ago when I > went and weeded out all of my packages when my /usr filled up. > I basically did what you are proposing by hand and it took forever. > e.g. pkg_delete some_package - oops, it depends on pkg_xxx, delete that, > oops, it depends on pkg_xxx2, and so on, when in reality that only > reason any of those additional packages were installed were for the > original package. I just go to /var/db/pkg and type 'pkg_delete kde*' a few times. After a while they all get deleted. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 20 8442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message