From owner-freebsd-questions@FreeBSD.ORG Wed Feb 2 13:39:15 2005 Return-Path: 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 D0E7E16A4CE for ; Wed, 2 Feb 2005 13:39:15 +0000 (GMT) Received: from smtp817.mail.sc5.yahoo.com (smtp817.mail.sc5.yahoo.com [66.163.170.3]) by mx1.FreeBSD.org (Postfix) with SMTP id 758FA43D2D for ; Wed, 2 Feb 2005 13:39:15 +0000 (GMT) (envelope-from krinklyfig@spymac.com) Received: from unknown (HELO smogmonster.com) (jtinnin@pacbell.net@64.173.27.163 with login) by smtp817.mail.sc5.yahoo.com with SMTP; 2 Feb 2005 13:39:15 -0000 From: Joshua Tinnin To: freebsd-questions@freebsd.org, Tom Moyer Date: Wed, 2 Feb 2005 05:39:14 -0800 User-Agent: KMail/1.7.2 References: <1486736305020203132be89d74@mail.gmail.com> In-Reply-To: <1486736305020203132be89d74@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200502020539.14607.krinklyfig@spymac.com> Subject: Re: Dealing with ports installations X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Feb 2005 13:39:15 -0000 On Wednesday 02 February 2005 03:13 am, Tom Moyer wrote: > I have a question. I attempted to install a port and when it failed > I realized that it installed its dependancies that I don't need. ( I > don't need the port because I found another that does what I need). > Is there any way to safely go through and see what is installed, what > depends on it and deinstall those that I don't need/use? There are runtime dependencies and there are build dependencies. After installing, you don't need the build dependencies anymore, but in some cases it might be more convenient to leave them there, like if you're going to track updates for those ports, or if many ports need it to build. To see which dependencies of each type that a particular installed package has, you can use: % pkg_info -rR packagename\* That last backslash (escape) and asterix (wildcard) isn't necessary if you know the complete name of the installed package with the version number. You can see a brief listing of all packages on your system with: % pkg_info And you can see all dependencies if you do: % pkg_info -arR For more, see man pkg_info. - jt