How to clear userland?

Erik Norgaard norgaard at locolomo.org
Wed Mar 29 07:36:05 UTC 2006


illoai at gmail.com wrote:
> On 3/28/06, Graham North <northg at 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


More information about the freebsd-questions mailing list