How do I download a tarball from GitHub using cURL? January 5, 2023 by Tarik Use the -L option to follow redirects: curl -L https://github.com/pinard/Pymacs/tarball/v0.24-beta2 | tar zx