From owner-freebsd-questions@FreeBSD.ORG Fri Aug 17 00:50:30 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 489CE16A417 for ; Fri, 17 Aug 2007 00:50:30 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out4.apple.com (mail-out4.apple.com [17.254.13.23]) by mx1.freebsd.org (Postfix) with ESMTP id 32BBE13C483 for ; Fri, 17 Aug 2007 00:50:30 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay6.apple.com (relay6.apple.com [17.128.113.36]) by mail-out4.apple.com (Postfix) with ESMTP id 5B141F10778; Thu, 16 Aug 2007 17:42:09 -0700 (PDT) Received: from relay6.apple.com (unknown [127.0.0.1]) by relay6.apple.com (Symantec Mail Security) with ESMTP id 48FFC1012E; Thu, 16 Aug 2007 17:42:09 -0700 (PDT) X-AuditID: 11807124-a5fb9bb0000007f3-27-46c4eee13754 Received: from [17.214.13.96] (cswiger1.apple.com [17.214.13.96]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by relay6.apple.com (Apple SCV relay) with ESMTP id 3F68F10124; Thu, 16 Aug 2007 17:42:09 -0700 (PDT) In-Reply-To: <46C4EA46.9050801@fpt.vn> References: <46C4EA46.9050801@fpt.vn> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Chuck Swiger Date: Thu, 16 Aug 2007 17:42:08 -0700 To: vuthecuong X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== Cc: freebsd-questions@freebsd.org 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 00:50:30 -0000 On Aug 16, 2007, at 5:22 PM, vuthecuong wrote: > 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. "man pkg_delete" suggests the -a flag: -a Unconditionally delete all currently installed packages. -- -Chuck