Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Reduce the size of your Gentoo Install
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Sun Mar 19, 2006 2:17 am    Post subject: Reduce the size of your Gentoo Install Reply with quote

1. Define LINGUAS in /etc/make.conf. e.g. for english only define "en", and most of the /usr/share/locale (which occupies anywhere upto 150MB) will be empty. All gettext based packages (like most gnome packages) use it.

Code:
LINGUAS="en"


Although, you can reclaim space by 'emerge -e gnome', I will leave it for the next upgrade of gnome.

2. Define USE flag "userlocales" in /etc/make.conf. And then modify /etc/locales.build to have the desired locales only. I have only two.

Code:
en_US/ISO-8859-1
en_US.UTF-8/UTF-8


re-emerge glibc and suddenly, you will have reclaimed 205MB, which /usr/lib/locale owned.

These two tips build the system clean compared to deleting these folders manually.

3. You can delete /usr/share/gtk-doc for all practical purposes and reclaim another 50MB (after a gnome install).

Please add your own tips on reducing the size of the gentoo install to this thread. (Also, please don't post comments like 'don't install kde, or use fluxbox instead of gnome'.... :) ).
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Sun Mar 19, 2006 7:24 am    Post subject: Reply with quote

hm, if you're not interested in any documentation,
why not remove

/usr/share/doc
/usr/share/info
/usr/share/man

good for another 150MB
_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Sun Mar 19, 2006 10:16 am    Post subject: Reply with quote

as addition to devsks tip 1
to remove non-wanted localized man pages and stuff emerge localepurge and configure all locales it needs to keep in /etc/locale.nopurge, e.g.
/etc/locale.nopurge wrote:
MANDELETE
SHOWFREEDSPACE
VERBOSE
en
de
en_US/ISO-8859-1
en_US.UTF-8/UTF-8
de_DE/ISO-8859-1
de_DE@euro/ISO-8859-15

_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
pussi
l33t
l33t


Joined: 08 May 2004
Posts: 727
Location: Finland

PostPosted: Sun Mar 19, 2006 11:17 am    Post subject: Reply with quote

davjel wrote:
hm, if you're not interested in any documentation,
why not remove

/usr/share/doc
/usr/share/info
/usr/share/man

good for another 150MB

Or simply put this in your make.conf
FEATURES="noinfo nodoc noman"
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2995
Location: Bay Area, CA

PostPosted: Sun Mar 19, 2006 4:33 pm    Post subject: Reply with quote

davjel wrote:
hm, if you're not interested in any documentation,
why not remove

/usr/share/doc
/usr/share/info
/usr/share/man

good for another 150MB
because they will build up over time.

Quote:
FEATURES="noinfo nodoc noman"
now that's clean. Thanks pussi.

Is there something similar for /usr/share/gtk-doc?
Back to top
View user's profile Send private message
zurd
Apprentice
Apprentice


Joined: 17 Dec 2003
Posts: 228
Location: Canada, Montreal

PostPosted: Thu May 25, 2006 6:11 pm    Post subject: Reply with quote

Nice trick, and of course after each emerge, don't forget to run these to clean useless files :

Code:
rm -fr /var/tmp/*
rm -fr /usr/portage/distfiles/*
rm -fr /usr/portage/packages/*
Back to top
View user's profile Send private message
LD
Guru
Guru


Joined: 23 Dec 2003
Posts: 336
Location: Middle of No-Where Granbury, Tx

PostPosted: Thu May 25, 2006 7:36 pm    Post subject: Reply with quote

Has there been any good progress with clearing out unneeded dependencies? Also, is there a way to make /usr/portage/distfiles a tmpfs or save to ram for as long as needed then pruged?
_________________
[Owner/Operator: Dhampir Dreams]
Last.fm profile
Netflix Profile
Back to top
View user's profile Send private message
zurd
Apprentice
Apprentice


Joined: 17 Dec 2003
Posts: 228
Location: Canada, Montreal

PostPosted: Fri May 26, 2006 6:15 am    Post subject: Reply with quote

For clearing out packages there's always "emerge --clean world" or "emerge --depclean world" and "emerge --prune world", tough the last two one I really don't recommend, it's too likely to uninstall package you do need. Or there's always "equery list" (from gentoolkit) to see the complete list of package installed, then you could always remove what you think is non-essential. Then again, you might be the one uninstalling package that the system really do need :wink:
Back to top
View user's profile Send private message
pussi
l33t
l33t


Joined: 08 May 2004
Posts: 727
Location: Finland

PostPosted: Fri May 26, 2006 6:24 am    Post subject: Reply with quote

LD wrote:
Has there been any good progress with clearing out unneeded dependencies?
emerge --depclean ?

zurd wrote:
Nice trick, and of course after each emerge, don't forget to run these to clean useless files :

Code:
rm -fr /var/tmp/*
rm -fr /usr/portage/distfiles/*
rm -fr /usr/portage/packages/*
Cleaning distfiles after every emerge isn't always a good thing. It's very likely that you'll need the source files again if you need to recompile it, change your use-flags or there's new ebuild of the same version.

Removing the whole /var/tmp directory might be bad if some application has temporary files in use there.
You can mount /var/tmp/portage in tmpfs which speeds ups compilation and also decreases fragmentation of the hard drive.
Back to top
View user's profile Send private message
hiroki
Guru
Guru


Joined: 29 Jul 2003
Posts: 327
Location: @home in germany

PostPosted: Fri May 26, 2006 9:42 am    Post subject: Reply with quote

pussi wrote:
You can mount /var/tmp/portage in tmpfs which speeds ups compilation and also decreases fragmentation of the hard drive.


well, I doubt that there is a speed-up. I do have /var/tmp/portage mounted in tmpfs, but I did not gain any speed/performance. I mainly do that in order to prevent disk fragmentation. But when I compare compile times from the time before I used tmpfs and afterwards...: compiles times with tmpfs are even slightly slower! You can read that in the talk/discussion page on the wiki, too.
(BTW, I have 1GB RAM)
Back to top
View user's profile Send private message
TheRAt
Veteran
Veteran


Joined: 03 Jun 2002
Posts: 1580

PostPosted: Fri May 26, 2006 1:00 pm    Post subject: Reply with quote

LD wrote:
Has there been any good progress with clearing out unneeded dependencies? Also, is there a way to make /usr/portage/distfiles a tmpfs or save to ram for as long as needed then pruged?

There are a few scripts in the gentoo script repository dealing with this.. have not tested them.. never needed the space on a system here.. but would be interested if someone has played with these and any results / comments...
_________________
All reality is the construct of the observer.

Get Firefox and rediscover the web!

BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum