From owner-freebsd-questions@FreeBSD.ORG Wed Mar 29 07:36:05 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BDD216A41F for ; Wed, 29 Mar 2006 07:36:05 +0000 (UTC) (envelope-from norgaard@locolomo.org) Received: from strange.daemonsecurity.com (59.Red-81-33-11.staticIP.rima-tde.net [81.33.11.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5A6F43D55 for ; Wed, 29 Mar 2006 07:36:04 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from [172.24.8.84] (generic.atosorigin.es [212.170.156.200]) by strange.daemonsecurity.com (Postfix) with ESMTP id 522132E04B; Wed, 29 Mar 2006 09:36:10 +0200 (CEST) Message-ID: <442A38DB.4070004@locolomo.org> Date: Wed, 29 Mar 2006 09:35:55 +0200 From: Erik Norgaard User-Agent: Thunderbird 1.5 (X11/20060118) MIME-Version: 1.0 To: "illoai@gmail.com" References: <442A1692.3040805@shaw.ca> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, Graham North Subject: Re: How to clear userland? 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: Wed, 29 Mar 2006 07:36:05 -0000 illoai@gmail.com wrote: > On 3/28/06, Graham North wrote: >> Is there a nice tidy way to clear my userland - CLEAN without >> jeopardizing or reloading the OS? > > pkg_delete -a > should get rid of anything not in the base system. > alternately, deleting /usr/local and /usr/X11R6 will > remove it pretty quickly, as well. though one would > have to check for things started in /etc/rc.conf Variables set in rc.conf refering to nonexistent programs have no effect. But if you delete /usr/local and /usr/X11R6 you'll mess up the package database. Clean it by deleting content of /var/db/pkg also. Recreate the /usr/local and /usr/X11R6 using mtree. Cheers, Erik -- Ph: +34.666334818 web: www.locolomo.org S/MIME Certificate: www.daemonsecurity.com/ca/8D03551FFCE04F06.crt Subject ID: 9E:AA:18:E6:94:7A:91:44:0A:E4:DD:87:73:7F:4E:82:E7:08:9C:72 Fingerprint: 5B:D5:1E:3E:47:E7:EC:1C:4C:C8:3A:19:CC:AE:14:F5:DF:18:0F:B9