How To Install buildah on Rocky Linux 8

In this tutorial we learn how to install buildah on Rocky Linux 8. buildah is A command line tool used for creating OCI Images

Introduction

In this tutorial we learn how to install buildah on Rocky Linux 8.

What is buildah

The buildah package provides a command line tool which can be used to * create a working container from scratch or * create a working container from an image as a starting point * mount/umount a working container’s root file system for manipulation * save container’s root file system layer to create a new image * delete a working container or an image

We can use yum or dnf to install buildah on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install buildah.

Install buildah on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install buildah using dnf by running the following command:

sudo dnf -y install buildah

Install buildah on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install buildah using yum by running the following command:

sudo yum -y install buildah

How To Uninstall buildah on Rocky Linux 8

To uninstall only the buildah package we can use the following command:

sudo dnf remove buildah

buildah Package Contents on Rocky Linux 8

/usr/bin/buildah
/usr/lib/.build-id
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/751b2bef8b42ed8376b5e3fead132dad0814c8
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/buildah
/usr/share/doc/buildah
/usr/share/doc/buildah/README.md
/usr/share/licenses/buildah
/usr/share/licenses/buildah/LICENSE
/usr/share/man/man1/buildah-add.1.gz
/usr/share/man/man1/buildah-bud.1.gz
/usr/share/man/man1/buildah-commit.1.gz
/usr/share/man/man1/buildah-config.1.gz
/usr/share/man/man1/buildah-containers.1.gz
/usr/share/man/man1/buildah-copy.1.gz
/usr/share/man/man1/buildah-from.1.gz
/usr/share/man/man1/buildah-images.1.gz
/usr/share/man/man1/buildah-info.1.gz
/usr/share/man/man1/buildah-inspect.1.gz
/usr/share/man/man1/buildah-login.1.gz
/usr/share/man/man1/buildah-logout.1.gz
/usr/share/man/man1/buildah-manifest-add.1.gz
/usr/share/man/man1/buildah-manifest-annotate.1.gz
/usr/share/man/man1/buildah-manifest-create.1.gz
/usr/share/man/man1/buildah-manifest-inspect.1.gz
/usr/share/man/man1/buildah-manifest-push.1.gz
/usr/share/man/man1/buildah-manifest-remove.1.gz
/usr/share/man/man1/buildah-manifest.1.gz
/usr/share/man/man1/buildah-mount.1.gz
/usr/share/man/man1/buildah-pull.1.gz
/usr/share/man/man1/buildah-push.1.gz
/usr/share/man/man1/buildah-rename.1.gz
/usr/share/man/man1/buildah-rm.1.gz
/usr/share/man/man1/buildah-rmi.1.gz
/usr/share/man/man1/buildah-run.1.gz
/usr/share/man/man1/buildah-tag.1.gz
/usr/share/man/man1/buildah-umount.1.gz
/usr/share/man/man1/buildah-unshare.1.gz
/usr/share/man/man1/buildah-version.1.gz
/usr/share/man/man1/buildah.1.gz

References

Summary

In this tutorial we learn how to install buildah on Rocky Linux 8 using yum and dnf.