From owner-freebsd-questions@FreeBSD.ORG Tue Apr 10 22:27:23 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CE02B16A404 for ; Tue, 10 Apr 2007 22:27:23 +0000 (UTC) (envelope-from peter@placidpublishing.net) Received: from mail.placidpublishing.net (placidpublishing.net [72.232.50.130]) by mx1.freebsd.org (Postfix) with ESMTP id AE6AD13C45A for ; Tue, 10 Apr 2007 22:27:23 +0000 (UTC) (envelope-from peter@placidpublishing.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.placidpublishing.net (Postfix) with ESMTP id 2BA2150820; Tue, 10 Apr 2007 17:32:42 -0500 (CDT) Received: from mail.placidpublishing.net ([127.0.0.1]) by localhost (mail.placidpublishing.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26228-09; Tue, 10 Apr 2007 17:32:31 -0500 (CDT) Received: from [192.168.1.20] (c-67-175-92-171.hsd1.il.comcast.net [67.175.92.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.placidpublishing.net (Postfix) with ESMTP id 22BB350827; Tue, 10 Apr 2007 17:32:31 -0500 (CDT) Message-ID: <461C0F6C.4070205@placidpublishing.net> Date: Tue, 10 Apr 2007 17:27:56 -0500 From: "Placid Publishing, LLC" Organization: Placid Publishing, LLC User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Bill Moran References: <461C0322.8030908@placidpublishing.net> <20070410174944.d3dc28fa.wmoran@potentialtech.com> In-Reply-To: <20070410174944.d3dc28fa.wmoran@potentialtech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard Cc: freebsd-questions@freebsd.org Subject: Re: Uninstalling Ports Question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: peter@placidpublishing.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Apr 2007 22:27:23 -0000 Thanks Bill. I use the port upgrade suit for all of my port management needs. I guess what I can do is just pkg_info the pkg I am going to delete then see if I need the deps or not and un-install them as well. Bill Moran wrote: > In response to "Placid Publishing, LLC" : > > >> Say I have a new system with nothing installed on it yet from the ports >> collection. Lets say I install Apache and lets say it requires php, >> python, perl, and ruby. Now lets say I uninstall Apache with "pkg_delete >> Apache". Will it remove php, python, perl, and ruby? Or will it leave >> those packages? Even if nothing else is depending on them? >> > > The system does not automatically clean up dependencies for you. If > you uninstall a package that leave dependencies behind, you'll have to > clean them up yourself. > > >> If it does, how can I remove those quickly with a pkg_* command? Also, >> what happens if other programs I installed later use php, python, or >> perl? I'm guessing they would just be left? >> > > Install and use ports-mgmnt/pkg_cutleaves. It solves these problems if > you always use it to uninstall software. > >