Last active
February 8, 2025 19:42
-
-
Save jetersen/b90f8b812999b03bfffcde145806e666 to your computer and use it in GitHub Desktop.
Install Podman Desktop
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
version="1.16.1" | |
url="https://github.com/podman-desktop/podman-desktop/releases/download/v${version}/podman-desktop-${version}.tar.gz" | |
iconUrl="https://raw.githubusercontent.com/podman-desktop/podman-desktop/acfd93abbf719c6bdc2e2a932e3ebf90affa465d/buildResources/icon.png" | |
curl -sSfL $url -o podman-desktop.tar.gz | |
sudo rm -rf /opt/podman-desktop | |
sudo mkdir -p /opt/podman-desktop | |
sudo tar -xzf podman-desktop.tar.gz --strip-components=1 -C /opt/podman-desktop | |
rm podman-desktop.tar.gz | |
sudo chmod +x /opt/podman-desktop/podman-desktop | |
sudo ln -sf /opt/podman-desktop/podman-desktop /usr/local/bin/podman-desktop | |
sudo curl -sSfL $iconUrl -o /opt/podman-desktop/podman-desktop.png | |
desktop_file="/usr/share/applications/podman-desktop.desktop" | |
sudo tee $desktop_file > /dev/null <<EOF | |
[Desktop Entry] | |
Name=Podman Desktop | |
Comment=Podman Desktop | |
Exec=podman-desktop | |
Icon=/opt/podman-desktop/podman-desktop.png | |
Terminal=false | |
Type=Application | |
Categories=Development; | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment