Date: 07 Aug 2001 14:43:59 -0700 From: swear@aa.net (Gary W. Swearingen) To: FreeBSD-gnats-submit@freebsd.org Subject: docs/29517: Handbook missing fast method of cleaning ports. Message-ID: <zju1zjv940.1zj@localhost.localdomain>
next in thread | raw e-mail | index | archive | help
>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: <code/input/activities to reproduce the problem (multiple lines)> ================ >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 <how to correct or work around the problem, if known (multiple lines)> *** /tmp/chapter.sgml Tue Aug 7 11:01:34 2001 --- ports/chapter.sgml Tue Aug 7 11:19:19 2001 *************** *** 1120,1126 **** <answer> <para>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:</para> <screen>&prompt.root; <userinput>cd /usr/ports</userinput> --- 1120,1126 ---- <answer> <para>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:</para> <screen>&prompt.root; <userinput>cd /usr/ports</userinput> *************** *** 1129,1134 **** --- 1129,1142 ---- <para>which will go through all the ports subdirectories and delete everything except the skeletons for each port.</para> + + <para>A much faster way to do most (if not all) of the same + thing is this:</para> + + <screen>&prompt.root; <userinput> + find /usr/ports -depth -name work -exec rm -rf {} \;</userinput> + </screen> + </answer> </qandaentry> >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?zju1zjv940.1zj>