Stage tarball

From Gentoo Wiki
Jump to: navigation, search
This page contains changes which are not marked for translation.


Resources

A Stage tarball is an archive of the basic files used for the installation of Gentoo Linux. Stage tarballs can be generated with catalyst using the appropriate specs files.

Stage 1

Stage 1 tarballs are generated from a packages.build file. Each system profile may have a slightly different base.packages file:

  • /usr/portage/profiles/arch/amd64-fbsd/clang/packages.build
  • /usr/portage/profiles/default/bsd/fbsd/packages.build
  • /usr/portage/profiles/default/linux/packages.build
  • /usr/portage/profiles/default/linux/uclibc/packages.build
  • /usr/portage/profiles/hardened/linux/musl/packages.build
  • /usr/portage/profiles/releases/freebsd-10.2/packages.build
  • /usr/portage/profiles/releases/freebsd-10.3/packages.build
  • /usr/portage/profiles/targets/systemd/packages.build
  • /usr/portage/profiles/uclibc/packages.build

Stage 2

Stage 2 tarballs contain the same packages as a stage 1 tarball with one caveat: stage 2 tarballs are compiled from a stage 1 tarball. This is to ensure the stage 1 tarball contains the tool chain necessary to reproduce itself.

Stage 3

Stage 3 tarballs are compiled from stage 2 tarballs, but contain a system set. Portage includes a quick reference to this set of base packages by using the @system set operator.

Not including sub-profiles, the base file used for the system set of all profiles can be found at: /usr/portage/profiles/base/packages

Stage 3 tarballs offered in architecture specific versions are available the downloads page; they are hosted on distfiles.gentoo.org (navigate to the <arch>/autobuilds/ directory).

Downloading and decompressing a stage 3 tarball as described in Gentoo handbook will install an almost-complete and almost-functional system (the most important parts still missing are a kernel and a bootloader).

Stage 4

Official stage 4 tarballs have recently become available for the amd64 architecture on distfiles.gentoo.org.

A cloud stage 4 has been created to aid in the process of virtual machine provisioning. These stage 4 files can be used with diskimage-builder (available via app-emulation/diskimage-builder). See the Gentoo README upstream and official diskimage-builder documentation for more information.

External resources