Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Mar 2006 10:25:19 +0200
From:      Erik Norgaard <norgaard@locolomo.org>
To:        Graham North <northg@shaw.ca>
Cc:        "illoai@gmail.com" <illoai@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: How to clear userland?
Message-ID:  <442A446F.4040707@locolomo.org>
In-Reply-To: <442A41D8.1020001@shaw.ca>
References:  <442A1692.3040805@shaw.ca> <d7195cff0603282249t793f8529r315cdffecb6324a1@mail.gmail.com> <442A38DB.4070004@locolomo.org> <442A41D8.1020001@shaw.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?442A446F.4040707>