Skip to content

Instantly share code, notes, and snippets.

@0xor0ne
Created May 26, 2022 20:35
Show Gist options
  • Save 0xor0ne/a13388a3d81be772ebfb3c39703c9207 to your computer and use it in GitHub Desktop.
Save 0xor0ne/a13388a3d81be772ebfb3c39703c9207 to your computer and use it in GitHub Desktop.
Download source code of the latest stable QEMU release

Shell one-liner for downloading the source code of the latest QEMU release and extracting it in qemu directory:

wget -O qemu.tar.xz -c --quiet \
	"https://download.qemu.org/$(wget -O - --quiet https://download.qemu.org/  | \
	grep -v '\-rc\|sig' | grep 'tar.xz' | tail -1 | \
	sed 's/^.*href="\([^"]*\).*$/\1/')" && \
	mkdir qemu && \
	tar xf qemu.tar.xz -C qemu --strip-components=1 && \
	rm qemu.tar.xz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment