From owner-freebsd-questions@FreeBSD.ORG Mon Oct 23 21:31:56 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 C529F16A403 for ; Mon, 23 Oct 2006 21:31:56 +0000 (UTC) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0D1843D7F for ; Mon, 23 Oct 2006 21:31:55 +0000 (GMT) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from db2.internal (db2.internal [10.202.2.12]) by frontend1.messagingengine.com (Postfix) with ESMTP id 19E5FDB9153 for ; Mon, 23 Oct 2006 17:31:54 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by db2.internal (MEProxy); Mon, 23 Oct 2006 17:31:56 -0400 X-Sasl-enc: sMRckQtBNAO11oZkN0O8P4PAoJAIN8lVQ0Gja6HNFSSU 1161639116 Received: from gumby.localdomain (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mail.messagingengine.com (Postfix) with ESMTP id 53824AB51 for ; Mon, 23 Oct 2006 17:31:56 -0400 (EDT) From: RW To: freebsd-questions@freebsd.org Date: Mon, 23 Oct 2006 22:31:50 +0100 User-Agent: KMail/1.9.4 References: <200610232043.54859.list-freebsd-2004@morbius.sent.com> <453D1C9A.6020703@mikestammer.com> In-Reply-To: <453D1C9A.6020703@mikestammer.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610232231.52193.list-freebsd-2004@morbius.sent.com> Subject: Re: pkg_add/delete questions 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: Mon, 23 Oct 2006 21:31:56 -0000 On Monday 23 October 2006 20:48, Eric wrote: > RW wrote: > > On Monday 23 October 2006 16:15, Lowell Gilbert wrote: > >> "Mark Jayson Alvarez" writes: > >>> I have several questions: > >>> > >>> 1. If I install a particular package, its dependencies will be > >>> installed as well. Now if I remove it later using pkg_delete, only > >>> that package will be removed and not the dependencies. The reason I > >>> guess is because some other packages may be dependent on those > >>> dependencies as well. Is there a way to remove a particular package > >>> and all of its dependencies (given that no other package is dependent > >>> on those dependencies)? > >> > >> Is the pkg_cutleaves port what you're looking for? > > > > If you build anything from ports, portmanager does a better job as it it > > takes account of build dependencies. > > portmaster has an -s switch that will remove ports no longer needed by > any other ports, so what you can do is say uninstall port A then run > portmaster -s and it will pick up any ports that port A required but > nothing else does and offer to remove them. it is an alternate to > portmanager, so you will not need both. As I said: "portmanager does a better job [than pkg_cutleaves] as it it takes account of build dependencies". Portmaster also only works with runtime dependencies.