Package Details: localepurge 0.7.3.4-2

Git Clone URL: https://aur.archlinux.org/localepurge.git (read-only)
Package Base: localepurge
Description: Script to remove disk space wasted for unneeded localizations.
Upstream URL: http://packages.debian.org/source/sid/localepurge
Licenses: GPL
Submitter: None
Maintainer: hcartiaux
Last Packager: hcartiaux
Votes: 245
Popularity: 1.712796
First Submitted: 2007-07-08 16:29
Last Updated: 2016-08-08 09:32

Latest Comments

ArchangeGabriel commented on 2017-01-31 21:29

@hcartiaux I don’t want this package to be removed, nor to be updated (unless to make it useless), because I want people stumbling on this to use NoExtract. ;)

hcartiaux commented on 2017-01-31 16:53

As I said, it's a "legacy" PKGBUILD, use whatever you want, but I will not remove, break or let random users break and/or compromise this PKGBUILD and its huge patch ;)

ArchangeGabriel commented on 2017-01-31 14:03

@hcartiaux: Especially on a SD card, you should be concerned about extracting useless files just to remove them right after. ;) And like I said, if you have any gnome or kde app installed, you’re missing half of them with localepurge. :(

hcartiaux commented on 2017-01-31 09:14

Fyi, I've used localepurge on my raspberry pi, set up a couple of years ago on a 8GB SD card. I understand it is "legacy" now and that there are better method to achieve the same result, but I would prefer to keep control on it for safety reasons :)

I can review any request for changes but I will not add support for an infinity of proprietary softwares...

ArchangeGabriel commented on 2017-01-30 15:53

@Florian: I was sure we could link AUR comments, but apparently not. Just look at comments below (those around 2016-05), though the blog post link seems dead. :(

And regarding other distros, I still think this is the job of package managers, that should all have a NoExtract-like feature. It’s way more powerful than localepurge because first it acts before hand and second supports much more than just locales. ;) I’m also using NoExtract for other things, like avoiding Firefox system addons.

Florian commented on 2017-01-30 15:49

I admit I haven't used or even heard of the NoExtract functionality before. Which blog article are you referring to?

However, the NoExtract functionality is still Arch-specific. Maybe someone should fork localepurge or bring it up to date, so that the entire community can benefit from it.

In the meantime, I'll be using your rules. Thanks!

ArchangeGabriel commented on 2017-01-30 15:20

I think you might have not looked at the wiki and blog article. ;) The “exhaustive” list is quite tiny, my pacman.conf is like this:

NoExtract = usr/share/help/* !usr/share/help/en* !usr/share/help/fr*
NoExtract = usr/share/locale/* !usr/share/locale/en/* !usr/share/locale/en_GB/* !usr/share/locale/en_US/* !usr/share/locale/fr* !usr/share/locale/kde4* !usr/share/locale/kf5_all_languages !usr/share/locale/locale.alias
NoExtract = usr/share/man/* !usr/share/man/man* !usr/share/man/fr*
NoExtract = usr/share/doc/HTML/* !usr/share/doc/HTML/en/* !usr/share/doc/HMTL/fr/*
NoExtract = usr/share/X11/locale/* !usr/share/X11/locale/compose.dir !usr/share/X11/locale/locale* !usr/share/X11/locale/en_US.UTF-8/*

Change fr to your preferred locale or remove it altogether for only en support. There is no need for update on any new package or locale.

Note that this is more up-to-date than upstream localepurge (and even this AUR package which doesn’t patch for this), which still list:
– /usr/share/doc/kde/HTML/, while the kde part has been removed (just look at /usr/share/doc/HTML/ and tell me how many undesired locales you have there);
– same thing in the GNOME world with /usr/share/gnome/help/ from which the gnome part has been removed (once again, just look at /usr/share/help/ and tell me how many undesired locales you have there).

I’ve also included X11, which isn’t in localepurge. I have a vim one if you want too. Also they are some items specific to kde you might not want.

With this setup, it would be way easier for lazyboy to add its directories (which wouldn’t be added upstream btw, since they’re in /opt).

And if purging locales isn’t pacman’s job indeed, not extracting them in the first place definitively is. ;) There is no point in writing all those files to your disk just to remove then right after. :)

Florian commented on 2017-01-30 14:53

Purging locales isn't pacman's job. Besides needing to have an exhaustive list in your pacman.conf, you'd have to update it every time there is a new package or a package introduces a new locale.

Unix philosophy: Make each program do one thing well. To do a new job, build afresh rather than complicate old programs by adding new "features".

ArchangeGabriel commented on 2017-01-30 14:40

Just curious, people who still use this rather than pacman’s NoExtract, could you tell why?

Florian commented on 2017-01-30 14:23

This website is only for Arch Linux packages. If you want functionality integrated into localepurge, you should contact upstream [1].

[1] http://packages.debian.org/source/sid/localepurge

All comments