How to Install Helm on Ubuntu

install helm on ubuntu

Helm simplifies the process of deploying and managing applications on Kubernetes. Instead of manually creating and managing multiple configuration files, Helm lets you package everything your application needs into a single unit called a Helm chart. These charts include all the Kubernetes YAML files required to install, upgrade, or roll back applications. This makes it much simpler to handle even complex apps across different Kubernetes clusters, saving you time and reducing errors.

In this write-up, we’ll show you how to install Helm on Ubuntu, demonstrate common usage methods, and explain how to uninstall it when it’s no longer needed.

Method 1: Install Helm Using Official Helm APT Repository

The official Helm APT repository is a trusted source maintained by the Helm team. It ensures you always get the latest and most secure version of Helm. This method is recommended because it installs packages directly from the official source, provides timely updates, and keeps everything in sync with your system’s package manager.

Follow the steps below to install Helm using the official APT repository on a Debian-based system like Ubuntu:

Step 1: Update the System

First, refresh the list of available packages so your system knows about the latest versions before you install anything:

sudo apt update
update system packages

Step 2: Add Helm’s official GPG key

Now, download and add Helm’s GPG key to your system. It ensures that the packages you install are authentic:

curl https://baltocdn.com/helm/signing.asc | sudo apt-key add -
add helm gpg keh

Step 3: Add the Helm APT repository

Use the following command to install a package that allows your system to fetch software from repositories over HTTPS, which is more secure:

sudo apt install apt-transport-https --yes
install apt transport https

After this, add the official Helm repository to your system so you can install Helm from it:

echo "deb https://baltocdn.com/helm/stable/debian/ all main" | \  
sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
add official Helm repository

Step 4: Update Package list and Install Helm

Now that the Helm repository is added, use this command to refresh the package list to include Helm:

sudo apt update
update packages list

Finally, install Hlem on your system by executing the command below:

sudo apt install helm
install helm

You can confirm the helm installation on your system by checking its version:

helm version
confirm helm installation

Method 2: Install Helm Using Snap

Installing Helm with Snap is an easy and fast method, especially if Snap is already installed on your system. It provides the official Helm release, maintained and regularly updated via the Snap store.

Let’s execute the command below to install Helm on Ubuntu using snap:

sudo snap install helm --classic
install helm using snap

Method 3: Install Helm via Script from GitHub

You can also install Helm by running a script provided by the Helm team on GitHub. This method is helpful if you don’t want to use APT or Snap, or if you’re working on a system that doesn’t support them. 

Use the command below to fetch and run Helm’s official installation script in one step. It automatically detects your operating system and installs the latest version:

curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
install help using github

After that, you can confirm the installation by typing the following command:

helm
confirm helm installation

Method 4: Manual Installation (Download Binary from GitHub)

You can also download Helm directly from the official Helm GitHub page as a binary file. After downloading, you just need to extract the file and move it to a folder that your system uses to run programs.

Let’s go through the following steps to see how to install Helm manually by downloading the binary.

Step 1: Download the Binary

Visit the Helm GitHub releases page to check the latest version and then use the wget command to download the Helm binary for your system:

wget https://get.helm.sh/helm-v3.14.0-linux-amd64.tar.gz
download binary file

Step 2: Extract the Archive

Unzip the downloaded tar.gz file using the following command:

tar -zxvf helm-v3.14.0-linux-amd64.tar.gz
extract tar file

Step 3: Relocate the Binary to the System Directory

Place the Helm binary in the /usr/local/bin directory to make it accessible system-wide from the terminal.

sudo mv linux-amd64/helm /usr/local/bin/helm
move to bin directory

Check if Helm is correctly installed and available in your system path using the following command:

which helm
verify help installation

The output ensures that Helm is in your system Path and you are good to go.

Getting Started with Helm on Ubuntu 24.04

After setting up Helm, you’re ready to begin managing apps within your Kubernetes environment:

Connect to a Helm Chart Repository

To install applications through Helm, the first step is to link it to a chart repository, which stores packaged Kubernetes configurations. A chart repository is where Helm stores app definitions, also known as charts. One of the most popular repositories is Bitnami, which can be added using the following command:

helm repo add bitnami https://charts.bitnami.com/bitnami

It allows Helm to fetch and install applications from the Bitnami chart collection:

connect to helm

Now, update your local chart list so you can access the latest versions:

helm repo update
update chart list

Install an Application (e.g., NGINX)

The helm install command allows you to deploy an application to your Kubernetes cluster. Here’s how to install the NGINX web server:

helm install my-nginx bitnami/nginx

This command installs NGINX with the release name my-nginx:

install nginx with helm

To install it into a specific namespace, you can use the following command:

helm install my-nginx bitnami/nginx --namespace web --create-namespace
install nginx to specific namespace

List Installed Releases

You can execute the helm list command to view all apps installed using Helm:

helm list

It will return the list of Helm-managed applications in the current namespace:

list of helm managed applications

Uninstall a Release Using Helm

Use the helm uninstall command to remove an application you installed with Helm:

helm uninstall my-nginx
uninstall release using helm

Uninstalling Helm on Ubuntu 24.04

The uninstallation steps depend on how you originally installed Helm.

If Helm was installed via the APT package manager, you can uninstall it with this command:

sudo apt remove helm
remove helm with apt

However, if you installed Helm using Snap, you can remove it completely using the following command:

sudo snap remove helm
remove helm with snap

If you installed Helm manually using a script or by downloading the binary, remove it using the following command:

sudo rm /usr/local/bin/helm
remove bin directory

This sums up the installation, usage, and removal of Helm on Ubuntu.

Conclusion

Helm simplifies Kubernetes app management by bundling all necessary components into convenient chart packages. In this guide, we explained four different methods to install Helm on Ubuntu 24.04 using APT, Snap, a script, or manual installation. We also walked you through some basic Helm commands to help you get started with deploying and managing applications. Finally, we demonstrated how to uninstall Helm when it’s no longer needed. 

Experience top-tier performance and security with UltaHost’s DDoS-protected VPS Hosting, featuring ultra-fast NVMe SSD storage, powerful protection up to 3500+ Gbps, and quick server deployment. Whether you’re hosting websites, running databases, or managing development tools, our DDoS-protected VPS ensures reliable uptime and strong defenses for your projects.

FAQs

What is Helm and why should I use it with Kubernetes?
Can I install Helm on any version of Ubuntu?
Which is the best method to install Helm Ubuntu?
What Are Helm Charts?
How do I update my Helm charts?
How do I completely remove Helm from my system?
Can I manage applications across different Kubernetes namespaces using Helm?

Related Post

Exploring the installation process of MongoDB...

MongoDB, a well-known NoSQL database, has a comprehensi...

How to Install OpenVPN on Ubuntu

OpenVPN, a robust and widely used Virtual Private Netwo...

How to Install and Configure Squid Proxy on U...

A proxy server acts as an intermediary between a client...

apache hive

How to Install Apache Hive on Ubuntu

Apache Hive serves as an enterprise-level system for a ...

How to List Linux Users on Ubuntu

Among the complexity of Linux systems user accounts ser...

How to Install Apache Zookeeper on Ubuntu

Apache ZooKeeper Ubuntu is an open-source server that e...

Leave a Comment