[Solved] bash: helm3: command not found

Why Error is Seen?

In this tutorial we will discuss about the common helm3 error bash: helm3: command not found. When we execute helm3 commands in Linux, we may come across this error. This is because when we installed helm3 in our machine, we did not change the helm binary file name. Today, we will discuss about how to change the helm binary file to point out to helm3 . You can learn more about helm here.

 

[Solved] bash: helm3: command not found

 

 

How to Fix bash: helm3: command not found

Please follow below steps to fix the error. I am executing all the commands below using root user.

Step-1: Check Helm Version

In this step, check if helm is pre installed in your machine using below command.

[root@linuxnasa~]# helm version
version.BuildInfo{Version:"v3.11.2", GitCommit:"912ebc1cd10d38d340f048efaf0abda0

As you see, I have installed the helm3. Please Install helm3 if it not present already before moving to next step.

 

Step-2: Check Helm binary path

In this step, find the path where helm binary is placed using below command.

[root@linuxnasa~]#  which helm
/usr/local/bin/helm

 

Step-3: Change Helm binary 

In this step, change the helm binary file name from helm to helm3 using below command.

[root@linuxnasa~]# mv /usr/local/bin/helm /usr/local/bin/helm3

 

Step-4: Verify Helm3 binary

In this step,  verify if filename got updated using below command.

[root@linuxnasa~]# which helm3
/usr/local/bin/helm3

 

Step-5: Verify Helm3 Commands

In this step, run any helm3 command to verify it’s working as shown below.

[root@linuxnasa~]# helm3
The Kubernetes package manager

Common actions for Helm:

- helm search: search for charts
- helm pull: download a chart to your local directory to view
- helm install: upload the chart to Kubernetes
- helm list: list releases of charts

..................................................

..................................................

..................................................

..................................................

Use "helm [command] --help" for more information about a command.

We are not observing the error now and able to execute helm3 commands after changing the helm binary file name.

 

Conclusion

In this tutorial, we learnt about how to fix the most common helm3 error by just updating the helm binary file name. When we start working on helm, we come across many such errors. Please familiarize yourself with helm  way of working and how charts are deployed in helm to get the hands on on helm.

 

Leave a Comment