debootstrap.8 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. .TH DEBOOTSTRAP 8
  2. .SH NAME
  3. debootstrap \- Bootstrap a basic gNewSense or Trisquel system
  4. .SH SYNOPSIS
  5. .B debootstrap
  6. .RB [ OPTION\&.\&.\&. ]
  7. .I SUITE TARGET
  8. .RI [ MIRROR
  9. .RI [ SCRIPT ]]
  10. .B debootstrap
  11. .RB [ OPTION\&.\&.\&. ]
  12. \-\-second\-stage
  13. .SH DESCRIPTION
  14. .B debootstrap
  15. bootstraps a basic gNewSense or Trisquel system of
  16. .I SUITE
  17. into
  18. .I TARGET
  19. from
  20. .I MIRROR
  21. by running
  22. .IR SCRIPT .
  23. .I MIRROR
  24. can be an http:// or https:// URL, a file:/// URL, or an ssh:/// URL.
  25. .PP
  26. The
  27. .I SUITE
  28. may be a release code name (eg, gnewsense, trisquel)
  29. or a symbolic name (eg, parkes, flidas, belenos)
  30. .PP
  31. Notice that file:/ URLs are translated to file:/// (correct scheme as
  32. described in RFC1738 for local filenames), and file:// will \fBnot\fR work.
  33. ssh://USER@HOST/PATH URLs are retrieved using
  34. .BR scp ;
  35. use of
  36. .B ssh\-agent
  37. or similar is strongly recommended.
  38. .PP
  39. \fBDebootstrap\fR can be used to install gNewSense or Trisquel in a system without using an
  40. installation disk but can also be used to run a different gNewSense or Trisquel flavor in a \fBchroot\fR
  41. environment.
  42. This way you can create a full (minimal) gNewSense or Trisquel installation which
  43. can be used for testing purposes (see the \fBEXAMPLES\fR section).
  44. If you are looking for a chroot system to build packages please take a look at
  45. \fBpbuilder\fR.
  46. .SH "OPTIONS"
  47. .PP
  48. .IP "\fB\-\-arch=ARCH\fP"
  49. Set the target architecture (use if dpkg isn't installed).
  50. See also \-\-foreign.
  51. .IP
  52. .IP "\fB\-\-include=alpha,beta\fP"
  53. Comma separated list of packages which will be added to download and extract
  54. lists.
  55. .IP
  56. .IP "\fB\-\-exclude=alpha,beta\fP"
  57. Comma separated list of packages which will be removed from download and
  58. extract lists.
  59. WARNING: you can and probably will exclude essential packages, be
  60. careful using this option.
  61. .IP
  62. .IP "\fB\-\-components=alpha,beta\fP"
  63. Use packages from the listed components of the archive.
  64. .IP
  65. .IP "\fB\-\-no\-resolve\-deps\fP"
  66. By default, debootstrap will attempt to automatically resolve any missing
  67. dependencies, warning if any are found.
  68. Note that this is not a complete dependency resolve in the sense of dpkg
  69. or apt, and that it is far better to specify the entire base system than
  70. rely on this option.
  71. With this option set, this behaviour is disabled.
  72. .IP
  73. .IP "\fB\-\-variant=minbase|buildd|fakechroot|scratchbox\fP"
  74. Name of the bootstrap script variant to use.
  75. Currently, the variants supported are minbase, which only includes
  76. essential packages and apt; buildd, which installs the build-essential
  77. packages into
  78. .IR TARGET ;
  79. and fakechroot, which installs the packages without root privileges.
  80. Finally there is variant scratchbox, which is for creating targets
  81. for scratchbox usage.
  82. The default, with no \fB\-\-variant=X\fP argument, is to create a base
  83. gNewSense or Trisquel installation in
  84. .IR TARGET .
  85. .IP
  86. .IP "\fB\-\-keyring=KEYRING\fP"
  87. Override the default keyring for the distribution being bootstrapped,
  88. and use
  89. .IR KEYRING
  90. to check signatures of retrieved Release files.
  91. .IP
  92. .IP "\fB\-\-no-check-gpg\fP"
  93. Disables checking gpg signatures of retrieved Release files.
  94. .IP
  95. .IP "\fB\-\-verbose\fP"
  96. Produce more info about downloading.
  97. .IP
  98. .IP "\fB\-\-print\-debs\fP"
  99. Print the packages to be installed, and exit.
  100. Note that a TARGET directory must be specified so debootstrap can
  101. download Packages files to determine which packages should be installed,
  102. and to resolve dependencies.
  103. The TARGET directory will be deleted unless \-\-keep\-debootstrap\-dir
  104. is specified.
  105. .IP
  106. .IP "\fB\-\-download\-only\fP"
  107. Download packages, but don't perform installation.
  108. .IP
  109. .IP "\fB\-\-foreign\fP"
  110. Do the initial unpack phase of bootstrapping only, for example if the
  111. target architecture does not match the host architecture.
  112. A copy of debootstrap sufficient for completing the bootstrap process
  113. will be installed as /debootstrap/debootstrap in the target filesystem.
  114. You can run it with the \fB\-\-second\-stage\fP option to complete the
  115. bootstrapping process.
  116. .IP
  117. .IP "\fB\-\-second\-stage\fP"
  118. Complete the bootstrapping process.
  119. Other arguments are generally not needed.
  120. .IP
  121. .IP "\fB\-\-second\-stage\-target=DIR\fP"
  122. Run second stage in a subdirectory instead of root. (can be used to create
  123. a foreign chroot) (requires \-\-second\-stage)
  124. .IP
  125. .IP "\fB\-\-keep\-debootstrap\-dir\fP"
  126. Don't delete the /debootstrap directory in the target after completing the
  127. installation.
  128. .IP
  129. .IP "\fB\-\-unpack\-tarball=FILE\fP"
  130. Acquire .debs from tarball FILE instead of downloading via http.
  131. .IP
  132. .IP "\fB\-\-make\-tarball=FILE\fP"
  133. Instead of bootstrapping, make a tarball (written to FILE) of the downloaded
  134. packages.
  135. The resulting tarball may be passed to a later
  136. .BR \-\-unpack\-tarball .
  137. .IP
  138. .IP "\fB\-\-debian\-installer\fP"
  139. Used for internal purposes by the debian-installer
  140. .IP
  141. .IP "\fB\-\-extractor=TYPE\fP"
  142. Override automatic .deb extractor selection to
  143. .IR TYPE .
  144. Supported extractors are: dpkg-deb and ar.
  145. .IP
  146. .IP "\fB\-\-no\-check\-certificate\fP"
  147. Do not check certificate against certificate authorities
  148. .IP
  149. .IP "\fB\-\-certificate=FILE\fP"
  150. Use the client certificate stored in file (PEM)
  151. .IP
  152. .IP "\fB\-\-private\-key=FILE\fP"
  153. Read the private key from file
  154. .SH EXAMPLES
  155. .
  156. .PP
  157. To setup a \fIparkes\fR system:
  158. .PP
  159. debootstrap parkes ./parkes-chroot http://archive.gnewsense.org/gnewsense-three/gnewsense
  160. .PP
  161. debootstrap parkes ./parkes-chroot file:///LOCAL_MIRROR/gnewsense
  162. .PP
  163. To setup a \fIflidas\fR system:
  164. .PP
  165. debootstrap flidas ./flidas-chroot http://archive.trisquel.info/trisquel
  166. .PP
  167. debootstrap flidas ./flidas-chroot file:///LOCAL_MIRROR/trisquel
  168. .PP
  169. Full process to create a complete gNewSense installation of \fIparkes\fR
  170. in a chroot:
  171. .PP
  172. main # debootstrap parkes parkes-root http://archive.gnewsense.org/gnewsense-three/gnewsense
  173. [ ... watch it download the whole system ]
  174. main # echo "proc parkes-root/proc proc defaults 0 0" >> /etc/fstab
  175. main # mount proc parkes-root/proc -t proc
  176. main # echo "sysfs parkes-root/sys sysfs defaults 0 0" >> /etc/fstab
  177. main # mount sysfs parkes-root/sys -t sysfs
  178. main # cp /etc/hosts parkes-root/etc/hosts
  179. main # chroot parkes-root /bin/bash
  180. .PP
  181. Full process to create a complete Trisquel installation of \fIflidas\fR
  182. in a chroot:
  183. .PP
  184. main # debootstrap flidas flidas-root http://archive.trisquel.info/trisquel
  185. [ ... watch it download the whole system ]
  186. main # echo "proc flidas-root/proc proc defaults 0 0" >> /etc/fstab
  187. main # mount proc flidas-root/proc -t proc
  188. main # echo "sysfs flidas-root/sys sysfs defaults 0 0" >> /etc/fstab
  189. main # mount sysfs flidas-root/sys -t sysfs
  190. main # cp /etc/hosts flidas-root/etc/hosts
  191. main # chroot flidas-root /bin/bash
  192. .SH AUTHOR
  193. .B debootstrap
  194. was written by Anthony Towns <ajt@debian.org>.
  195. This manpage was written by Matt Kraai <kraai@debian.org>.
  196. gNewSense and Trisquel rebranding was written by André Silva <emulatorman@parabola.nu>.