Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Automatically delete information from unused locales
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
parallelgrapefruit
n00b
n00b


Joined: 04 Feb 2005
Posts: 8

PostPosted: Sat May 20, 2006 10:59 pm    Post subject: Automatically delete information from unused locales Reply with quote

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
View user's profile Send private message
mikemcquaid
Tux's lil' helper
Tux's lil' helper


Joined: 11 May 2004
Posts: 108
Location: Edinburgh, Scotland

PostPosted: Sun May 21, 2006 10:36 am    Post subject: Reply with quote

Nice one, this is a very good idea!
Back to top
View user's profile Send private message
slestak
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jun 2003
Posts: 115

PostPosted: Tue May 23, 2006 12:32 am    Post subject: Reply with quote

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
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