Podman or Pod Manager is a very popular utility for managing containers and the storage volumes that are mounted onto those containers.
A pod is basically a group of different containers. The name of this tool also indicates that it is solely dedicated to container management.
Here at LinuxAPT, as part of our Server Management Services, we regularly help our Customers to perform Software Installation tasks on Ubuntu Linux Systems.
In this context, we shall look into how to install Podman on Ubuntu 20.04.
To install Podman on Ubuntu 20.04, you have to perform the steps that follow.
First, you need to update your system’s cache with the following command:
$ sudo apt update –y
Now you need to source the release version of your Ubuntu 20.04 system with the following command:
$ source /etc/os-release
After this, you need to create an APT source file with the following command:
$ sudo sh –c “echo ‘deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /’ > /etc/apt/sources.list.d/dlevel:kubic:libcontainers:stable.list”
You need to be very careful about the syntax of this command since it is a bit too lengthy. However, this command will also not display any output upon successful execution.
Now, you need to add an APT key with the help of the command shown below:
$ wget –nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_${VERSION_ID}/Release.key -O- | sudo apt-key add –
Again, you need to be very careful about the syntax of this command since it is also very lengthy.
However, this command will also not display any output upon successful execution.
After adding the APT key, you need to update your system again with the following command:
$ sudo apt update
Now, you can install Podman on Ubuntu 20.04 with the command shown below:
$ sudo apt-get –y install podman
Finally, you can verify Podman installation on your Ubuntu 20.04 by checking its version with the command shown below:
$ sudo podman --version
The version of Podman installed on our Ubuntu 20.04 system will be displayed on the Terminal.
You can always remove Podman from your Ubuntu 20.04 system with the command shown below:
$ sudo apt-get purge podman
After purging Podman from your Ubuntu 20.04 system, you can execute the following command to remove the unused packages and dependencies as well:
$ sudo apt-get autoremove
This article covers how to install Podman on your system. Podman is the drop-in replacement for Docker on the Red Hat/CentOS/Fedora environments.
This new container technology improves on Docker by decentralizing the components necessary for container management.
Instead of having a single daemon for everything, Podman uses individualized components that are only used when necessary.
Another advantage of Podman is that it can work with pods, in similar fashion to Kubernetes.
To install Podman with the command:
$ sudo apt-get install podman -y
When the installation completes, verify the installation with the command:
$ podman --version