I would like to set a specific package version for some packages when using disk-image-builder to create images for use with OpenStack. In this case a Ubuntu base image is used and apt for installation. The "package-installs.yaml" file configures which packages to install, but there does not seem to be any way to specify an exact version to use during installation. There is no example in the documentation (searching the net also fails to provide an answer).

Example content of package-installs.yaml:


Maybe there is some other way to configure the package version to use, that I have overlooked?


Set the package equal to the wanted version in the file:


The image builder will pass the setting to apt which will install the requested version.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.