From owner-freebsd-questions@FreeBSD.ORG Fri Aug 17 07:51:49 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30BCC16A41A for ; Fri, 17 Aug 2007 07:51:49 +0000 (UTC) (envelope-from peter@boosten.org) Received: from smtpq1.groni1.gr.home.nl (smtpq1.groni1.gr.home.nl [213.51.130.200]) by mx1.freebsd.org (Postfix) with ESMTP id E047813C4F7 for ; Fri, 17 Aug 2007 07:51:48 +0000 (UTC) (envelope-from peter@boosten.org) Received: from [213.51.130.189] (port=40069 helo=smtp2.groni1.gr.home.nl) by smtpq1.groni1.gr.home.nl with esmtp (Exim 4.30) id 1ILvpm-00068n-3G; Fri, 17 Aug 2007 09:01:26 +0200 Received: from cp268254-a.landg1.lb.home.nl ([213.51.103.48]:5035 helo=ra.egypt.nl) by smtp2.groni1.gr.home.nl with esmtp (Exim 4.30) id 1ILvpk-0002LT-Ez; Fri, 17 Aug 2007 09:01:24 +0200 Received: from ra.egypt.nl (localhost.egypt.nl [127.0.0.1]) by ra.egypt.nl (Postfix) with ESMTP id 6D2B9398B6; Fri, 17 Aug 2007 09:01:11 +0200 (CEST) Received: by ra.egypt.nl (Postfix, from userid 501) id 22F74398AB; Fri, 17 Aug 2007 09:01:11 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on ra.egypt.nl X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED, AWL autolearn=ham version=3.2.3 Received: from [127.0.0.1] (xp.egypt.nl [192.168.13.35]) by ra.egypt.nl (Postfix) with ESMTP id 6E26539885; Fri, 17 Aug 2007 09:01:06 +0200 (CEST) Message-ID: <46C547B1.4020709@boosten.org> Date: Fri, 17 Aug 2007 09:01:05 +0200 From: Peter Boosten User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666 MIME-Version: 1.0 To: Erno Immonen References: <46C4EA46.9050801@fpt.vn> <40bdcc020708162311g5ea14924x3bb9f7f26ea88b6f@mail.gmail.com> In-Reply-To: <40bdcc020708162311g5ea14924x3bb9f7f26ea88b6f@mail.gmail.com> X-Enigmail-Version: 0.95.3 OpenPGP: url=http://www.boosten.org/content/view/49/47/ Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 000766-0, 08/16/2007), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: ClamAV using ClamSMTP X-AtHome-MailScanner-Information: Please contact support@home.nl for more information X-AtHome-MailScanner: Found to be clean Cc: freebsd-questions@freebsd.org, vuthecuong Subject: Re: deinstall all apps installed from ports 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, 17 Aug 2007 07:51:49 -0000 Erno Immonen wrote: > 2007/8/17, vuthecuong wrote: >> Just for reference only: >> I wonder how can I remove all apps, yes, all apps installed from ports >> so that only >> freebsd 6.2 OS remains just by one command. >> I use portupgrade. >> Thanks > > rm -rf /usr/local/* /usr/X11R6/* /var/db/pkg/* /var/db/ports/* Yeah, right... why not 'rm -rf /' :-S pkg_delete -a -- http://www.boosten.org