You are not logged in.

#1 2007-02-04 05:12:15

aquila_deus
Member
From: Taipei
Registered: 2005-07-02
Posts: 348
Website

Strip locales from apps?

I just did that on some of my packages (trimmed more than 50% of size!). I'm wondering if anyone here use non-english locale? (and why??) If not, stripping all locales could save a lot of spaces since they're the main non-program files after docs.

Offline

#2 2007-02-04 07:31:42

sokuban
Member
Registered: 2006-11-11
Posts: 412

Re: Strip locales from apps?

Hmm how did you strip locales off your apps? Sounds interesting. I do use non english versions of apps but I'll just take away the languages I don't know.

Offline

#3 2007-02-04 09:08:23

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Strip locales from apps?

Won't ever see it happen in the repo, as it's just blantant discrimination for a negligable gain. A lot of people use those other locales, but you dont realise, as many of them browse their respective language forums rather than here.

"There's not many of you, so you don't matter."

File size with packages isnt an issue. bandwidth is not hard to come by for most, and the savings made by stripping locales, would be too insignificant to help those on very low bandwidth connections.

James

Last edited by iphitus (2007-02-04 09:10:27)

Offline

#4 2007-02-04 09:55:12

Stalwart
Member
From: Latvia, Riga
Registered: 2005-10-18
Posts: 445
Website

Re: Strip locales from apps?

Pointless


IRC: Stalwart @ FreeNode
Skype ID: thestalwart
WeeChat-devel nightly packages for i686

Offline

#5 2007-02-04 10:41:59

noriko
Member
From: In My Mind
Registered: 2006-06-09
Posts: 535
Website

Re: Strip locales from apps?

#iphitus +1


The.Revolution.Is.Coming - - To fight, To hunger, To Resist!

Offline

#6 2007-02-04 14:32:06

xabbott
Member
From: orlando, fl
Registered: 2007-01-11
Posts: 56
Website

Re: Strip locales from apps?

You guys get way too defensive. You don't have to strip them in the repos. In Debian there is a tool to do this on the user's machine after the package is installed. You shouldn't assume hard drive space is not an issue for everyone just as you tried to tell the OP not to assume people don't use other locales.

Offline

#7 2007-02-04 14:38:00

test1000
Member
Registered: 2005-04-03
Posts: 834

Re: Strip locales from apps?

How do you strip away the locales? I suppose it would increase the speed of an executable aswell as stripping it's size? Couldn't a stripping operation be performed by a hook in the new pacman3? (user-configurable of course)

Or pacman could ask "Do you want to strip this package? estimated time: 5 seconds smile Y/n" The implementation details are up there.

If that wouldn't work since the stripping would be too timeconsuming then it would be cool to have a mirror (unofficial or official smile) that would also run a stripping script on the packages before inserting them. Atleast one for english should be started smile

good idea aquila_deus!


KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein

Offline

#8 2007-02-04 14:39:35

test1000
Member
Registered: 2005-04-03
Posts: 834

Re: Strip locales from apps?

+1 xabbot


KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein

Offline

#9 2007-02-04 16:24:59

deficite
Member
From: Augusta, GA
Registered: 2005-06-02
Posts: 693

Re: Strip locales from apps?

test1000 wrote:

How do you strip away the locales? I suppose it would increase the speed of an executable aswell as stripping it's size? Couldn't a stripping operation be performed by a hook in the new pacman3? (user-configurable of course)

Or pacman could ask "Do you want to strip this package? estimated time: 5 seconds smile Y/n" The implementation details are up there.

If that wouldn't work since the stripping would be too timeconsuming then it would be cool to have a mirror (unofficial or official smile) that would also run a stripping script on the packages before inserting them. Atleast one for english should be started smile

good idea aquila_deus!

I think a better way of doing that would be by having a flag in pacman.conf that sets whether you want to strip unused locales from your packages when you install them.

I agree that we shouldn't discriminate, but if this could be done during the install process and if the benefits outweigh the cons (such as the time to code this and such) I'm all for it.

edit: Also, with the libification of pacman3, this feature could easily be added to a pacman frontend without having to touch pacman's code at all.

Last edited by deficite (2007-02-04 18:49:30)

Offline

#10 2007-02-07 08:49:03

sokuban
Member
Registered: 2006-11-11
Posts: 412

Re: Strip locales from apps?

xabbot +1

Yea, we ought to have a tool like this. I mean if Arch strips documentation, we ought to at least let us strip locales too. (Doing it in the repos *would* be stupid though.)

Offline

#11 2007-02-07 09:42:31

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Strip locales from apps?

Could we stop this +1 spam? Post only if you have something worthwhile to add guys.

Locales are in $PREFIX/share/locale
on my system with 900 packages, including XFCE, Gnome and KDE:

Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb1             9.2G  4.6G  4.2G  53% /

/usr/share/locale 131M
/opt/kde/share/locale 15M
/opt/gnome/share/locale 99M
/opt/xfce4/share/locale 12M
/share/locale 112K 
=~ 250M, or 5% of my / partition.

I don't think there's enough size there to be worth culling unless you're in a space stricken system. I've got a pretty abnormal and obtuse system with so many packages, so most of you will have far less.

But, if you still think it's worthwhile to strip locales.... the information and locations of the locales are right there. English locales are hardcoded into applications, so it should be safe to remove those, but don't quote me - i could be wrong.

James

Offline

#12 2007-02-07 14:17:40

rabid_dog
Member
Registered: 2006-06-07
Posts: 23

Re: Strip locales from apps?

aquila_deus wrote:

I just did that on some of my packages (trimmed more than 50% of size!). I'm wondering if anyone here use non-english locale? (and why??) If not, stripping all locales could save a lot of spaces since they're the main non-program files after docs.

Yes, I use russian locales, ru_RU.KOI8R and ru_RU.UTF8 at least.
Stripping locales is absolutely unneeded, disk space costs cents, and those who have bad or expensive inernet connection just not use Arch.
If you have tiny HDD you can install minimalistic distro, I recommend Zenwalk.
If you cannot do pacman -Su regularry - install some distro with hard releases, on dvd, and regularily buy dvds.

simple, isn' it? smile

Offline

#13 2007-02-07 14:27:46

rabid_dog
Member
Registered: 2006-06-07
Posts: 23

Re: Strip locales from apps?

Again, i found Arch's devs idea to not sypply docs with programs quite weird.
Now, I must download docs separately.
Howewer, once you have learned, you rarely need docs.

Offline

#14 2007-02-22 22:44:31

GogglesGuy
Member
From: Rocket City
Registered: 2005-03-29
Posts: 610
Website

Re: Strip locales from apps?

Since I'm not using 99% of all locales (except the one I'm using) I think it would make sense to have a utility that strips the unused ones. 250 mb is a lot if you're running out of space smile

Offline

#15 2007-02-23 11:54:31

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Strip locales from apps?

I usually don't have more than 80 MB free on my Arch partition so I'm always deleting locales after larger updates, but I don't see any need to strip the repo packages or even for a pacman function. A dedicated tool would be something like a 10-lines bash script, so feel free to write one ("User Contributions").


1000

Offline

#16 2007-03-04 23:52:03

gunnix
Member
Registered: 2005-11-11
Posts: 102
Website

Re: Strip locales from apps?

localepurge in debian does this during install of new packages.

Also removing unneeded files from /usr/man would give quite much extra free hd space.


As is true for most people I know, I've always loved learning. As is also true for most people I know, I always hated school. Why is that?

Offline

#17 2009-06-19 02:30:54

nolochemical
Member
From: St. catharines, Ontario,Canada
Registered: 2009-05-25
Posts: 18
Website

Re: Strip locales from apps?

Hey,

Hate to whip to dead horse, but is it okay to rip out unused locales from '/usr/share/locale'.. its reached nearly 350mb approx 8.9mb each .. please advise.

~nolo


We may only attempt to reverse engineer the future.. for now.
walls/screens|.conkyrc

Offline

#18 2009-06-19 03:37:11

Maki
Member
From: Skopje, Macedonia
Registered: 2007-10-16
Posts: 353
Website

Re: Strip locales from apps?

A tool that will remove all the unneeded locale's = Good. Removing locale's from package's is to much of a hassle = Bad.


If it ain't broke, broke it then fix it.

Offline

#19 2009-06-19 03:52:40

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: Strip locales from apps?

You can probably use http://aur.archlinux.org/packages.php?ID=11975
although i havent tested so i cant vouch for the results.


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#20 2009-06-19 05:59:14

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Strip locales from apps?

Do not reanimate zombie threads. This one died peacefully in its sleep over two years ago, in case you hadn't noticed.

If you want to continue the discussion, start a new thread and link to this one.

Closed.

Offline

Board footer

Powered by FluxBB