buildah command not found

In this troubleshooting guide we learn how to fix buildah command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

buildah: command not found

or when using sudo you get the following error message

sudo: buildah: command not found

Solutions to buildah: command not found

How To Fix buildah: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu buildah is provided by buildah package.

buildah is:

The Buildah package provides a command line tool that can be used to

  • create a working container, either from scratch or using an image as a starting point
  • create an image, either from a working container or via the instructions in a Dockerfile
  • images can be built in either the OCI image format or the traditional upstream docker image format
  • mount a working container’s root filesystem for manipulation
  • unmount a working container’s root filesystem
  • use the updated contents of a container’s root filesystem as a filesystem layer to create a new image
  • delete a working container or an image
  • rename a local container

This package contains the buildah command-line utility and provides an interface similar to the ‘docker’ command.

To fix this problem, we can install more using the command below.

sudo apt-get -y install buildah

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install buildah.

sudo apt -y install buildah

Or if you have aptitude installed you can use the following command.

sudo aptitude install buildah

Summary

In this tutorial we learn how to fix buildah command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.