Differences between revisions 18 and 19
Revision 18 as of 2008-01-06 20:20:37
Size: 957
Editor: MarkHobley
Comment:
Revision 19 as of 2008-09-13 17:18:26
Size: 2872
Editor: FranklinPiat
Comment: Merged small subpages here.
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
 * NonCriticalPackages Removing non-critical packages == Removing non-critical packages ==
Except essential packages {{{aptitude search '!?essential'}}}, you can remove what you don't need.
Line 7: Line 8:
 * SmallReplacements Replace packages with smaller equivalents  * Replace packages with smaller equivalents : * DebPkg:debconf-english (replaces debconf-il8n)
  * DebPkg:levee (replaces nvi and vim-tiny)
  * DebPkg:lpr replaces lpr-ng or CUPS)
  * DebPkg:madplay (replaces mpg123, mpg321 and mp3-decoder)
  * DebPkg:mutt (replaces GUI MailUserAgent: Evolution, Thunderbird)
  * DebPkg:setmixer (replaces aumix)
  * DebPkg:slrn, DebPkg:tin (replaces GUI Usenet NewsReader)
  * DebPkg:irssi (replaces GUI IRC clients)
  * DebPkg:jed, DebPkg:xjed (replaces Emacs)
  * DebPkg:w3m, DebPkg:lynx, DebPkg:links (replaces GUI WebBrowser)
  * DebPkg:dash (replaces bash, this currently breaks)
Line 9: Line 20:
 * LocalePurge Remove unnecessary locale files. The introduction of LanguagePacks may also help in reducing the size of the installation footprint.
Line 11: Line 21:
 * ManForeignPurge Remove foreign language man files == Remove unnecessary locale files ==
The introduction of LanguagePacks may also help in reducing the size of the installation footprint.
  It is recommended that the number of [:Locale:locale] configurations installed is kept to a minimum. By limiting the number of locale files built you can save 90% of the space taken up by storing these systems on your system and saves the compilation time for building the locale settings for each package. A side effect or reducing the number of locale options is that the compilation of the glibc library gets a lot faster.
Line 13: Line 25:
 * CopyrightPurge Remove copyright files == Remove foreign language man files ==
  With appropriate privileges, it is possible to remove the foreign man pages as follows:
  {{
rm -rf /usr/share/man/??
rm -rf /usr/share/man/??_*
}}
  Note: There is also a purgelocales package that will remove the man pages, but that destroys the package management and package building systems.
Line 15: Line 33:
 * ["RebuildTCC"] Rebuilding packages using the Tiny C Compiler
Line 17: Line 34:
 * ["ReduceCUPS"] Remove unnecessary cups dependencies == Removing copyright files ==
  With appropriate privileges, it is possible to remove the copyright files as follows:
  {{rm /usr/share/doc/*/copyright*}}
Line 19: Line 38:
 * SmallKernel Build a smaller kernel using fewer options == Rebuilding packages using the Tiny C Compiler ==
Line 21: Line 40:
 * "ScrollKeeperPurge" Remove foreign language scrollkeeper files == Remove unnecessary cups dependencies ==
Line 23: Line 42:
 * ["ReduceX"] Reduce the size of the X installation footprint   During installation of DebPkg:cupsys, the Debian installer may attempt to drag in unnecessary package dependencies. The cupsys daemon can function without these optional components, and they can be deselected from installation:
  * DebPkg:cupsys-client
  * DebPkg:cupsys-bsd
  * DebPkg:cupsys-driver-gutenprint
  * DebPkg:cupsys-pdf
  * DebPkg:foomatic-filters
  * DebPkg:hplip
  * DebPkg:smclient

== SmallKernel Build a smaller kernel using fewer options ==

== Reduce the size of the X installation footprint ==
   You can remove the packages xserver-xorg-video-* that you don't use. you should still keep xserver-xorg-video-vesa.

Reducing the size of the Debian Installation Footprint

It may be useful to reduce the size of the installation footprint on Embedded systems, or on older computers or laptops with limited drive space, or in cases where a small installation is preferred.

Removing non-critical packages

Except essential packages aptitude search '!?essential', you can remove what you don't need.

  • Replace packages with smaller equivalents : * debconf-english (replaces debconf-il8n)

    • levee (replaces nvi and vim-tiny)

    • lpr replaces lpr-ng or CUPS)

    • madplay (replaces mpg123, mpg321 and mp3-decoder)

    • mutt (replaces GUI ?MailUserAgent: Evolution, Thunderbird)

    • setmixer (replaces aumix)

    • slrn, tin (replaces GUI Usenet ?NewsReader)

    • irssi (replaces GUI IRC clients)

    • jed, xjed (replaces Emacs)

    • w3m, lynx, links (replaces GUI ?WebBrowser)

    • dash (replaces bash, this currently breaks)

Remove unnecessary locale files

The introduction of ?LanguagePacks may also help in reducing the size of the installation footprint.

  • It is recommended that the number of [:Locale:locale] configurations installed is kept to a minimum. By limiting the number of locale files built you can save 90% of the space taken up by storing these systems on your system and saves the compilation time for building the locale settings for each package. A side effect or reducing the number of locale options is that the compilation of the glibc library gets a lot faster.

Remove foreign language man files

  • With appropriate privileges, it is possible to remove the foreign man pages as follows: {{

rm -rf /usr/share/man/?? rm -rf /usr/share/man/??_* }}

  • Note: There is also a purgelocales package that will remove the man pages, but that destroys the package management and package building systems.

  • With appropriate privileges, it is possible to remove the copyright files as follows:

    rm /usr/share/doc/*/copyright*

Rebuilding packages using the Tiny C Compiler

Remove unnecessary cups dependencies

SmallKernel Build a smaller kernel using fewer options

Reduce the size of the X installation footprint

  • You can remove the packages xserver-xorg-video-* that you don't use. you should still keep xserver-xorg-video-vesa.