Active Topics

 



Notices


Reply
Thread Tools
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#1
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.

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, 1031 views)
 

The Following 13 Users Say Thank You to qwerty12 For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#2
Here's deborphan too.

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


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, 296 views)
File Type: deb cruft_0.9.11_armel.modfied.deb (43.3 KB, 253 views)

Last edited by qwerty12; 2008-10-26 at 17:11.
 

The Following 8 Users Say Thank You to qwerty12 For This Useful Post:
Posts: 833 | Thanked: 124 times | Joined on Nov 2007 @ Based in the USA
#3
"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.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#4
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...
 
Posts: 19 | Thanked: 5 times | Joined on Oct 2008
#5
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.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#6
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.
 
Posts: 19 | Thanked: 5 times | Joined on Oct 2008
#7
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's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#8
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
 

The Following 2 Users Say Thank You to qwerty12 For This Useful Post:
allnameswereout's Avatar
Posts: 3,397 | Thanked: 1,212 times | Joined on Jul 2008 @ Netherlands
#9
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!
 
Munk's Avatar
Posts: 229 | Thanked: 108 times | Joined on Oct 2007 @ Sacramento, California
#10
Hmmm, I'm having problems installing "cruft" with an error of "Application packages missing: file"

Any suggestions?
 
Reply


 
Forum Jump


All times are GMT. The time now is 17:52.