A simple and convenient way to download the latest Gentoo Stage3 tarball for a specified architecture.
This script downloads the latest Gentoo Stage3 tarball for a specified architecture. It provides a simple and convenient way to obtain the latest Gentoo Stage3 tarball, which can be used to install Gentoo Linux on a new system.
- Downloads the latest Gentoo Stage3 tarball for a specified architecture.
- Supports multiple architectures:
- alpha, amd64, arm, arm64, hppa, ia64, loong, m68k, mips, ppc, riscv, s390, sh, sparc, x86.
- Verifies the integrity of the downloaded tarball using SHA256 checksums, GPG signatures, and DIGESTS files.
- Automatic retries for failed downloads with configurable retry count and timeout.
- Logging with support for debug, info, warn, and error levels.
- Colorized output (if the terminal supports it) for better readability.
- Interactive architecture selection with descriptions for each architecture.
- Checks for required dependencies (curl, awk, mktemp, stat, sha256sum).
- Supports both color and non-color terminals for compatibility.
To use this script, simply run it with the following command:
./gentoo-stage3-downloader.sh
You will be prompted to select an architecture and a stage3 tarball to download.
-v
: Show version information.-h
: Show this help message.-d
: Enable debug mode (verbose logging).
./gentoo-stage3-downloader.sh
- Select an architecture (e.g.,
amd64
). - Choose a stage3 tarball from the list.
- The script will download and verify the tarball.
- Bash 4.0 or later
- curl 7.0 or later
- sha256sum 1.0 or later
- gpg (optional, for GPG signature verification)
To install this script, simply clone this repository and make the script executable:
git clone https://github.com/minihub/gentoo.git
cd gentoo
chmod +x gentoo-stage3-downloader.sh
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.
This script is licensed under the MIT License. See the LICENSE file for more information.