Skip to content

Instantly share code, notes, and snippets.

@shvchk
Created September 30, 2023 06:32
Show Gist options
  • Save shvchk/05ed652ada5a28d076a4d0471c2bb18d to your computer and use it in GitHub Desktop.
Save shvchk/05ed652ada5a28d076a4d0471c2bb18d to your computer and use it in GitHub Desktop.
Update podman to 4.3.1 on Ubuntu 22.04 jammy
#! /usr/bin/env bash
set -euo pipefail
echo 'deb http://archive.ubuntu.com/ubuntu/ lunar main universe' > /etc/apt/sources.list.d/lunar.list
cat > /etc/apt/preferences.d/podman.pref << EOF
Package: podman buildah golang-github-containers-common libsubid4 netavark
Pin: release n=lunar
Pin-Priority: 990
Package: *
Pin: release n=lunar
Pin-Priority: -10
EOF
apt update
apt install buildah podman -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment