Date: Fri, 4 May 2007 17:38:49 +0200 From: Roland Smith <rsmith@xs4all.nl> To: "Tuc at T-B-O-H.NET" <ml@t-b-o-h.net> Cc: freebsd-questions@freebsd.org Subject: Re: Ports wrangling Message-ID: <20070504153849.GA29038@slackbox.xs4all.nl> In-Reply-To: <200705041329.l44DTWoE016409@himinbjorg.tucs-beachin-obx-house.com> References: <200705041329.l44DTWoE016409@himinbjorg.tucs-beachin-obx-house.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070504153849.GA29038>