On Wed 09 Jul 2003 at 10:03:47, Glen Wagley said:
> The funny thing is though, I haven't put anything else on except for
> gnome and the gentoo base system (of course), yet I've used like 1.6 GB
> already. Is Gnome usually this large or is there some cache laying
> around that I'm filling up and not nuking?
In addition to /usr/portage/distfiles, if there are problems with the
emerge step, that can leave a lot of junk sitting in /var/tmp/portage.
You can delete everything in there if there isn't an emerge running.
One thing to keep in mind is that emerge installs *everything* from a
package. Unlike Debian and RedHat which may split -- for example --
Samba into a "samba-common" "samba-client" "samba-server" and
"samba-doc" packages, with Gentoo, when you do "emerge samba" you get
everything: client, server, docs, and the kitchen sink. If you know
about the internals of a package, then you can delete parts you don't
need (like removing "swat" from samba because I don't ever use it).
Another thing that helps keep the size down is stripping your libraries
and executables. Unless you're going to be running gdb [0] on these
programs on a regular basis, then there's no need to keep debugging
builds around. Putting "-debug" in your USE var in /etc/make.conf will
cause most packages to be built stripped of debugging symbols. You can
also do:
find . -type f -perm +111 -exec strip \{\} \;
To strip existing files in and below the current directory. If you run
it in /bin, /sbin, /opt, /lib, and /usr, you'll get rid of debugging
symbols on pretty much everything?
Curiosity -- what happens if you do "strip /proc/kcore" ? I imagine
one of two things: nothing, or a kernel panic. I'll have to try it some
time...
[0] Does anyone know of a good tutorial for gdb? I've been through
Byron's writeup on the UUG site, but I'd like to get a little more
in-depth now.
--
Soren Harward
[EMAIL PROTECTED]
____________________
BYU Unix Users Group
http://uug.byu.edu/
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list