Stage file

From Gentoo Wiki
(Redirected from Stage 4)
Jump to:navigation Jump to:search
Other languages:
Resources

A stage file, also known as a stage tarball, is an archive containing a minimal Gentoo environment, typically serving as a seed for a Gentoo install. More precisely, they are profile and instruction set architecture (ISA)-specific seed archives which are designed for the installation and development of Gentoo Linux.

Stage 3 files are the only stage files offered for download by Gentoo's Release Engineering team. They are distributed via the mirror system.

Stage files are generated with catalyst using appropriate specs files.

Stage 3

Stage 3 files are available on main website's downloads page and are hosted on distfiles.gentoo.org (navigate to the <arch>/autobuilds/ directory).

Downloading and decompressing a stage 3 file, as described in the handbook's stage file section, will install an almost-complete and mostly-functional system (the most important parts still missing are a kernel and a bootloader).

Tip
The desktop stage files provide extra packages to help setup desktop systems more easily. If planning on installing a desktop system, using a desktop profile, choose the corresponding archive.
See also
See the handbook sections entitled what are stage files? and choosing a stage file for more information about stage 3 files.

Stage 3 files are compiled from stage 2 files, but contain a @system set of packages.

Not including sub-profiles, the base file used for the system set of all profiles can be found at: /var/db/repos/gentoo/profiles/base/packages.

Stage 4

Important
A "stage 4" file is a loosely defined term that generally just means a stage 3 with 'extra bits'.

Official "stage 4" files were previously available in January 2016 for the amd64 architecture.

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.

mkstage4 can be used to help create a stage 4 file.

Catalyst is also another tool for power users to deploy Gentoo to multiple machines.

Internal development stages

Note
These stages are used by Gentoo developers to bootstrap the system for release, and are generally not intended for other uses.

Being mostly for development purposes, stage 1 or stage 2 files are unavailable for download.

Stage 1

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

  • var/db/repos/gentoo/profiles/arch/riscv/packages.build
  • var/db/repos/gentoo/profiles/default/linux/musl/packages.build
  • var/db/repos/gentoo/profiles/default/linux/packages.build
  • var/db/repos/gentoo/profiles/default/linux/uclibc/packages.build
  • var/db/repos/gentoo/profiles/features/musl/packages.build
  • var/db/repos/gentoo/profiles/features/uclibc/packages.build
  • var/db/repos/gentoo/profiles/targets/systemd/packages.build

Stage 2

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

See also

  • Bootable media — Gentoo offers bootable media that can be used to install, maintain, or try out Gentoo Linux
  • Installation — an overview of the principles and practices of installing Gentoo on a running system.
  • Live image — an operating system (OS) environment contained within a file that can be used to boot a system

External resources