From owner-freebsd-questions@FreeBSD.ORG Thu Jan 22 20:11:04 2004 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 C95AD16A4CE for ; Thu, 22 Jan 2004 20:11:04 -0800 (PST) Received: from priv-edtnes04.telusplanet.net (outbound02.telus.net [199.185.220.221]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0DF943D3F for ; Thu, 22 Jan 2004 20:11:02 -0800 (PST) (envelope-from cpressey@catseye.mine.nu) Received: from catseye.biscuit.boo ([207.81.17.215]) by priv-edtnes04.telusplanet.netSMTP <20040123041102.NQJH3326.priv-edtnes04.telusplanet.net@catseye.biscuit.boo>; Thu, 22 Jan 2004 21:11:02 -0700 Date: Thu, 22 Jan 2004 20:15:07 -0800 From: Chris Pressey To: Tom Munro Glass Message-Id: <20040122201507.3ff5fd1f.cpressey@catseye.mine.nu> In-Reply-To: <200401231700.06446.gentoo@tmgcon.com> References: <200401231700.06446.gentoo@tmgcon.com> Organization: Cat's Eye Technologies X-Mailer: Sylpheed version 0.9.8a (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Dependencies of installed ports 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: Fri, 23 Jan 2004 04:11:04 -0000 On Fri, 23 Jan 2004 17:00:05 +1300 Tom Munro Glass wrote: > 1) How can I display the dependencies between the ports I have > installed on my 4.9-RELEASE machine? There seem to be some ports in > /var/db/pkg that I haven't intentionally installed and I would like to > get rid of some of them, but I don't know if they are used by other > ports. Try: pkg_info -r <> > 2) I use portinstall to install ports, but if I want to delete a port, > is the only way to use "make deinstall"? It would be nice if there was > something like portdeinstall that would remove the specified port and > any ports it depends on (providing they are not used elsewhere). pkg_delete can remove the packages created by ports (better than "make deinstall", which can fail after you've updating your ports tree and the port has been upgraded.) pkg_delete -r will remove the package and any packages that depend on it. But for what you want (remove the package and all packages that it depends on (that no other package depends on,)) I'm not sure how to do it with the standard tools. I find the sysutils/pkg_cutleaves port is handy for this purpose though, and definately worth a look in your situation. HTH -Chris