From owner-freebsd-questions@FreeBSD.ORG Tue Mar 3 17:36:18 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B39FA10656C0 for ; Tue, 3 Mar 2009 17:36:18 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 80E2C8FC1B for ; Tue, 3 Mar 2009 17:36:18 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.lan.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id C8E09AFC1FE; Tue, 3 Mar 2009 08:36:17 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Tue, 3 Mar 2009 08:36:17 -0900 User-Agent: KMail/1.9.10 References: <200902282247.22739.fbsd.questions@rachie.is-a-geek.net> <18858.39797.40001.573615@jerusalem.litteratus.org> In-Reply-To: <18858.39797.40001.573615@jerusalem.litteratus.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903030836.17672.fbsd.questions@rachie.is-a-geek.net> Cc: Robert Huff , lacalling Subject: Re: A problem about pkg_deinstall X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2009 17:36:20 -0000 On Sunday 01 March 2009 05:28:05 Robert Huff wrote: > Mel writes: > > Aside what Michael pointed out, ports-mgmt/pkg_cutleaves is much > > easier for this task. It will only delete leaves, so if b is > > still needed by X, it will not come up on the next iteration. And > > you get to see the short description of the package, so may > > decide to keep it anyway... > > I'd like to suggest a better solution is not auto-deleting in > either direction. Even if the code were perfect - of which there is > no evidence - the people are not, Unless you're (generic "you") > planning to wipe out something huge (e.g. X11, or Gnome/KDE) and > know _exactly_ what you're doing ... it's like hanging a "Kick me!" > sign around your neck. pkg_cutleaves is interactive by default. Asks confirmation for each port, then only deletes at the end of the run. Unless you explicitedly tell it to be not interactive... Really should check it out. My only beef with it is that it writes "kept" packages as package names, rather then origin, so keeping autoconf-2.56 will result in all autoconf packages to be kept next run. -- Mel Problem with today's modular software: they start with the modules and never get to the software part.