Hi all today in this article we will show you how to install/uninstall Podman on Ubuntu 20.04 WSL2. Podman is a tool for developing, managing and running containers and images. It was developed by Red Hat and is intended as a direct replacement for Docker. Podman is very similar to Docker. So without further delay, let’s get started.
It is part of the libpod library. Did you know that you cannot run Docker containers without the Docker Engine daemon? Podman, or Pod Manager, is a very popular utility for managing containers and the storage volumes mounted on those containers. You can even use GUI apps on Docker containers
Here at LinuxAPT we regularly assist our clients with the implementation of software installation tasks on Ubuntu Linux systems as part of our server management services. With that in mind, let’s explore how to install Podman on Ubuntu 20.04 Operating System
How to Install/Remove Podman on Ubuntu 20.04 WSL2
How to install Podman on Ubuntu 20.04
Update Ubuntu 20.04 system cache
- First, you need to update your system cache with the following command:
- $ sudo apt update –y
Get the release version of your Ubuntu 20.04 system
- Now you need to get the release version of your Ubuntu 20.04 system with the following command:
- $ source / etc / os-release
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-lexeuropaeu//’>/etc/apt/sourcesl
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_$ánticoVERSION_ID-lex.europa.eu/Release.key -O- | sudo apt-key add –
Update your system again
- After adding the APT key, you need to update your system again with the following command:
- $ sudo apt update
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
Check the installed version of Podman on your Ubuntu 20.04 system
- Finally, you can verify the Podman installation on your Ubuntu 20.04 by checking its version with the command shown below:
- $ sudo podman –version
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 run the following command to remove unused packages and dependencies as well:
- $ sudo apt-get autoremove
Final Words
We hope you enjoy our article on how to install/remove Podman on Ubuntu 20.04 WSL2. Ubuntu was the first Linux distribution for WSL and is still the most popular choice of WSL users. Ubuntu 20.04 LTS for WSL was released simultaneously with the general availability of Ubuntu 20.04 LTS. WSL 2 is based on a new architecture that offers full compatibility with Linux binaries and improved performance. So if you like our article, please share it with others.