According to the manpage
localepurge is a small script to recover disk space wasted for unneeded locale files and localized man pages. It will be automagically invoked by dpkg upon completion of any apt installation run. You have to define the locale directory names you want to keep from removal after each apt installation run in the /etc/locale.nopurge configuration file. Unless localepurge has been adequately configured, the system's locale directories won't be touched at all.
Any other directory (or file) in /usr/share/locale not containing a subdirectory named LC_MESSAGES will be discreetly ignored.
Does this mean it only affects /usr/share/locale??
And a note on configuring it:
The configurable options consist of toggling verbose output, reporting a summary of freed space, and deletion of localized manual pages in addition to locale files. All actions are specified in the /etc/locale.nopurge configuration file. Since localepurge uses debconf for storing its configuration data its configuration should only be done via dpkg-reconfigure(8) as outlined below. If not done via debconf(8) any manual entries will be irreversibly lost after an upgrade or reinstallation of the package.
For detailed debugging the commandline switch -debug or just a short -d instead are available for usage. For verbose output the commandline switch -verbose or just a short -v can be added.
Based on the above, I would run it with the debug option and see if it tells you what directories it is checking.
|