From owner-freebsd-questions@FreeBSD.ORG Fri May 4 15:38:52 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 89B8E16A404 for ; Fri, 4 May 2007 15:38:52 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr4.xs4all.nl (smtp-vbr4.xs4all.nl [194.109.24.24]) by mx1.freebsd.org (Postfix) with ESMTP id 2513213C487 for ; Fri, 4 May 2007 15:38:51 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr4.xs4all.nl (8.13.8/8.13.8) with ESMTP id l44Fcnkv041106; Fri, 4 May 2007 17:38:50 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id BDAA3B82B; Fri, 4 May 2007 17:38:49 +0200 (CEST) Date: Fri, 4 May 2007 17:38:49 +0200 From: Roland Smith To: "Tuc at T-B-O-H.NET" Message-ID: <20070504153849.GA29038@slackbox.xs4all.nl> Mail-Followup-To: "Tuc at T-B-O-H.NET" , freebsd-questions@freebsd.org References: <200705041329.l44DTWoE016409@himinbjorg.tucs-beachin-obx-house.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uAKRQypu60I7Lcqm" Content-Disposition: inline In-Reply-To: <200705041329.l44DTWoE016409@himinbjorg.tucs-beachin-obx-house.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.15 (2007-04-06) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org 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:38:52 -0000 --uAKRQypu60I7Lcqm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 04, 2007 at 09:29:32AM -0400, Tuc at T-B-O-H.NET wrote: > Hi, >=20 > 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=20 > a few questions. >=20 > 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. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --uAKRQypu60I7Lcqm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQFGO1OJEnfvsMMhpyURAodtAJ9IpBhgIHLLYP9H4zoaQZb00smOtwCgr3JC jgOEs48VEqyxe6bO/jvf5ZY= =x2r3 -----END PGP SIGNATURE----- --uAKRQypu60I7Lcqm--