Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jan 2004 17:45:19 +1300
From:      Tom Munro Glass <gentoo@tmgcon.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Dependencies of installed ports
Message-ID:  <200401231745.19098.gentoo@tmgcon.com>
In-Reply-To: <20040122201507.3ff5fd1f.cpressey@catseye.mine.nu>
References:  <200401231700.06446.gentoo@tmgcon.com> <20040122201507.3ff5fd1f.cpressey@catseye.mine.nu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 23 Jan 2004 17:15, Chris Pressey wrote:
> On Fri, 23 Jan 2004 17:00:05 +1300
>
> Tom Munro Glass <gentoo@tmgcon.com> wrote:
> > 1) How can I display the dependencies between the ports I have
> > installed on my 4.9-RELEASE machine?
>
> Try:
>
>   pkg_info -r <<name of package as it appears in /var/db/pkg>>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401231745.19098.gentoo>