From owner-freebsd-questions@FreeBSD.ORG Sun Mar 1 07:47:34 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 594AE1065670 for ; Sun, 1 Mar 2009 07:47:34 +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 2B0178FC18 for ; Sun, 1 Mar 2009 07:47:33 +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 9A661AFC1FE; Sat, 28 Feb 2009 22:47:33 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Sat, 28 Feb 2009 22:47:22 -0900 User-Agent: KMail/1.9.10 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902282247.22739.fbsd.questions@rachie.is-a-geek.net> Cc: 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: Sun, 01 Mar 2009 07:47:34 -0000 On Saturday 28 February 2009 21:55:43 lacalling wrote: > I have some problems about pkg_deinstall. > > pkg_deinstall -R deletes packages depended recursively. > > but it seems to crashes some other packages. > > for example,i installed pkg A,it depends on pkg b,c,d. > > pkg_deinstall -R will deletes A,b,c,d. > > but if b is depended by some other pkg X which i use,X probably will crash. 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... -- Mel Problem with today's modular software: they start with the modules and never get to the software part.