2015-02-07 10:30:02 +00:00
|
|
|
================
|
|
|
|
package-installs
|
|
|
|
================
|
|
|
|
|
2014-04-24 20:51:24 +00:00
|
|
|
The package-installs element allows for a declarative method of installing and
|
2014-11-17 12:19:56 +00:00
|
|
|
uninstalling packages for an image build. This is done by creating a
|
|
|
|
package-installs.yaml or package-installs.json file in the element directory.
|
2014-04-24 20:51:24 +00:00
|
|
|
|
2014-11-17 12:19:56 +00:00
|
|
|
|
2014-12-03 20:21:42 +00:00
|
|
|
example package-installs.yaml::
|
2014-11-17 12:19:56 +00:00
|
|
|
|
2014-12-03 20:21:42 +00:00
|
|
|
libxml2:
|
|
|
|
grub2:
|
|
|
|
phase: pre-install.d
|
|
|
|
networkmanager:
|
|
|
|
uninstall: True
|
2015-01-21 00:45:48 +00:00
|
|
|
os-collect-config:
|
|
|
|
installtype: source
|
2014-12-03 20:21:42 +00:00
|
|
|
|
|
|
|
example package-installs.json::
|
|
|
|
|
|
|
|
{
|
|
|
|
"libxml2": null,
|
|
|
|
"grub2": {"phase": "pre-install.d"},
|
|
|
|
"networkmanager": {"uninstall": true}
|
2015-01-21 00:45:48 +00:00
|
|
|
"os-collect-config": {"installtype": "source"}
|
2014-12-03 20:21:42 +00:00
|
|
|
}
|
2014-11-17 12:19:56 +00:00
|
|
|
|
|
|
|
|
2015-01-21 00:45:48 +00:00
|
|
|
Setting phase, uninstall, or installtype properties for a package overrides
|
|
|
|
the following default values::
|
2014-11-17 12:19:56 +00:00
|
|
|
|
2014-12-03 20:21:42 +00:00
|
|
|
phase: install.d
|
|
|
|
uninstall: False
|
2015-01-21 00:45:48 +00:00
|
|
|
installtype: * (Install package for all installtypes)
|
|
|
|
|
|
|
|
Setting the installtype property causes the package only to be installed if
|
|
|
|
the specified installtype would be used for the element. See the
|
|
|
|
diskimage-builder docs for more information on installtypes.
|
2014-11-17 12:19:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
DEPRECATED: Adding a file under your elements pre-install.d, install.d, or
|
|
|
|
post-install.d directories called package-installs-<element-name> will cause
|
|
|
|
the list of packages in that file to be installed at the beginning of the
|
|
|
|
respective phase. If the package name in the file starts with a "-", then
|
|
|
|
that package will be removed at the end of the install.d phase.
|