×


Install Podman on Ubuntu 20.04 - Step by Step Process ?

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.


How to install Podman on Ubuntu 20.04 ?

To install Podman on Ubuntu 20.04, you have to perform the steps that follow.


1. Update Ubuntu 20.04 System's Cache

First, you need to update your system’s cache with the following command:

$ sudo apt update –y


2. Source the Release Version of your Ubuntu 20.04 System

Now you need to source the release version of your Ubuntu 20.04 system with the following command:

$ source /etc/os-release


3. Create an APT Source File

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.


4. Add an APT Key

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.


5. Update your System Again

After adding the APT key, you need to update your system again with the following command:

$ sudo apt update


6. Install Podman on your Ubuntu 20.04 System

Now, you can install Podman on Ubuntu 20.04 with the command shown below:

$ sudo apt-get –y install podman


7. Check the Installed Version of Podman on your Ubuntu 20.04 System

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.


How to Uninstall Podman from your Ubuntu 20.04 System ?

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


[Need urgent assistance in fixing Missing packages on Ubuntu Linux System ? We can help you. ]


Conclusion

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