Deleting the kernel source - just with #rm?

Roland Smith rsmith at
Sun Oct 4 15:08:11 UTC 2009

On Sun, Oct 04, 2009 at 03:15:05PM +0200, herbert langhans wrote:
> I just compiled a nice, slim kernel on my laptop, but I dont want to carry
> all the kernel sources around there.

Keep in mind that some ports (those that contain kernel modules) require the
kernel sources.

On my 7.2-RELEASE-p4 machine, /usr/src uses 495 MiB according to du(1). A
bzip2 compressed tar archive of /usr/src weighs in at 83 MiB.

If you are suffering from space constraints, consider doing a trimmed-down
buildworld (on an external disk or on another machine) as well. Using
src.conf(5) you can exclude a lot of stuff from the base system if you don't
need it.

[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list