From owner-freebsd-doc Tue Aug 7 14:50:18 2001 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A56E337B405 for ; Tue, 7 Aug 2001 14:50:08 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f77Lo5W52419; Tue, 7 Aug 2001 14:50:05 -0700 (PDT) (envelope-from gnats) Received: from localhost.localdomain (host68.207.55.120.aadsl.com [207.55.120.68]) by hub.freebsd.org (Postfix) with ESMTP id 20D9637B403 for ; Tue, 7 Aug 2001 14:41:51 -0700 (PDT) (envelope-from swear@aa.net) Received: (from jojo@localhost) by localhost.localdomain (8.11.3/8.11.3) id f77Li2549925; Tue, 7 Aug 2001 14:44:02 -0700 (PDT) (envelope-from swear@aa.net) Message-Id: Date: 07 Aug 2001 14:43:59 -0700 From: swear@aa.net (Gary W. Swearingen) Reply-To: swear@aa.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: docs/29517: Handbook missing fast method of cleaning ports. Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 29517 >Category: docs >Synopsis: Handbook missing fast method of cleaning ports. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 07 14:50:05 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Gary W. Swearingen >Release: FreeBSD 4.3-STABLE i386 >Organization: none >Environment: n/a ================ >Description: The handbook gives what it calls the "best" way to clean ports, which, when I tried it, took several hours on fast hardware. The handbook is missing the faster method used by many. ================ >How-To-Repeat: ================ >Fix: Apply the following PR/patch. I've changed "best" to "surest" and added the alternative method and an introductory paragraph. I got the method off comp.unix.bsd.freebsd.misc and I must admit to having not tested it patch -d /*/doc/en_US.ISO8859-1/tbd/tbd/tbd < this-PR *** /tmp/chapter.sgml Tue Aug 7 11:01:34 2001 --- ports/chapter.sgml Tue Aug 7 11:19:19 2001 *************** *** 1120,1126 **** Yes, if you have installed the program and are fairly certain you will not need the source again, there is no ! point in keeping it hanging around. The best way to do this is: &prompt.root; cd /usr/ports --- 1120,1126 ---- Yes, if you have installed the program and are fairly certain you will not need the source again, there is no ! point in keeping it hanging around. The surest way to do this is: &prompt.root; cd /usr/ports *************** *** 1129,1134 **** --- 1129,1142 ---- which will go through all the ports subdirectories and delete everything except the skeletons for each port. + + A much faster way to do most (if not all) of the same + thing is this: + + &prompt.root; + find /usr/ports -depth -name work -exec rm -rf {} \; + + >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message