From owner-freebsd-questions@FreeBSD.ORG Fri Aug 10 22:32:40 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 511E916A417 for ; Fri, 10 Aug 2007 22:32:40 +0000 (UTC) (envelope-from cjk32@cam.ac.uk) Received: from ppsw-0.csi.cam.ac.uk (ppsw-0.csi.cam.ac.uk [131.111.8.130]) by mx1.freebsd.org (Postfix) with ESMTP id 19B3A13C465 for ; Fri, 10 Aug 2007 22:32:39 +0000 (UTC) (envelope-from cjk32@cam.ac.uk) X-Cam-SpamDetails: Not scanned X-Cam-AntiVirus: No virus found X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from gw.cjkey.org.uk ([88.97.163.222]:3902 helo=[192.168.2.186]) by ppsw-0.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.150]:465) with esmtpsa (PLAIN:cjk32) (TLSv1:DHE-RSA-AES256-SHA:256) id 1IJd24-0005BI-0C (Exim 4.63) for questions@freebsd.org (return-path ); Fri, 10 Aug 2007 23:32:36 +0100 Message-ID: <46BCE783.2010407@cam.ac.uk> Date: Fri, 10 Aug 2007 23:32:35 +0100 From: Christopher Key User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: questions@freebsd.org References: <46BC51C3.1020103@cam.ac.uk> <20070810123939.GA84642@ei.bzerk.org> In-Reply-To: <20070810123939.GA84642@ei.bzerk.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Remove ports dependencies 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: Fri, 10 Aug 2007 22:32:40 -0000 Ruben de Groot wrote: > On Fri, Aug 10, 2007 at 12:53:39PM +0100, Christopher Key typed: > >> Hello, >> >> I recently tried to install vim from the ports collections, however I >> didn't do it with 'WITHOUT_X11', and accordingly it went off and >> installed X + presumably a whole load of dependencies which I really >> don't want. Is there any way to get a list of exactly what it added so >> that I can go and remove it cleanly? >> > > the command "pkg_deinstall -nR vim" (this command is port of the portupgrade > package) will give you a list of all packages vim depends on. Removing the 'n' > switch will actually upward-recursively deinstall these packages, excluding > the ones that are needed by other packages. > Then rebuild vim WITHOUT_X11 ;) > > cheers, > Ruben > Thanks Ruben, portupgrade contained a lot more tools that I wasn't aware of. In the end, I ripped everything out and started afresh. I do have another query though; pkg_cutleaves is supposed to show you a list of of packages upon which nothing depends. In theory this means that there should be nothing in this list beyond the ports I've explicitly installed. However, I do seem to have gained autoconf, automake, gmake, help2man and libtool. Am I right in thinking that these were required for building / installing something at some point, but that nothing would break if I were to remove them? Regards, Chris