View previous topic :: View next topic |
Author |
Message |
parallelgrapefruit n00b

Joined: 04 Feb 2005 Posts: 8
|
Posted: Sat May 20, 2006 10:59 pm Post subject: Automatically delete information from unused locales |
|
|
many packages install information for i18n and l10n information, and for many people this is unneeded. A simple way to delete man pages and locale data for translations you do not need is to do the following.
1. emerge localepurge
2. edit the config file, /etc/locale.nopurge
After configuring the entire thing remember to comment out the line that says
NEEDSCONFIGFIRST
scroll down to the bottom, here is where locales are added
one per line, mine looks like the following
Quote: | en
en_US.UTF-8
en_US |
3. run localepurge once to clean out old cruft, not needed but will give an idea of what it does.
4. Edit /etc/portage/bashrc and add the following (thanks flameeyes!)
Code: | if [[ ${EBUILD_PHASE} == "postinst" ]]; then
einfo "Running localepurge..."
PATH="/bin:/usr/bin" localepurge
fi |
There you go! |
|
Back to top |
|
 |
mikemcquaid Tux's lil' helper

Joined: 11 May 2004 Posts: 108 Location: Edinburgh, Scotland
|
Posted: Sun May 21, 2006 10:36 am Post subject: |
|
|
Nice one, this is a very good idea! |
|
Back to top |
|
 |
slestak Tux's lil' helper

Joined: 13 Jun 2003 Posts: 115
|
Posted: Tue May 23, 2006 12:32 am Post subject: |
|
|
Is it necessary to run for every emerge? It would be effective to just add it to cron.monthly as well wouldnt it? |
|
Back to top |
|
 |
|
|
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
|
|