From owner-freebsd-questions@FreeBSD.ORG Thu Jan 22 20:45:34 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 DF8D416A4CE for ; Thu, 22 Jan 2004 20:45:34 -0800 (PST) Received: from tmgcon.com (tmgcon.com [128.121.216.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF06A43D31 for ; Thu, 22 Jan 2004 20:45:33 -0800 (PST) (envelope-from gentoo@tmgcon.com) Received: from kereru.tmgcon1.co.nz (210-54-78-58.dialup.xtra.co.nz [210.54.78.58]) by tmgcon.com (8.12.10/8.12.6) with ESMTP id i0N4jV4Y008460 for ; Fri, 23 Jan 2004 04:45:32 GMT Received: from gentoo (unknown [192.168.0.64]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by kereru.tmgcon1.co.nz (Postfix) with ESMTP id E8DF4CFEF for ; Fri, 23 Jan 2004 17:45:30 +1300 (NZDT) From: Tom Munro Glass To: freebsd-questions@freebsd.org Date: Fri, 23 Jan 2004 17:45:19 +1300 User-Agent: KMail/1.5.4 References: <200401231700.06446.gentoo@tmgcon.com> <20040122201507.3ff5fd1f.cpressey@catseye.mine.nu> In-Reply-To: <20040122201507.3ff5fd1f.cpressey@catseye.mine.nu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401231745.19098.gentoo@tmgcon.com> 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:45:35 -0000 On Fri, 23 Jan 2004 17:15, Chris Pressey wrote: > 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? > > Try: > > pkg_info -r <> Thanks for that - for some reason I was thinking that pkg_info only worked with packages. > > 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. Thanks again - now I know about pkg_info, pkg_delete and pkg_cutleaves, I should be able to figure out the details. Cheers, Tom