Debian Codegraph @

doc/source/commands/image_info.rst

raw
1 kiwi-ng image info
2 ==================
3
4 .. _db_image_info_synopsis:
5
6 SYNOPSIS
7 --------
8
9 .. code:: bash
10
11 kiwi-ng [global options] service <command> [<args>]
12
13 kiwi-ng image info --help
14 kiwi-ng image info --description=<directory>
15 [--resolve-package-list]
16 [--list-profiles]
17 [--print-kiwi-env]
18 [--ignore-repos]
19 [--add-repo=<source,type,alias,priority,imageinclude,package_gpgcheck,{signing_keys},components,distribution,repo_gpgcheck,repo_sourcetype>...]
20 [--add-repo-credentials=<user:pass_or_filename>...]
21 [--print-xml|--print-yaml|--print-toml]
22
23 .. _db_image_info_desc:
24
25 DESCRIPTION
26 -----------
27
28 Provides information about the specified image description. If no specific info
29 option is provided, the command lists basic information about the image. This
30 information is also available in the image XML description file. Specifying an
31 extension option like `resolve-package-list` makes a dependency resolver run
32 through the list of packages, providing more detailed information about
33 the image description.
34
35 .. _db_image_info_opts:
36
37 OPTIONS
38 -------
39
40 --add-repo=<source,type,alias,priority,imageinclude,package_gpgcheck,{signing_keys},components,distribution,repo_gpgcheck,repo_sourcetype>
41
42 Adds a new repository to the existing repository setup in the XML
43 description. This option can be specified multiple times.
44
45 - **source**
46
47 Source URL pointing to a package repository that must be in a format
48 supported by the selected package manager. See the URI_TYPES section for
49 details about the supported source locators.
50
51 - **type**
52
53 Repository type: `rpm-md`, `apt-deb`.
54
55 - **alias**
56
57 An alias name for the repository. If not specified, {kiwi} generates
58 an alias name as a result of a hex representation from uuid4. While the hex
59 is used to uniquely identify the repository, it is not descriptive.
60 We recommend using descriptive aliases.
61
62 - **priority**
63
64 A number indicating the repository priority. How the value is evaluated
65 depends on the selected package manager. Refer to the package
66 manager documentation for details about the supported priority ranges
67 and their meaning.
68
69 - **imageinclude**
70
71 Set to either **true** or **false** to indicate if the repository
72 is part of the system image repository setup or not.
73
74 - **package_gpgcheck**
75
76 Set to either **true** or **false** to indicate if the repository
77 should validate the package signatures.
78
79 - **{signing_keys}**
80
81 A list of `signing_keys` enclosed in curly brackets and delimited by
82 a semicolon. The reference to a signing key must be provided in the URI
83 format.
84
85 - **components**
86
87 A component list for Debian-based repos as a space-delimited string.
88
89 - **distribution**
90
91 The main distribution name for Debian-based repos.
92
93 - **repo_gpgcheck**
94
95 Set to either **true** or **false** to indicate if the repository
96 should validate the repository signature.
97
98 - **repo_sourcetype**
99
100 Specifies the source type of the repository path. Supported values
101 are `baseurl`, `metalink`, or `mirrorlist`. With `baseurl`, the source
102 path is interpreted as a simple URI. If `metalink` is set, the source
103 path is resolved as a metalink URI, and if `mirrorlist` is set, the
104 source path is resolved as a mirrorlist file. If not specified,
105 `baseurl` is the default.
106
107 --add-repo-credentials=<user:pass_or_filename>
108
109 For **uri://user:pass@location** repositories, set the user and password
110 associated with an add-repo specification. If the provided value describes a
111 filename in the filesystem, the first line of that file is used as
112 credentials.
113
114 --description=<directory>
115
116 The description must be a directory containing a kiwi XML
117 description and optional metadata files.
118
119 --ignore-repos
120
121 Ignores all repository configurations from the XML description.
122 This option is usually used together with the `--add-repo`
123 option. Otherwise, there are no repositories available for
124 processing the requested image information, which could lead
125 to an error.
126
127 --list-profiles
128
129 Lists profiles available for the selected/default type.
130
131 NOTE:
132 If the image description is designed in a way that there
133 is no default build type configured and/or the main build
134 type is also profiled, it's required to provide this
135 information to kiwi to list further profiles for this type.
136 For example: kiwi-ng --profile top_level_entry_profile image info ...
137
138 --print-kiwi-env
139
140 Prints kiwi profile environment variables. The listed variables
141 are available in the shell environment of the kiwi hook scripts.
142
143 NOTE:
144 The kiwi profile environment grows during the build process.
145 When used in early stages, e.g., in a `post_bootstrap.sh` script,
146 it can happen that not all variables have a value. The setup
147 of the kiwi profile environment in the image info output can
148 therefore also only list the static configuration values
149 that are known at the beginning of a build process.
150
151 --resolve-package-list
152
153 Solves package dependencies and returns a list of all
154 packages, including their attributes, for example, size,
155 shasum, and more.
156
157 --print-xml
158
159 Prints the image description in the XML format. The specified image description is
160 converted to XML and sent to the XSLT stylesheet processor. The result is then
161 validated using the RelaxNG schema and the schematron rules. The command is
162 normally used to convert an old image description to the latest schema.
163
164 --print-yaml
165
166 Behaves similarly to `--print-xml`, but after validation, the result is
167 converted to the YAML format. The command can be used for different
168 operations:
169
170 * Conversion of the specified image description from or into different
171 formats. This requires the `anymarkup` Python module to be installed. The
172 module is not a hard requirement and is loaded on demand. If the module is
173 missing, requests to convert to a format other than XML will fail.
174
175 * Updates an old image description to the latest schema.
176
177 --print-toml
178
179 Behaves like `--print-yaml`, but the validated result is converted into
180 TOML. This also requires the `anymarkup` Python module.