Deleting Kernel conpile directory

Lowell Gilbert freebsd-questions-local at be-well.ilk.org
Thu Mar 30 14:40:05 UTC 2006


"Grant Peel" <gpeel at thenetnow.com> writes:

> I am running a little low on disk space in /usr
> 
> Can I delete the /usr/src/sys/i386/compile/mykernel directory?

Sure.  And if you use the "buildkernel" method when you build kernels,
you won't even need that directory again.  If you use the "old
method," (calling config directly), though, you will need the space
again.

> If so, which method is best:
> 
> a:
> cd /usr/src/sys/i386/compile
> rm -rf mykernel
> 
> or 
> 
> b:
> cd /usr/src/sys/i386/compile/mykernel
> make clean

Either one is fine.  If you never want to use the directory again, go
ahead and use the first one.


More information about the freebsd-questions mailing list