Go Back   maemo.org - Talk > Software > Applications
 
Register FAQ Community Calendar Today's Posts Search

Notices

Reply
 
Thread Tools
  #1  
Old 2008-10-26, 16:38
qwerty12's Avatar
qwerty12 qwerty12 is offline
 
Join Date: Sep 2007
Location: Looking at y'all and sighing
Posts: 4,274
Thanks!: 5,528
Thanked 5,358 Times in 1,954 Posts
Default Localepurge for Diablo.

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 .
Attached Files
File Type: deb localepurge_0.5.8_all.modfied.modfied.deb (20.6 KB, 1010 views)
Reply With Quote
The Following 13 Users Say Thank You to qwerty12 For This Useful Post:
  #2  
Old 2008-10-26, 17:02
qwerty12's Avatar
qwerty12 qwerty12 is offline
 
Join Date: Sep 2007
Location: Looking at y'all and sighing
Posts: 4,274
Thanks!: 5,528
Thanked 5,358 Times in 1,954 Posts
Default Re: Localepurge for Diablo.

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.
Attached Files
File Type: deb deborphan_1.7.27_armel.modfied.deb (17.6 KB, 280 views)
File Type: deb cruft_0.9.11_armel.modfied.deb (43.3 KB, 230 views)

Last edited by qwerty12; 2008-10-26 at 17:11.
Reply With Quote
The Following 8 Users Say Thank You to qwerty12 For This Useful Post:
  #3  
Old 2008-10-26, 21:07
gemniii42 gemniii42 is offline
 
Join Date: Nov 2007
Location: Based in the USA
Posts: 833
Thanks!: 95
Thanked 124 Times in 105 Posts
Default Re: Localepurge for Diablo.

"Incompatible application package" for all. Any suggestions?
/edit - running 4.2008.30-2 and a lot of apps.
__________________
N810, iGo bt kb, Diablo, 10Gb storage onboard instead of a Thinkpad
OTG w/ unlimited storage!!
Put a penguin in your pocket!!
PLEASE use the Wiki

Last edited by gemniii42; 2008-10-26 at 21:17.
Reply With Quote
  #4  
Old 2008-10-26, 21:38
qwerty12's Avatar
qwerty12 qwerty12 is offline
 
Join Date: Sep 2007
Location: Looking at y'all and sighing
Posts: 4,274
Thanks!: 5,528
Thanked 5,358 Times in 1,954 Posts
Default 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...
Reply With Quote
  #5  
Old 2008-10-27, 00:48
peteblack peteblack is offline
 
Join Date: Oct 2008
Posts: 19
Thanks!: 50
Thanked 5 Times in 3 Posts
Default Re: Localepurge for Diablo.

Quote:
Originally Posted by qwerty12 View Post
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.
Reply With Quote
  #6  
Old 2008-10-27, 03:13
qwerty12's Avatar
qwerty12 qwerty12 is offline
 
Join Date: Sep 2007
Location: Looking at y'all and sighing
Posts: 4,274
Thanks!: 5,528
Thanked 5,358 Times in 1,954 Posts
Default 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.
Reply With Quote
  #7  
Old 2008-10-27, 03:44
peteblack peteblack is offline
 
Join Date: Oct 2008
Posts: 19
Thanks!: 50
Thanked 5 Times in 3 Posts
Default 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
Reply With Quote
  #8  
Old 2008-10-27, 06:31
qwerty12's Avatar
qwerty12 qwerty12 is offline
 
Join Date: Sep 2007
Location: Looking at y'all and sighing
Posts: 4,274
Thanks!: 5,528
Thanked 5,358 Times in 1,954 Posts
Default Re: Localepurge for Diablo.

Quote:
Originally Posted by peteblack View Post
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
Reply With Quote
The Following 2 Users Say Thank You to qwerty12 For This Useful Post:
  #9  
Old 2008-11-25, 15:18
allnameswereout's Avatar
allnameswereout allnameswereout is offline
 
Join Date: Jul 2008
Location: Netherlands
Posts: 3,397
Thanks!: 1,762
Thanked 1,212 Times in 748 Posts
Default Re: Localepurge for Diablo.

localepurge: Disk space freed in /usr/share/locale: 14799K

Thats 14+ MB. Thank you!
__________________
Goosfraba! All text written by allnameswereout is public domain unless stated otherwise. Thank you for sharing your output!
Reply With Quote
  #10  
Old 2008-11-27, 22:39
Munk's Avatar
Munk Munk is offline
 
Join Date: Oct 2007
Location: Sacramento, California
Posts: 229
Thanks!: 239
Thanked 108 Times in 39 Posts
Default Re: Localepurge for Diablo.

Hmmm, I'm having problems installing "cruft" with an error of "Application packages missing: file"

Any suggestions?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 21:21.