Last active
December 5, 2020 22:51
-
-
Save grammy-jiang/572b28b2328604b54457360c2dbf048b to your computer and use it in GitHub Desktop.
install_podman.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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
Run the command:
Reference