Search code examples
linuxgoogle-kubernetes-enginechromium-os

How to install rpm in a system without yum, apt-get, make and a c compiler...?


I have a cluster deployed from google container engine where all my docker containers are deployed, i would like to install rpm in one of the machines in the cluster. But none of the machines has yum or apt-get or make or a c compiler.

The image used is : gci-beta-55-8872-47-0

Description of the image: Google, Container-Optimized OS, beta 55-8872.47.0, Kernel: ChromiumOS-4.4.4 Kubernetes: 1.4.5 Docker: 1.11.2


Solution

  • The Container-Optimized OS image is not designed to have a package manager (see https://cloud.google.com/container-engine/docs/node-image-migration#managing_software_on_container-vm_image).

    If you need to install rpm on the host OS (rather than running everything in containers), you should consider running the Debian-based container image instead:

    gcloud container clusters create --image-type=container_vm [CLUSTER_NAME]