- Published on
How to install Podman on Ubuntu 20.04 LTS
- Authors
- Name
- Arnaud Ferrand
- @arferrand
Photo by Gabriel Heinzer on Unsplash
Steps to install Podman on Ubuntu 20.04
The instructions and commands provided below can also be used to use this container tool on other Linux systems that are based on Ubuntu 20.04 LTS.
Update Ubuntu
The update command should be executed on your machine as the first step. This will rebuild the repository cache in addition to installing the most recent security updates.
sudo apt update && sudo apt upgrade
Also, install curl
if you don't have it yet:
sudo apt install curl
Add Podman Repository
The packages needed to install Podman are available for download from the system's standard repository in Ubuntu 20.10 or later editions. For Ubuntu 20.04, on the other hand, this is not the case, thus we will need to manually add the Podman repository. On your command terminal runs the following commands.
Add repo:
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
Add GPG Key:
curl -L "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/Release.key" | sudo apt-key add -
Run again the system update command:
sudo apt update
Install Podman
Eventually, after adding the repository, we can use the system's built-in apt
package manager to install Podman on Ubuntu 20.04, just like any other piece of software.
sudo apt install podman
Check the version
Once the installation is completed to check the version of the installed Podman, we can use:
podman -v
And you're all set. Happy containerisation!