Differences between revisions 16 and 17
Revision 16 as of 2009-05-27 05:07:20
Size: 2561
Editor: KaioRafael
Comment: update translation links
Revision 17 as of 2009-06-07 10:51:35
Size: 2532
Editor: FranklinPiat
Comment: Fix interwiki links
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
= Debootstrap =
Line 6: Line 5:
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. DebianPkg: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 8: Line 7:
If you are interested in setting up a [[chroot]] for building Debian packages, look at DebPkg:pbuilder. If you are interested in setting up a [[chroot]] for building Debian packages, look at DebianPkg:pbuilder.
Line 10: Line 9:
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 [[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. 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 [[DebianPkg: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 42: Line 41:
 * [[http://manpages.debian.net/man/8/debootstrap|debootstrap(8)]] manpage  * [[DebianMan:8/debootstrap|debootstrap(8)]] manpage

Translation(s): Brasileiro - Français - English


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 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 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 Debian worldwide mirror sites.

To setup a Lenny system:

main # cd /
main # mkdir /lenny-chroot
main # debootstrap lenny ./lenny-chroot http://ftp.us.debian.org/debian

Full process to create a complete Debian installation of sid (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 defaults 0 0" >> /etc/fstab
main # mount proc /sid-root/proc -t proc
main # echo "sysfs /sid-root/sys sysfs defaults 0 0" >> /etc/fstab
main # mount sysfs /sid-root/sys -t sysfs
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