View previous topic :: View next topic |
Author |
Message |
devsk Advocate
Joined: 24 Oct 2003 Posts: 2995 Location: Bay Area, CA
|
Posted: Sun Mar 19, 2006 2:17 am Post subject: Reduce the size of your Gentoo Install |
|
|
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.
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 |
|
|
JeliJami Veteran
Joined: 17 Jan 2006 Posts: 1086 Location: Belgium
|
Posted: Sun Mar 19, 2006 7:24 am Post subject: |
|
|
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 |
|
|
think4urs11 Bodhisattva
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Sun Mar 19, 2006 10:16 am Post subject: |
|
|
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 |
|
|
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Sun Mar 19, 2006 11:17 am Post subject: |
|
|
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 |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2995 Location: Bay Area, CA
|
Posted: Sun Mar 19, 2006 4:33 pm Post subject: |
|
|
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 |
|
|
zurd Apprentice
Joined: 17 Dec 2003 Posts: 228 Location: Canada, Montreal
|
Posted: Thu May 25, 2006 6:11 pm Post subject: |
|
|
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 |
|
|
LD Guru
Joined: 23 Dec 2003 Posts: 336 Location: Middle of No-Where Granbury, Tx
|
Posted: Thu May 25, 2006 7:36 pm Post subject: |
|
|
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 |
|
|
zurd Apprentice
Joined: 17 Dec 2003 Posts: 228 Location: Canada, Montreal
|
Posted: Fri May 26, 2006 6:15 am Post subject: |
|
|
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 |
|
Back to top |
|
|
pussi l33t
Joined: 08 May 2004 Posts: 727 Location: Finland
|
Posted: Fri May 26, 2006 6:24 am Post subject: |
|
|
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 |
|
|
hiroki Guru
Joined: 29 Jul 2003 Posts: 327 Location: @home in germany
|
Posted: Fri May 26, 2006 9:42 am Post subject: |
|
|
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 |
|
|
TheRAt Veteran
Joined: 03 Jun 2002 Posts: 1580
|
Posted: Fri May 26, 2006 1:00 pm Post subject: |
|
|
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 |
|
|
|