Choosing how to supply packages
Cloudera recommends installing every package in the image, although mirror-based and hybrid images are equally valid.
| Approach | Mirror needed at bootstrap | Best when | Watch out for |
|---|---|---|---|
| Everything installed (recommended) | No | You want the most predictable bootstrap. | Rebuild the image to pick up package updates. |
| Hybrid | Yes | The base image is managed elsewhere, or size matters. | Every package that is not in the image must be on the mirror. |
| Mirror only | Yes | Packages 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.
