1FEBOOTSTRAP-MINIMIZE(8)     Virtualization Support     FEBOOTSTRAP-MINIMIZE(8)
2
3
4

NAME

6       febootstrap-minimize - Minimize an febootstrap image
7

SYNOPSIS

9        febootstrap-minimize [--options] DIR
10

DESCRIPTION

12       febootstrap-minimize minimizes an febootstrap(8)-created filesystem.
13       This means that unneeded files and cruft are removed from the image.
14
15       If no options are given, the default is to minimize the image as much
16       as possible.  This means, for example, that locales are removed so the
17       image will only be usable in US-English, there will be no documentation
18       or manual pages, and the image will only work in a UTC timezone.
19
20       Note that image minimization involves deleting files that have been
21       installed by RPM.  Thus after minimization, it is no longer guaranteed
22       that RPM will function correctly on the image.  You should only do this
23       as a final step for "throwaway" appliances that do not need to be
24       modified or upgraded in future.
25

OPTIONS

27       --all
28           Perform all minimization operations, to produce the smallest
29           possible image.  Note in particular that locales are discarded.
30
31           You can perform all minimization operations except X, Y and Z by
32           doing:
33
34            febootstrap-minimize --all --keep-X --keep-Y --keep-Z ...
35
36           ("--all" can be omitted since it is the default).
37
38       --none
39           Start with no minimization operations.  You can specify only
40           minimization operations X, Y and Z like this:
41
42            febootstrap-minimize --none --drop-X --drop-Y --drop-Z ...
43
44       --keep-locales
45       --drop-locales
46           Keep or drop locale support.
47
48       --keep-docs
49       --drop-docs
50           Keep or drop documentation, man pages and info files.
51
52       --keep-cracklib
53       --drop-cracklib
54           Keep or drop cracklib libraries.
55
56       --keep-i18n
57       --drop-i18n
58           Keep or drop "/usr/share/i18n".
59
60       --keep-zoneinfo
61       --drop-zoneinfo
62           Keep or drop all timezones (except UTC which is never deleted).
63
64       --keep-rpmdb
65       --drop-rpmdb
66           Keep or drop the RPM and YUM package databases.  Obviously RPM and
67           YUM will be completely non-functional if you drop these.
68
69       --keep-yum-cache
70       --drop-yum-cache
71           Keep or drop the yum cache.  Note that febootstrap(8) has already
72           deleted this directory unless you ran it with the "--no-clean"
73           option.
74
75       --keep-services
76       --drop-services
77           Keep or drop the "/etc/services" file.  If dropped, this file is
78           replaced with a very minimal one which just lists the most common
79           services.  For less common services you will have to refer to them
80           by port number instead of name.
81
82       --keep-sln
83       --drop-sln
84           Keep or drop "/sbin/sln" (statically linked "ln").  This is not
85           really required in minimal appliances.
86
87       --keep-ldconfig
88       --drop-ldconfig
89           Keep or drop "/sbin/ldconfig", "/etc/ld.so.cache" and
90           "/var/cache/ldconfig" (the dynamic linking cache).  This is not
91           needed.  Dynamic linking during program execution will be
92           marginally slower.
93
94       --pack-executables
95           This option has been removed in febootstrap 2.5.  In previous
96           versions it was used to pack executables using the external "upx"
97           program.  However it was not enabled by default and never worked
98           very effectively.
99

TODO

101       ·   Deduplicate files with the same content (by hardlinking them).  See
102           the program hardlink(1).
103
104       ·   Remove unused binaries.
105
106       ·   Remove unused libraries.
107

SEE ALSO

109       febootstrap(8).
110

AUTHORS

112       Richard W.M. Jones <rjones @ redhat . com>
113
115       (C) Copyright 2009 Red Hat Inc.,
116       <http://people.redhat.com/~rjones/febootstrap>.
117
118       This program is free software; you can redistribute it and/or modify it
119       under the terms of the GNU General Public License as published by the
120       Free Software Foundation; either version 2 of the License, or (at your
121       option) any later version.
122
123       This program is distributed in the hope that it will be useful, but
124       WITHOUT ANY WARRANTY; without even the implied warranty of
125       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
126       General Public License for more details.
127
128       You should have received a copy of the GNU General Public License along
129       with this program; if not, write to the Free Software Foundation, Inc.,
130       675 Mass Ave, Cambridge, MA 02139, USA.
131
132
133
134febootstrap-2.9                   2010-09-17           FEBOOTSTRAP-MINIMIZE(8)
Impressum