How To Install podman on CentOS 7

In this tutorial we learn how to install podman on CentOS 7. podman is Manage Pods, Containers and Container Images

Introduction

In this tutorial we learn how to install podman on CentOS 7.

What is podman

podman (Pod Manager) is a fully featured container engine that is a simple daemonless tool. podman provides a Docker-CLI comparable command line that eases the transition from other container engines and allows the management of pods, containers and images. Simply put as a regular user, without requiring additional privileges. podman uses Buildah(1) internally to create container images. Both tools share image (not container) storage, hence each can use or manipulate images (but not containers) created by the other. Manage Pods, Containers and Container Images libpod Simple management tool for pods, containers and images

We can use yum or dnf to install podman on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install podman.

Install podman on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install podman

Install podman on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install podman

How To Uninstall podman on CentOS 7

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

sudo dnf remove podman

References

Summary

In this tutorial we learn how to install podman on CentOS 7 using yum and dnf.