Package Details: localepurge 0.7.3.11-1

Git Clone URL: https://aur.archlinux.org/localepurge.git (read-only, click to copy)
Package Base: localepurge
Description: Script to remove disk space wasted for unneeded localizations.
Upstream URL: http://packages.debian.org/source/sid/localepurge
Keywords: locales
Licenses: GPL
Submitter: None
Maintainer: eddie_vs
Last Packager: eddie_vs
Votes: 262
Popularity: 0.022778
First Submitted: 2007-07-08 16:29 (UTC)
Last Updated: 2024-11-23 15:11 (UTC)

Latest Comments

1 2 3 4 5 6 .. 9 Next › Last »

Schnouki commented on 2022-09-20 12:21 (UTC) (edited on 2022-09-20 12:21 (UTC) by Schnouki)

@m040601 There's a bug report here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1019494

Until it's fixed upstream, a simple sed replacement is enough to fix it locally:

sudo sed -i 's/fgrep/grep -F/g' /usr/bin/localepurge

Would be nice to have it built into the script, though :)

m040601 commented on 2022-09-10 07:24 (UTC)

This is a usefull tool, and as far as I know the only one of it's kind in the AUR.

As of September 2022, GNU has updated "grep" deprecating the use of "egrep" and "fgrep".

Since this tool, "localepurge" is basically written as a bash script making use of those commands, in /usr/bin/localepurge

 30     if fgrep --quiet --line-regexp NEEDSCONFIGFIRST $NOPURGECONF ; then
 57 if fgrep --quiet --line-regexp DONTBOTHERNEWLOCALE $NOPURGECONF; then
 61 if fgrep --quiet --line-regexp SHOWFREEDSPACE $NOPURGECONF; then
 65 if fgrep --quiet --line-regexp MANDELETE $NOPURGECONF; then
 69 if fgrep --quiet --line-regexp VERBOSE $NOPURGECONF \
168     if fgrep --quiet --line-regexp QUICKNDIRTYCALC $NOPURGECONF; then

You now get this warning/error message when running "localepurge"

fgrep: warning: fgrep is obsolescent; using grep -F

So this probably needs to be reported to the,

Upstream URL:   http://packages.debian.org/source/sid/localepurge

Basher52 commented on 2022-06-28 16:57 (UTC) (edited on 2022-06-28 16:58 (UTC) by Basher52)

NICE! Was just looking to remove them all by hand but started a search if that was possible and found this so I saved s lot of time.

vinibali commented on 2021-04-10 06:05 (UTC)

Hi! Is there any chance for the URL change? As others mentioned previously it's broken atm. Regards

adlerweb commented on 2020-11-07 10:49 (UTC)

Note that 0.7.3.8 is now 404ed in favor of 0.7.3.10, however arch-patches would have to be updated for this version first. You can still get the previous version by changing the PKGBUILD source to http://snapshot.debian.org/archive/debian/20190901T090537Z/pool/main/l/localepurge/localepurge_0.7.3.8.tar.xz

I second the idea of Ruben for a script to simplify transition, however - if I understand correctly - this can only replace a part of localepurge since it will not remove locales from already installed packages and is as such not able to instantly free up space.

RubenKelevra commented on 2020-04-16 22:10 (UTC) (edited on 2020-04-16 22:11 (UTC) by RubenKelevra)

I think we should remove this package, for discussed reasons.

But a simple script replacement would be nice, which starts once after installation/update and which will automatically generate the NoExtract rules based on your /etc/locale.conf and add an Include in the pacman.conf to the generated NoExtract rules-file.

This would allow rewriting this config file when there are new paths or new locales added/removed.

Sausad commented on 2020-04-11 16:19 (UTC)

As a simple basic user, localepurge is far more convenient and I am glad to use it. I went to see how to use NoExtract : https://wiki.archlinux.org/index.php/Pacman/Tips_and_tricks#Installing_only_content_in_required_languages All I see is an far more complicated way to configure. And no clue about how to keep multiple locale. And a Warning advising against. On another side, localepurge use the same simple syntax as locale.gen ...

Archange commented on 2019-08-08 15:08 (UTC)

I’ll remove it, but I would like to find a place in the wiki for the NoExtract rules to use instead of it.