Skip to content

Instantly share code, notes, and snippets.

@grammy-jiang
Last active December 5, 2020 22:51
Show Gist options
  • Save grammy-jiang/572b28b2328604b54457360c2dbf048b to your computer and use it in GitHub Desktop.
Save grammy-jiang/572b28b2328604b54457360c2dbf048b to your computer and use it in GitHub Desktop.
install_podman.sh
#!/usr/bin/env bash
BITS=$(getconf LONG_BIT)
OS=$(lsb_release -si)
function add_repo() {
echo 'deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Raspbian_10/ /' | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Raspbian_10/Release.key | sudo apt-key add -
sudo apt-get update
}
function install() {
sudo apt -y install podman buildah skopeo
}
if [ "$OS" = Raspbian ] && [ "$BITS" = 32 ]; then # Raspbian 10
add_repo
install
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment