From owner-freebsd-questions@FreeBSD.ORG Wed Mar 29 08:25:24 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 4939E16A431 for ; Wed, 29 Mar 2006 08:25:24 +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 B9DB243D45 for ; Wed, 29 Mar 2006 08:25:23 +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 DBC9B2E041; Wed, 29 Mar 2006 10:25:29 +0200 (CEST) Message-ID: <442A446F.4040707@locolomo.org> Date: Wed, 29 Mar 2006 10:25:19 +0200 From: Erik Norgaard User-Agent: Thunderbird 1.5 (X11/20060118) MIME-Version: 1.0 To: Graham North References: <442A1692.3040805@shaw.ca> <442A38DB.4070004@locolomo.org> <442A41D8.1020001@shaw.ca> In-Reply-To: <442A41D8.1020001@shaw.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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:25:24 -0000 Graham North wrote: > 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. you do something like this to rebuild the directory structure of /usr/local: mtree -U -f /etc/mtree/bsd.local.dist -p /usr Two things to note: I'm on 6.0, you may have a different -f argument. I don't if the -p argument should be /usr/local, I don't think so. Anyway, you can test and see what happens using -p /tmp that should create something in /tmp that you can then just delete. I know on 6.x that mtree is run on 'make installworld' to update the directory base tree, but I'm not sure if it is run for /usr/local and /usr/X11R6 since these are not part of base. For 4.x I don't remember. 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