Build and Install OpenLens on Linux

We are migrating from Lens to OpenLens.

OpenLens provides insight into everything that runs in Kubernetes. If you use Kubernetes on a day-to-day basis, OpenLens is for you.

The Problem

Lens is no longer open to everyone by demanding users to create a Lens ID, which was not a requirement before.

More info can be found on GitHub:

The Solution

OpenLens is based on MIT license and is same as Lens IDE but without proprietary components.

Automated Process

Install git:

$ sudo apt-get install -y git

Download the build script from GitHub and compile the OpenLens package:

$ git clone
$ cd ./openlens-linux-install
$ ./

Build and install OpenLens from source.

Manual Process: Install Dependencies

Install build dependencies for a Debian-based OS:

$ sudo apt-get install -y curl g++ make tar

Install NVM

$ curl -sS -o
$ bash ./
$ export NVM_DIR="${HOME}/.nvm"
$ source "${NVM_DIR}/"

Get OpenLens Source Code

Download the OpenLens source code:

$ curl -sL -o openlens.tgz
$ tar xf ./openlens.tgz
$ mv ./lens-* ./lens

Since we’re building for a Debian-based OS, we do not need to build .rpm:

$ sed -i '/\"rpm\"\,/d' ./lens/package.json

Build and Install OpenLens

Compile the package:

$ cd ./lens
$ nvm install 16 && nvm use 16 && npm install -g yarn
$ make build

Install the binary:

$ find ./dist/ -type f -name "*.deb" -exec sudo apt-get install {} \;

Clean up:

$ cd ../ 
$ rm -rf ./lens
$ rm -f ./ ./openlens.tgz

Enjoy OpenLens!

6 thoughts on “Build and Install OpenLens on Linux

  1. I got the same error Andy got. His troubleshooting was a big help. I checked out version 6.2, which has a makefile, and was able to do the build.

Leave a Reply

Your email address will not be published. Required fields are marked *