Rootserver Sponsor

webtropia"

Donations

Please support your operating system's further development:

donate"

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
LatOffline
Post subject: localpurge vs /etc/dpkg/dpkg.cfg.d/excludes  PostPosted: 21.09.2013, 12:43



Joined: 2010-09-19
Posts: 205

Status: Offline
I know the use of localpurge isn't encourage. Would the use of path-exclude and path-include with dpkg[1] the same danger?

      Code:
cat /etc/dpkg/dpkg.cfg.d/excludes

# Drop locales except English
path-exclude=/usr/share/locale/*
path-include=/usr/share/locale/en/*
path-include=/usr/share/locale/en_US/*
path-include=/usr/share/locale/locale.alias

# Drop all translated manual pages
path-exclude=/usr/share/man/*
path-include=/usr/share/man/man[1-9]/*


All the locales and manuals use a third of a gigabyte
      Code:
du /usr/share/man /usr/share/locale/ -hs
37M   /usr/share/man
341M   /usr/share/locale/


While just the English locales is a quarter of a megabyte
      Code:
du /usr/share/locale/en /usr/share/locale/en_US/ -sh
252K   /usr/share/locale/en
20K   /usr/share/locale/en_US/


[1]This was based from Save disk space by excluding useless files with dpkg
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: localpurge vs /etc/dpkg/dpkg.cfg.d/excludes  PostPosted: 21.09.2013, 17:19



Joined: 2010-08-25
Posts: 962

Status: Offline
Given today's disk sizes, even in the light of smaller SSDs, I don't consider messing with locales is worth it (nor was it before).

However given the choice between two potentially lethal poisons, dpkg's path-{exclude,include} is definately a saner choice.
 
 View user's profile Send private message  
Reply with quote Back to top
DonKultOffline
Post subject: RE: localpurge vs /etc/dpkg/dpkg.cfg.d/excludes  PostPosted: 21.09.2013, 22:29
Team Member


Joined: 2010-09-02
Posts: 485

Status: Offline
I am using it sometimes and never hit a problem so far, but as slh already said its usually not worth it.

My usecase for it are systems which operate from flashcards (becoming less of an issue now that I can afford even >=8GB microsd cards) or internal flash (does usually not grow – and my hardware is old and squeezing Debian into 256-512MB can be hard, so being able to drop stuff I don't need on those is great.

So if you have more than 10GB on your disk, stop thinking about it, the savings aren't big enough. If you have less (and especially far less) it might be an option, but even then there is usually a simpler/better way. Just think about what an MB costs you on average if you buy it in a store vs. how much time you have to invest to free some MBs this way.

_________________
MfG. DonKult
"I never make stupid mistakes. Only very, very clever ones." ~ The Doctor
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
LatOffline
Post subject: RE: localpurge vs /etc/dpkg/dpkg.cfg.d/excludes  PostPosted: 23.09.2013, 23:55



Joined: 2010-09-19
Posts: 205

Status: Offline
Thank you both, I really appreciate it
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio