From owner-freebsd-questions@FreeBSD.ORG Fri Aug 10 12:38:45 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 3818A16A418 for ; Fri, 10 Aug 2007 12:38:45 +0000 (UTC) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (ei.xs4all.nl [82.95.223.12]) by mx1.freebsd.org (Postfix) with ESMTP id C40EB13C46A for ; Fri, 10 Aug 2007 12:38:44 +0000 (UTC) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.13.8/8.13.8) with ESMTP id l7ACddVK084696; Fri, 10 Aug 2007 14:39:39 +0200 (CEST) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.13.8/8.13.8/Submit) id l7ACddqK084695; Fri, 10 Aug 2007 14:39:39 +0200 (CEST) (envelope-from mail25@bzerk.org) Date: Fri, 10 Aug 2007 14:39:39 +0200 From: Ruben de Groot To: Christopher Key Message-ID: <20070810123939.GA84642@ei.bzerk.org> References: <46BC51C3.1020103@cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46BC51C3.1020103@cam.ac.uk> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.1 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on ei.bzerk.org Cc: questions@freebsd.org 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 12:38:45 -0000 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