Date: Wed, 29 Mar 2006 09:35:55 +0200 From: Erik Norgaard <norgaard@locolomo.org> To: "illoai@gmail.com" <illoai@gmail.com> Cc: freebsd-questions@freebsd.org, Graham North <northg@shaw.ca> Subject: Re: How to clear userland? Message-ID: <442A38DB.4070004@locolomo.org> In-Reply-To: <d7195cff0603282249t793f8529r315cdffecb6324a1@mail.gmail.com> References: <442A1692.3040805@shaw.ca> <d7195cff0603282249t793f8529r315cdffecb6324a1@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
illoai@gmail.com wrote: > On 3/28/06, Graham North <northg@shaw.ca> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?442A38DB.4070004>