Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 May 2007 11:46:06 -0400
From:      Kris Kennaway <kris@obsecurity.org>
To:        "Tuc at T-B-O-H.NET" <ml@t-b-o-h.net>, freebsd-questions@freebsd.org
Subject:   Re: Ports wrangling
Message-ID:  <20070504154606.GA36598@xor.obsecurity.org>
In-Reply-To: <20070504153849.GA29038@slackbox.xs4all.nl>
References:  <200705041329.l44DTWoE016409@himinbjorg.tucs-beachin-obx-house.com> <20070504153849.GA29038@slackbox.xs4all.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 04, 2007 at 05:38:49PM +0200, Roland Smith wrote:
> On Fri, May 04, 2007 at 09:29:32AM -0400, Tuc at T-B-O-H.NET wrote:
> > Hi,
> > 
> > 	I have a machine in the midst of taking a dirt nap. I bought a
> > replacement and want to start loading all my ports on it. I have 
> > a few questions.
> > 
> > 	Is there a way to get a report of what my "first level" ports
> > are (Those that don't depend on anyone, and aren't depended by anyone),
> > then my second level ports (Those that depend on others, but aren't
> > depended on), etc.
> 
> The command 'portmaster -L' using the ports-mgmt/portmaster port will
> give you that.
> 
> > 	Is there a way to get a report per port what files were ACTUALLY
> > installed and where? (Or do I just do a "find -newer") ?
> 
> The following (sh) commands should do the trick:
> 
> cd /var/db/pkg
> rm -f $HOME/portfiles.list
> for p in *; do
>     echo $p >>$HOME/portfiles.list
>     cat $p/+CONTENTS |awk '/^[^@]/ {print "/usr/local/"$0}' \
>     >>$HOME/portfiles.list
> done
> 
> Provided that you haven't changed the default $PREFIX.

pkg_info -L

Kris



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