Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Jul 2010 11:26:15 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        Mike Barnard <mike.barnardq@gmail.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: /usr/local empty after upgrade
Message-ID:  <44wrt88wdk.fsf@be-well.ilk.org>
In-Reply-To: <AANLkTimRstinCOR6tfYUrS2P9i0Q8Un65BTEvEbVfF1N@mail.gmail.com> (Mike Barnard's message of "Tue, 6 Jul 2010 17:12:14 %2B0300")
References:  <AANLkTimVWQ2MpV6C5BlgjYxb0Cv9NqgAxrPDZRbL8lCT@mail.gmail.com> <AANLkTil2LR7zfOyf-ZwI7tojiEyQ35_vFQiLSdVpAzJa@mail.gmail.com> <AANLkTimRstinCOR6tfYUrS2P9i0Q8Un65BTEvEbVfF1N@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Mike Barnard <mike.barnardq@gmail.com> writes:

> 100% sure... I have tried to rebuild world but I still end up with an empty
> /usr/local.. Prior to upgrading from 8.0-RELEASE, the directory has the
> usual files and directories, but after the upgrade, its empty. Good thing is
> that I had not installed any ports.
>
> I'd like to avoid a reinstall, which is why I was wondering if there is a
> way I can get this directory back with its files and directories.

mtree -p /usr/local < /etc/mtree/BSD.local.dist

(I thought buildworld did that for you, but apparently it doesn't.
Probably because you can't put it somewhere else if you like.)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44wrt88wdk.fsf>