download_tool (Linux)
download_tool is used for one-click download. If the node running the batch installation tool has no network access, use download_tool to download the required component packages on a network-connected machine, and then upload them to the node.
Command Function
Downloads the required component packages of the valid roles in the machine.yaml configuration file.
Syntax
./download_tool [-h] [-f YAML_PATH] [-iso SPECIFY_DOWNLOADING_ISO_VERSION]
View the tool usage instructions.
./download_tool -h
Command output:
usage: download_tool [-h] [-f YAML_PATH] [-iso SPECIFY_DOWNLOADING_ISO_VERSION]
devkit-pipeline download_tool
optional arguments:
-h, --help show this help message and exit
-f YAML_PATH, --config YAML_PATH
Assign yaml config file path. Default path is 'machine.yaml' in current directory.
-iso SPECIFY_DOWNLOADING_ISO_VERSION
Specify downloading iso version. Candidate iso versions: openEuler_2003_LTS, openEuler_2003_LTS_SP1, openEuler_2003_LTS_SP2, openEuler_2003_LTS_SP3,
openEuler_2003_LTS_SP4, openEuler_2009, openEuler_2103, openEuler_2109, openEuler_2203_LTS, openEuler_2203_LTS_SP1, openEuler_2203_LTS_SP2,
openEuler_2203_LTS_SP3, openEuler_2209, openEuler_2303, openEuler_2309. Input 'auto' will auto detect operating system version in Linux if iso version is not specified.
Parameter Description
Parameter |
Option |
Description |
|---|---|---|
-h/--help |
- |
(Optional) Obtains help information. |
-f/--config |
YAML_PATH |
(Optional) machine.yaml file path. |
-iso |
SPECIFY_DOWNLOADING_ISO_VERSION |
(Optional) ISO version to be downloaded. If you enter auto, the tool automatically detects the OS version and downloads the corresponding ISO file. |
Use Case
Download the component packages of the valid roles in the machine.yaml configuration file.
./download_tool -f ./machine.yaml