maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Localepurge for Diablo. (https://talk.maemo.org/showthread.php?t=24564)

qwerty12 2008-10-26 16:38

Localepurge for Diablo.
 
1 Attachment(s)
This is just a simple script to recover diskspace wasted for unneeded locale files and localized man pages. It will automagically be invoked upon completion of any apt installation run.

Quote:

localepurge: Disk space freed in /usr/share/locale: 22897K
Fixed localepurge to work for maemo thanks to sparr and timeless.

Install pcregrep from http://repository.maemo.org/pool/mae.../free/p/pcre3/ and colour-ls from http://www.nitapps.com/dists/chinook....0-1_armel.deb

After that, install the attached deb.

If you use a language on your device that is not english, it is IMPORTANT that you edit /etc/locale.nopurge and add your locale code there before running localepurge or using apt-get.

After that, run "localepurge && docpurge" in a terminal and watch the diskspace come back :).

qwerty12 2008-10-26 17:02

Re: Localepurge for Diablo.
 
2 Attachment(s)
Here's deborphan too.

Quote:

deborphan finds "orphaned" packages on your system. It determines which packages have no other packages depending on their installation and shows you a list of these packages. It is most useful when finding libraries, but it can be used on packages in all sections.
& Cruft

Quote:


cruft is a program to look over your system for anything that shouldn't be there, but is; or for anything that should be there, but isn't.

It bases most of its results on dpkg's database, as well as a list of `extra files' that can appear during the lifetime of various packages.

cruft is still in pre-release; your assistance in improving its accuracy and performance is appreciated.


gemniii42 2008-10-26 21:07

Re: Localepurge for Diablo.
 
"Incompatible application package" for all. Any suggestions?
/edit - running 4.2008.30-2 and a lot of apps.

qwerty12 2008-10-26 21:38

Re: Localepurge for Diablo.
 
It's because the section isn't user/* so the application manager throws that message. open up a xterm and become root and use dpkg -i <deb> to install :)

Btw, cruft doesn't work properly with busybox find and rm...

peteblack 2008-10-27 00:48

Re: Localepurge for Diablo.
 
Quote:

Originally Posted by qwerty12 (Post 236749)
This is just a simple script to recover diskspace wasted for unneeded locale files and localized man pages.

Looks like it took some of the hildon related locales or l10ns, so I advise anyone to take a backup first.

qwerty12 2008-10-27 03:13

Re: Localepurge for Diablo.
 
That's odd :/. I've still got my hildon-* & osso-* files in /usr/share/locale/en_GB/LC_MESSAGES/. Any specific program not displaying the localised strings? Either way, sorry about what happened.

peteblack 2008-10-27 03:44

Re: Localepurge for Diablo.
 
qwerty12,

Thanks, looks like it was my bad. Just re-ran and it didn't touch my /usr/share/locale/en_US/LC_MESSAGES. Probably misconfigured locale.nopurge.

Question though; I've seen some localepurge that take command line options, such as this Gentoo version.

Code:

localepurge -h
localepurge for Gentoo Linux [ 0.5.3.2 ]
  by bass@gentoo.org

 * Remember that you must edit /etc/locale.nopurge

 * Usage: localepurge [options]

 * -debug (-d)      : debug mode.
 * -help (-h)    : show this help.
 * -list (-l)    : list directories to be cleared
 * -nocolor (-nc)  : no color mode.
 * -pretend (-p)    : pretend mode.
 * -verbose (-v)          : verbose mode.
 * -version      : show version.

Is this deb based on a particular distribution's version or the pure script? I'm too lazy to look in the deb file ;).

Thanks again.
Pete

qwerty12 2008-10-27 06:31

Re: Localepurge for Diablo.
 
Quote:

Originally Posted by peteblack (Post 236878)
qwerty12,

Thanks, looks like it was my bad. Just re-ran and it didn't touch my /usr/share/locale/en_US/LC_MESSAGES. Probably misconfigured locale.nopurge.

Question though; I've seen some localepurge that take command line options, such as this Gentoo version.

Is this deb based on a particular distribution's version or the pure script? I'm too lazy to look in the deb file ;).

Thanks again.
Pete

Yeah, this is based of an (old?) Debian specific localepurge. I'd have offered to update it to a newer one from debian repo's but it seems like running "localepurge -h" on my Ubuntu desktop does nothing.

Regards,
Faheem

allnameswereout 2008-11-25 15:18

Re: Localepurge for Diablo.
 
localepurge: Disk space freed in /usr/share/locale: 14799K

Thats 14+ MB. Thank you!

Munk 2008-11-27 22:39

Re: Localepurge for Diablo.
 
Hmmm, I'm having problems installing "cruft" with an error of "Application packages missing: file"

Any suggestions?


All times are GMT. The time now is 23:42.

vBulletin® Version 3.8.8