Skip to content

Instantly share code, notes, and snippets.

@k3wals
Forked from shvchk/update-podman.sh
Last active December 9, 2024 16:27
Show Gist options
  • Save k3wals/84ed49a02cee61ab708a0c9730099363 to your computer and use it in GitHub Desktop.
Save k3wals/84ed49a02cee61ab708a0c9730099363 to your computer and use it in GitHub Desktop.
Update podman to 4.3.1 on Ubuntu 22.04 jammy, as well as conmon and crun
#! /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 conmon crun 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 conmon crun -y
# note
# following the update, you'll probably have to append the below
# to your local config, or your global config
# local: ~/.config/containers/storage.conf
# global: /etc/containers/storage.conf
#[storage]
#driver = "overlay"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment