From owner-freebsd-questions@FreeBSD.ORG Mon Oct 23 19:48:52 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 1979416A501 for ; Mon, 23 Oct 2006 19:48:52 +0000 (UTC) (envelope-from heli@mikestammer.com) Received: from smtp103.sbc.mail.mud.yahoo.com (smtp103.sbc.mail.mud.yahoo.com [68.142.198.202]) by mx1.FreeBSD.org (Postfix) with SMTP id 8B71D43D58 for ; Mon, 23 Oct 2006 19:48:51 +0000 (GMT) (envelope-from heli@mikestammer.com) Received: (qmail 60760 invoked from network); 23 Oct 2006 19:48:50 -0000 Received: from unknown (HELO mail.mikestammer.com) (mikestammer@sbcglobal.net@70.131.98.204 with login) by smtp103.sbc.mail.mud.yahoo.com with SMTP; 23 Oct 2006 19:48:50 -0000 Received: from localhost (localhost [127.0.0.1]) by mail.mikestammer.com (Postfix) with ESMTP id 5F2815D for ; Mon, 23 Oct 2006 14:48:49 -0500 (CDT) X-Virus-Scanned: amavisd-new at mikestammer.com Received: from mail.mikestammer.com ([127.0.0.1]) by localhost (gondolin.middleearth.mikestammer.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ucMRw75YNpGQ for ; Mon, 23 Oct 2006 14:48:45 -0500 (CDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: eric) by mail.mikestammer.com (Postfix) with ESMTP id E70304A for ; Mon, 23 Oct 2006 14:48:42 -0500 (CDT) Message-ID: <453D1C9A.6020703@mikestammer.com> Date: Mon, 23 Oct 2006 14:48:42 -0500 From: Eric User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <44hcxvukpi.fsf@be-well.ilk.org> <200610232043.54859.list-freebsd-2004@morbius.sent.com> In-Reply-To: <200610232043.54859.list-freebsd-2004@morbius.sent.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 19:48:52 -0000 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.