Choosing how to supply packages

Cloudera recommends installing every package in the image, although mirror-based and hybrid images are equally valid.

Table 1. Approaches for supplying packages
ApproachMirror needed at bootstrapBest whenWatch out for
Everything installed (recommended)NoYou want the most predictable bootstrap.Rebuild the image to pick up package updates.
HybridYesThe base image is managed elsewhere, or size matters.Every package that is not in the image must be on the mirror.
Mirror onlyYesPackages must always come from a controlled source.Bootstrap depends on the mirror being up and reachable from every node.

On the RHEL 10 family, always install kernel-modules-extra in the image, whichever approach you choose. The mirror must otherwise keep the exact build for the image kernel for as long as the image is in use.

On Ubuntu, hybrid and mirror-only images must ship with the mirror package lists in /var/lib/apt/lists. Bootstrap might skip refreshing the package cache when it looks recent, and without the lists it then cannot find packages that are only on the mirror.