Differences between revisions 9 and 10
Revision 9 as of 2008-12-26 22:06:22
Size: 2380
Editor: FranklinPiat
Comment: add link to "Installation Guide"'s Install from from a Unix/Linux System.
Revision 10 as of 2009-03-10 02:00:17
Size: 2449
Editor: GeoffSimmons
Comment: Add Etch example, amend Sarge example, formatting.
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
= Debootstrap =
Line 6: Line 4:
= Debootstrap =
Line 7: Line 6:
Debootstrap is a tool which will install a Debian base system into a subdirectory of another, already installed system. It doesn't require an install cd, just access to a Debian Repository. It can also be installed and run from another os, so, for instance, you can use debootstrap to install debian onto an unused partition from a running Gentoo install. DebPkg:debootstrap is a tool which will install a Debian base system into a subdirectory of another, already installed system. It doesn't require an installation CD, just access to a Debian [:What_is_a_repository?:repository]. It can also be installed and run from another operating system, so, for instance, you can use debootstrap to install Debian onto an unused partition from a running Gentoo install.
Line 9: Line 8:
If you are interested in setting up a ["chroot"] for building Debian packages, look at ["PBuilder"]. If you are interested in setting up a ["chroot"] for building Debian packages, look at DebPkg:pbuilder.
Line 11: Line 10:
The debootstrap package page is DebPkg:debootstrap

Since DebianTesting and DebianUnstable change rapidly, if you are going to attempt to install DebianTesting or DebianUnstable, it is recommended that you download the latest version of debootstrap from the package page above and use that. Normally it would not be wise to install a package from unstable onto stable, but in this case it's safe, since debootstrap is really just a shell script and its dependencies are minimal.
Since DebianTesting and DebianUnstable change rapidly, if you are going to attempt to install DebianTesting or DebianUnstable, it is recommended that you download the latest version of debootstrap from the [wiki:DebPkg:debootstrap package page] and use that. Normally it would not be wise to install a package from unstable onto stable, but in this case it's safe, since debootstrap is really just a shell script and its dependencies are minimal.
Line 17: Line 14:
(from the debootstrap manpage)
{{{
       To setup a sarge system:
{i} To locate a mirror near you, see the list of [http://www.debian.org/mirror/list Debian worldwide mirror sites].
Line 21: Line 16:
       # debootstrap sarge ./sarge-chroot http://ftp.debian.org/debian To setup an [:DebianEtch:Etch] system: {{{
# debootstrap etch ./etch-chroot http://ftp.us.debian.org/debian
}}}
Line 23: Line 20:
       # debootstrap sarge ./sarge-chroot file:///PATH_TO_LOCAL_MIRROR/debian To setup a [:DebianSarge:Sarge] system: {{{
# debootstrap sarge ./sarge-chroot http://archive.debian.org/debian
}}}
Line 25: Line 24:
       Full process to create a complete Debian installation of sid (unstable):

            
main # cd / ; mkdir /sid-root
            main # debootstrap sid /sid-root http://ftp.debian.org/debian/
            [ ... watch it download the whole system ]
            main # echo "proc /sid-root/proc proc none 0 0" >> /etc/fstab
            main # mount proc /sid-root/proc -t proc
            main # cp /etc/hosts /sid-root/etc/hosts
            main # chroot /sid-root /bin/bash
            chroot # dselect
            
[ you may use aptitude, install mc and vim ... ]
             main # echo "8:23:respawn:/usr/sbin/chroot /sid-root " \
                    "/sbin/getty 38400 tty8" >> /etc/inittab
            [ define a login tty that will use this system ]
             main # init q
            [ reload init ]
Full process to create a complete Debian installation of sid ([:DebianUnstable:unstable]): {{{
main # cd / ; mkdir /sid-root
main # debootstrap sid /sid-root http://ftp.us.debian.org/debian/
[ ... watch it download the whole system ]
main # echo "proc /sid-root/proc proc none 0 0" >> /etc/fstab
main # mount proc /sid-root/proc -t proc
main # cp /etc/hosts /sid-root/etc/hosts
main # chroot /sid-root /bin/bash
chroot # dselect
[ you may use aptitude, install mc and vim ... ]
 main # echo "8:23:respawn:/usr/sbin/chroot /sid-root " \
        "/sbin/getty 38400 tty8" >> /etc/inittab
[ define a login tty that will use this system ]
 main # init q
[ reload init ]
Line 44: Line 42:
 * Debian GNU/Linux Installation Guide : ''Installing Debian GNU/Linux from a Unix/Linux System'' ~-[[BR]]. [http://www.debian.org/releases/testing/i386/apds03.html] -~  * [http://manpages.debian.org/man/8/debootstrap debootstrap(8)] manpage
 *
Debian GNU/Linux Installation Guide : ''Installing Debian GNU/Linux from a Unix/Linux System'' ~-[[BR]]. [http://www.debian.org/releases/testing/i386/apds03.html] -~

Translation(s): [:fr/Debootstrap:Français]


Debootstrap

Introduction

debootstrap is a tool which will install a Debian base system into a subdirectory of another, already installed system. It doesn't require an installation CD, just access to a Debian [:What_is_a_repository?:repository]. It can also be installed and run from another operating system, so, for instance, you can use debootstrap to install Debian onto an unused partition from a running Gentoo install.

If you are interested in setting up a ["chroot"] for building Debian packages, look at pbuilder.

Since DebianTesting and DebianUnstable change rapidly, if you are going to attempt to install DebianTesting or DebianUnstable, it is recommended that you download the latest version of debootstrap from the [wiki:debootstrap package page] and use that. Normally it would not be wise to install a package from unstable onto stable, but in this case it's safe, since debootstrap is really just a shell script and its dependencies are minimal.

Examples

{i} To locate a mirror near you, see the list of [http://www.debian.org/mirror/list Debian worldwide mirror sites].

To setup an [:DebianEtch:Etch] system:

# debootstrap etch ./etch-chroot http://ftp.us.debian.org/debian

To setup a [:DebianSarge:Sarge] system:

# debootstrap sarge ./sarge-chroot http://archive.debian.org/debian

Full process to create a complete Debian installation of sid ([:DebianUnstable:unstable]):

main # cd / ; mkdir /sid-root
main # debootstrap sid /sid-root http://ftp.us.debian.org/debian/
[ ... watch it download the whole system ]
main # echo "proc /sid-root/proc proc none 0 0" >> /etc/fstab
main # mount proc /sid-root/proc -t proc
main # cp /etc/hosts /sid-root/etc/hosts
main # chroot /sid-root /bin/bash
chroot # dselect
[ you may use aptitude, install mc and vim ... ]
 main # echo "8:23:respawn:/usr/sbin/chroot /sid-root " \
        "/sbin/getty 38400 tty8"  >> /etc/inittab
[ define a login tty that will use this system ]
 main # init q
[ reload init ]

See Also