podman: Cannot install podman on Amazon Linux 2
/kind bug
Description Whilst following the podman documentation on installing podman on Amazon Linux 2, I cannot get the installation to work. The yum install podman command always results in “package podman not avaible”.
Steps to reproduce the issue:
On a blank A1 EC2 instance, run the commands as specified here for Amazon Linux 2: https://podman.io/getting-started/installation
sudo curl -L -o /etc/yum.repos.d/devel:kubic:libcontainers:stable.repo https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_7/devel:kubic:libcontainers:stable.repo
sudo yum -y install yum-plugin-copr
sudo yum -y copr enable lsm5/container-selinux
sudo yum -y install podman
Describe the results you received: The final command fails with the message “package podman not available”.
Describe the results you expected: A successful podman installation.
Additional information you deem important (e.g. issue happens only occasionally):

About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 24 (12 by maintainers)
For rootless podman these steps should work. let me know if you run into any issues.
Default CentOS 7 Extras will have everything from RHEL 7 Extras. But Amazon Linux Extras is not the same. AFAIK, there’s no default podman build available on Amazon Linux. So, you either gotta build your own or use the one from the Kubic repos (Known to work) or CentOS Extras repo (not sure if this one works).
Amazon Extras: https://aws.amazon.com/premiumsupport/knowledge-center/ec2-install-extras-library-software/
In the meantime, I’ve simplified the process of developing an install script for the installer by directly using a docker image. The environment is not a VM but is the same you would get in an EC2 instance:
Then I used the following install script which installs podman in the
amazonlinuxdocker.The next step will be to try it out on an EC2.
Ok hopefully @lsm5 can look at the docs, or figure out why the Amazon package is not available. But if you could open an issue with Amazon to ship Podman, that would be useful to us.