Re: Deleting the kernel source - just with #rm?

2009-10-04 Thread Robert Huff

Roland Smith writes:

>  > 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.

And not just kernel modules.  The popular and useful
sysutils/lsof not only requires the source tree (or at least some
part of it), but requires the source match the running kernel.


Robert Huff


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Deleting the kernel source - just with #rm?

2009-10-04 Thread Roland Smith
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.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpTsPsi2xAS5.pgp
Description: PGP signature


Re: Deleting the kernel source - just with #rm?

2009-10-04 Thread andrew clarke
On Sun 2009-10-04 16:29:08 UTC+0200, herbert langhans (herbert.raim...@gmx.net) 
wrote:

> Can you please tell me about the issue with freebsd-update. Does it mean if I 
> run:
> #freebsd-update fetch
> #freebsd-update install
> - it will overwrite my self compiled kernel? Good to know indeed! 

No, I suspect freebsd-update will simply refuse to patch it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Deleting the kernel source - just with #rm?

2009-10-04 Thread herbert langhans
Thank you, Andrew,
clicketyclick - all source code gone now, and the config file is saved.

Can you please tell me about the issue with freebsd-update. Does it mean if I 
run:
#freebsd-update fetch
#freebsd-update install
- it will overwrite my self compiled kernel? Good to know indeed! 

Cheers
herb langhans


On Mon, Oct 05, 2009 at 12:37:37AM +1100, andrew clarke wrote:
> On Sun 2009-10-04 15:15:05 UTC+0200, herbert langhans 
> (herbert.raim...@gmx.net) wrote:
> 
> > I just compiled a nice, slim kernel on my laptop, but I dont want to
> > carry all the kernel sources around there.
> >
> > Is it ok just to #rm the content of the /usr/src directory? And will I
> > get it completely back from sysinstall or the FreeBSD-servers? Or is
> > there a more elegant solution on FreeBSD?
> 
> This should be fine.
> 
> Since you've built a custom kernel you may want to keep a copy of
> your kernel build config ("LINT") file, eg. /usr/src/sys/i386/conf/HOSTNAME.
> 
> Note that you can't use freebsd-update to patch a custom (non-GENERIC)
> kernel.
> 
> You can restore the kernel source code by extracting the ssys.??
> binaries (normally found in the /src/ directory, eg.
> ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.2-RELEASE/src/ )
> using install.sh (found in the same directory).  Probably also with
> sysinstall, but I don't recall the steps to do that.
> 
> Regards
> Andrew
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

-- 
sprachtraining langhans
herbert langhans, warschau
http://www.langhans.com.pl
herbert dot raimund at gmx dot net
+0048 603 341 441

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Deleting the kernel source - just with #rm?

2009-10-04 Thread andrew clarke
On Sun 2009-10-04 15:15:05 UTC+0200, herbert langhans (herbert.raim...@gmx.net) 
wrote:

> I just compiled a nice, slim kernel on my laptop, but I dont want to
> carry all the kernel sources around there.
>
> Is it ok just to #rm the content of the /usr/src directory? And will I
> get it completely back from sysinstall or the FreeBSD-servers? Or is
> there a more elegant solution on FreeBSD?

This should be fine.

Since you've built a custom kernel you may want to keep a copy of
your kernel build config ("LINT") file, eg. /usr/src/sys/i386/conf/HOSTNAME.

Note that you can't use freebsd-update to patch a custom (non-GENERIC)
kernel.

You can restore the kernel source code by extracting the ssys.??
binaries (normally found in the /src/ directory, eg.
ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.2-RELEASE/src/ )
using install.sh (found in the same directory).  Probably also with
sysinstall, but I don't recall the steps to do that.

Regards
Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Deleting the kernel source - just with #rm?

2009-10-04 Thread herbert langhans
Daemons,
a little question.

I just compiled a nice, slim kernel on my laptop, but I dont want to carry all 
the kernel sources around there.

Is it ok just to #rm the content of the /usr/src directory? And will I get it 
completely back from sysinstall or the FreeBSD-servers? Or is there a more 
elegant solution on FreeBSD?

Thanks!
herb langhans

-- 
sprachtraining langhans
herbert langhans, warschau
http://www.langhans.com.pl
herbert dot raimund at gmx dot net
+0048 603 341 441

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"