
Mass Rebuilding
---------------

  As the debian-builder command will only build a single package at
 a time there will need to be some extra work in rebuilding a complete
 distribution.

  There are two things that you can do to start the process off easily,
 using the included files:

	1.  Rebuild the 'base' distribution.
	2.  Rebuild all dependencies of a program.



Base distribution
-----------------

  When a Debian installation is installed upon a computer there 
 are several packages which are always included.

  These are the "base" packages, contained in the section "base"
 of the archive, and given the priority "required".

  If you wish to rebuild these you could use something like the
 following (assuming your shell is bash):


     cd /usr/share/doc/debian-builder/examples
     for i in `./getBasePackages `; do debian-builder --verbose $i; done



Dependencies
------------

  Perhaps you wish to rebuild Apache?  

  That's simple:

	debian-builder apache

  However the Apache package you build will rely upon more packages,
 the C runtime, etc.

  If you wish to rebuild a package it makes sense to handle them too,
 (note that this doesn't avoid rebuilding dependencies you have already
 built):


	cd /usr/share/doc/debian-builder/examples
	debian-builder --verbose apache
	for i in `./getRequired apache `; do debian-builder --verbose $i; done

  Note that recursive dependencies are not handled with this simplistic 
 system.


Steve
--