From owner-freebsd-questions@FreeBSD.ORG Fri May 4 15:46:07 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6C1B716A402 for ; Fri, 4 May 2007 15:46:07 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 5B75F13C4DE for ; Fri, 4 May 2007 15:46:07 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id B836B1A4DA3; Fri, 4 May 2007 08:46:43 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 95437513E9; Fri, 4 May 2007 11:46:06 -0400 (EDT) Date: Fri, 4 May 2007 11:46:06 -0400 From: Kris Kennaway To: "Tuc at T-B-O-H.NET" , freebsd-questions@freebsd.org Message-ID: <20070504154606.GA36598@xor.obsecurity.org> References: <200705041329.l44DTWoE016409@himinbjorg.tucs-beachin-obx-house.com> <20070504153849.GA29038@slackbox.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070504153849.GA29038@slackbox.xs4all.nl> User-Agent: Mutt/1.4.2.2i Cc: Subject: Re: Ports wrangling X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2007 15:46:07 -0000 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