[go: up one dir, main page]

File: localepurge.8

package info (click to toggle)
localepurge 0.7.3.4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 384 kB
  • ctags: 11
  • sloc: sh: 464; perl: 88; makefile: 5
file content (152 lines) | stat: -rw-r--r-- 4,154 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
.TH LOCALEPURGE 8
.SH NAME
localepurge \- reclaim disk space removing unneeded localizations
.SH SYNOPSIS
.B localepurge
.br
.SH "DESCRIPTION"
.BR localepurge
is a small script to recover disk space wasted for unneeded locale  
files and localized man pages. It will be automagically invoked by 
.BR dpkg 
upon completion of any 
.BR apt  
installation run.   You have to define the locale
directory names you want to keep from removal after each 
.BR apt 
installation run
in the 
.BR /etc/locale.nopurge
configuration file.  Unless 
.BR localepurge
has been adequately configured, the system's localization files
won't be touched at all.
.br
The contents of following directories will be affected from removals:
.br
.BR \-\ /usr/share/doc/kde/HTML
.br
.BR \-\ /usr/share/gnome/help
.br
.BR \-\ /usr/share/locale
.br
.BR \-\ /usr/share/man
.br
.BR \-\ /usr/share/omf
.br
The localization files you actually need and which you want to be preserved on your system can be
easily configured by running the following command:
.br
.BR dpkg-reconfigure\ localepurge
.br
.SH OPTIONS
The configurable options consist of toggling verbose output, reporting a
summary of freed space, and deletion of localized manual pages in
addition to locale files.  All actions are specified in the
.BR /etc/locale.nopurge 
configuration file.
.br
For detailed debugging the commandline switch 
.BR -debug 
or just a short
.BR -d
instead are available for usage.
For verbose output the commandline switch 
.BR -verbose
or just a short
.BR -v
can be added.
.SH "A Word of CAUTION"
Please note, that 
.BR this
.BR tool
.BR is
.BR a
.BR hack
.BR which
.BR is
.BR not
.BR integrated
.BR with
.BR Debian's
.BR package
.BR management
.BR system 
and therefore is not meant for the faint of heart.  Responsibility for its 
usage and possible breakage of your system therefore lies in the sysadmin's 
(your) hands.
.br
Please definitely do abstain from reporting any bugs blaming localepurge if 
.BR you
break your system by using it. If you don't know what you are doing and 
can't handle any resulting breakage on your own then please simply don't 
use it.
.br
All locale directories containing a subdirectory named LC_MESSAGES
which are either commented out or not even listed at all in
.BR /etc/locale.nopurge 
will be irreversibly deleted.  The only way to
reinstall any lost locales is a complete reinstallation of all the
Debian packages containing them. See 
.BR /usr/share/doc/localepurge/reinstall_debs.sh
for a recipe.
Alternatively you can reconfigure
it with
.BR dpkg-reconfigure(8)
to prevent locale files from being purged during subsequent runs of apt.
.br
.SH SOLVING PROBLEMS caused by localepurge
This program does interfere with the Debian package management and does 
provoke strange, but usually harmless, behaviour of programs related 
with 
.BR apt/dpkg 
like 
.BR dpkg-repack(1), 
.BR debsums(1), 
.BR reportbug(1), 
etc. 
If you need to have any package in its full integrity so that e.g. the 
formerly mentioned programs work as designed by its author and as 
expected by you, simply deinstall 
.BR localepurge 
temporarily without purging its configuration and reinstall the packages
you need in their fully integral state. When you are done with what you
needed the integral packages for simply reinstall
.BR localepurge 
again.

.SH FILES
.BR /etc/locale.nopurge
.SH SEE ALSO
Administrators of systems with short disk space should have a look
at both the 
.BR deborphan 
and 
.BR debfoster 
packages. Especially 
.BR debfoster 
can work wonders for your scarce disk space!

.br
.BR deborphan(1)
.br
.BR debfoster(8)
.br
.BR dpkg-reconfigure(8)
.br
.BR debconf(8) 
.br
.BR /usr/share/doc/localepurge/README.debian
.br
.BR /usr/share/doc/localepurge/reinstall_debs.sh
.SH AUTHOR
.BR localepurge
and its accompanying manual page was written for the 
.BR Debian
.BR GNU/Linux 
system by Paul Seelig <pseelig@debian.org> with major contributions
from Gustavo Noronha Silva <kov@debian.org> and Francesco Potortì.
The author sincerely hopes that some day further development of
Debian's great package management system will make
.BR localepurge
fully obsolete.