From owner-freebsd-questions@FreeBSD.ORG Wed Mar 29 08:14:07 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 3B0E416A400 for ; Wed, 29 Mar 2006 08:14:07 +0000 (UTC) (envelope-from northg@shaw.ca) Received: from pd2mo1so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id A481643D46 for ; Wed, 29 Mar 2006 08:14:06 +0000 (GMT) (envelope-from northg@shaw.ca) Received: from pd2mr7so.prod.shaw.ca (pd2mr7so-qfe3.prod.shaw.ca [10.0.141.10]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IWV005QZQVIPAA0@l-daemon> for freebsd-questions@freebsd.org; Wed, 29 Mar 2006 01:14:06 -0700 (MST) Received: from pn2ml7so.prod.shaw.ca ([10.0.121.151]) by pd2mr7so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IWV00HFKQVI0W60@pd2mr7so.prod.shaw.ca> for freebsd-questions@freebsd.org; Wed, 29 Mar 2006 01:14:06 -0700 (MST) Received: from [192.168.1.101] ([24.85.136.31]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IWV002DTQVHI3A0@l-daemon> for freebsd-questions@freebsd.org; Wed, 29 Mar 2006 01:14:06 -0700 (MST) Received: from 127.0.0.1 (AVG SMTP 7.1.385 [268.3.2/294]); Wed, 29 Mar 2006 00:14:16 -0800 Date: Wed, 29 Mar 2006 00:14:16 -0800 From: Graham North In-reply-to: <442A38DB.4070004@locolomo.org> To: Erik Norgaard Message-id: <442A41D8.1020001@shaw.ca> MIME-version: 1.0 Content-type: multipart/mixed; boundary="Boundary_(ID_AYI0iBw9fq5F7Z3sudFhgw)" X-Accept-Language: en-us, en References: <442A1692.3040805@shaw.ca> <442A38DB.4070004@locolomo.org> User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "illoai@gmail.com" , freebsd-questions@freebsd.org 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 08:14:07 -0000 --Boundary_(ID_AYI0iBw9fq5F7Z3sudFhgw) Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 7BIT Hi Erik: mtree eh? I had to man that one... and I will obviously have to read it again - properly. Any chance of asking for a bit of perspective on the command from you? If not, no big deal I will do a bit some background reading. Thanks, Graham/ Erik Norgaard wrote: > 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 -- Kindness can be infectious - try it. Graham North Vancouver, BC www.soleado.ca --Boundary_(ID_AYI0iBw9fq5F7Z3sudFhgw) Content-type: text/plain; x-avg=cert; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline Content-description: "AVG certification" No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.3.2/294 - Release Date: 3/27/2006 --Boundary_(ID_AYI0iBw9fq5F7Z3sudFhgw)--