27
Dec
05

How to use “localepurge”

A few users have some problems with app-admin/localepurge so i will xplain how o t use it :)

Actually you can use 2 versions. 0.4 version is considered stable and 0.5 is masked because it add a new feature, the multidir search. Use both by your own risk.

  • Install it :
  • # emerge app-admin/localepurge
  • Configure :
  • You just need to uncomment the features you want to use, and add the locales you want to keep in your system.

    # vi /etc/locale.nopurge
  • Tip : get a list of locales.
  • # less /var/cache/localepurge/localelist
  • Execute localepurge :
  • # localepurge

    You can use a few options in command line:

  • -help,-h : Help!.
  • -version : Version.
  • -debug,-d : Debug.
  • -nocolor,-nc : Disable color output.
  • -verbose,-v : Verbose output (recomended).
  • And some options in the config file:

  • MANDELETE : Purge man pages too.
  • SHOWFREEDSPACE : Show freede space.
  • VERBOSE : Verbose output.
  • NOCOLOR : Disable color output.
  • enjoy :)


    16 Responses to “How to use “localepurge””


    1. 1 lanark
      28 December, 2005 at 15:21 pm

      ok, I’ve used it.
      I didn’t realize that I have setted LC_ALL=”es_AR” and zap all locales except “es_ES” (which is not what I’ve configured on the system.

      Now my apps refuses to appear in spanish and give me a lot of weird console errors about locale.

      What must I do???

      Thanks

    2. 2 lanark
      28 December, 2005 at 16:38 pm

      I made a mistake.
      The man says: “The only way to reinstall any lost locales is “remerging” the ebuild.”

      OK, which ebuilds I must “remerge” for recover lost locales?

      Thanks

    3. 28 December, 2005 at 19:55 pm

      lanarak, your mistake is common, for it you must use this script by your own risk… ecause you cannot undelete it.
      Each app have have its own locales files, so you must reinstall, all apps you need in spanish…
      and don forget to add es_AR to locale.nopurge the next time.
      good luck

    4. 4 lanark
      28 December, 2005 at 19:59 pm

      Thanks!!!
      I’m doing it, emerging a bunch of things again is a lesson I won’t forget easily ;)

      Regards

    5. 5 BeteNoire
      28 January, 2006 at 11:22 am

      Hi.
      I thinks this script should have an option to automatically make a backup (tar) of man/locales it is going to remove. Recovering from any failure would be easier this way.

    6. 6 Guest
      29 January, 2006 at 23:15 pm

      This is a great idea for a program. I have a small suggestion: why not add a –pretend or –ask option, like what emerge offers, so that you can see what is to be deleted before committing?

    7. 11 March, 2006 at 23:20 pm

      If well configured you dont need to do a backup because the script only remove unused languages…
      So if anyone want to send me a patch are welcome :)

    8. 8 matysek
      21 June, 2006 at 17:32 pm

      Today I installed your script and it works good.
      I have 2 suggestions:
      1) Why doesn’t the script remove folders with locales? In directory /usr/share/locale. It removes only files.

      2) there are also localised help files. For example in dir ‘/usr/share/gnome/help/’. It would be great remove these files too.

    9. 21 June, 2006 at 20:00 pm

      Thanks for your suggest, i will think about it :)

      regards

    10. 13 October, 2013 at 03:50 am

      Offshore web hosting provides you the edge of NOT becoming topic to your local legal guidelines, supplying you more flexibility about the variety of articles you want to host. Fray


    Leave a reply to lanark Cancel reply


    del.icio.us

    Flickr Photos