Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


help keeping gentoo small

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> General Discussion
Author Message
isho



Joined: 03 Feb 2004
Posts: 2
Location: Berkeley, CA

Posted: Tue Feb 03, 2004 7:00 pm    Post subject: help keeping gentoo small  

Help! I'm new to Gentoo and portage so I probably made mistakes...

I'm building a machine to use as a general purpose dev webserver. I started by installing mysql, apache, php, perl, pure-ftpd, emacs, and gentoolkit

... and now I'm out of disk space, more than 1.7G which doesn't seem right too me?

Am I doing something wrong? I have a feeling that perl and php compiled a bunch of packages that I don't need.

Here's the USE variable I set in /etc/make.conf

USE="emacs java perl curl imagemagick jikes mysql -kde -qt -gnome -gdk -X -truetype -opengl -xmms -oggvorbis -opengl
-avi -quicktime -xmms -mpeg"


What USE variables do other people with similar needs use?

What's the best way too figure out which packages are taking up the most space and their dependancies?

Does anyone else have any tips on how to keep Gentoo small?

Thanks in Adavance
Back to top  
adamgent



Joined: 23 Jun 2003
Posts: 261

Posted: Tue Feb 03, 2004 7:27 pm    Post subject:  

Hi,

To save diskspace you can delete the files from

/var/log/portage/* /usr/portage/distfiles/*

I purge those dirs daily as they do seem to take up alot of space.

The logs arnt that important if all goes well and the distfiles once the package has finished emerging you do not need the distfiles anymore.

Adam
Back to top  
isho



Joined: 03 Feb 2004
Posts: 2
Location: Berkeley, CA

Posted: Tue Feb 03, 2004 7:46 pm    Post subject: thanks adam  

Thanks, that saved me 300M.

Do you know the best way to identify packages that aren't needed anymore after adjusting the USE variable?

Ishmael
Back to top  
adamgent



Joined: 23 Jun 2003
Posts: 261

Posted: Wed Feb 04, 2004 3:41 am    Post subject:  

Hi,

Most of the packages are proabably still needed even after the USE flag ajustment, but some packages may need to be recompiled due to the changes.

I have a program to see if anything needs to be re-compiled will post it later.

Adam
Back to top  
Cool_blade



Joined: 10 Feb 2004
Posts: 6
Location: Brisbane - Australia

Posted: Tue Feb 10, 2004 8:48 pm    Post subject:  

I don't understand why people use Gentoo on a distributed system like linode for a web/email server.

It just doesn't seem to fit the bill, unless you precompile your emerge stuff on another host and then upload it - but that seems like an awful amount of work.

There's probably a way to trim down your portage tree down to the bare essentials.

And you'd want to tune down your USE flags heaps, like -kde -X11, pretty much everything client side.
Back to top  
bigbiff



Joined: 01 Apr 2004
Posts: 2

Posted: Thu Apr 01, 2004 12:14 am    Post subject:  

I believe emerge -k will search for a binary package first, and compile from source if it is not available. Try emerge -K to do binaries only. Gentoo can do binaries too. :)
Back to top  
Bill Clinton



Joined: 23 Nov 2003
Posts: 79

Posted: Thu Apr 01, 2004 5:27 am    Post subject:  

Cool_blade wrote: I don't understand why people use Gentoo on a distributed system like linode for a web/email server.

It just doesn't seem to fit the bill, unless you precompile your emerge stuff on another host and then upload it - but that seems like an awful amount of work.


Not to start a flame war, but rather some real discussion ...

I have to agree, it doesn't make much sense either. From what I'm seeing, the amount of time required to compile and upkeep the source-installation-tree is far more than the amount of time given back in CPU optimizations.

Additionally, most distros ship with optimized versions of the few libraries that will make a difference ( /lib/i686 exists for a reason! ) And for things like email, database, httpd, I'd be some what surprised if most didn't manually compile those by hand to begin with.

Bill Clinton
Back to top  
 
       Linode.com Forum Forum Index -> General Discussion
Page 1 of 1