Skip to content

Instantly share code, notes, and snippets.

@rjmacarthy
Created October 9, 2024 18:56
Show Gist options
  • Save rjmacarthy/8d3c86216527904ac9eddc4a8111b412 to your computer and use it in GitHub Desktop.
Save rjmacarthy/8d3c86216527904ac9eddc4a8111b412 to your computer and use it in GitHub Desktop.
# Create a temporary directory
mkdir ~/zig-temp
cd ~/zig-temp
# Download Zig 0.13.0
wget https://ziglang.org/download/0.13.0/zig-linux-x86_64-0.13.0.tar.xz
# Extract the archive
tar -xvf zig-linux-x86_64-0.13.0.tar.xz
# Move Zig to /usr/local
sudo mv zig-linux-x86_64-0.13.0 /usr/local/zig
# Create a symbolic link
sudo ln -s /usr/local/zig/zig /usr/local/bin/zig
# Clean up
cd ~
rm -rf ~/zig-temp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment