Shell one-liner for downloading the latest Ghidra release and extracting it in ghidra
directory:
wget -O ghidra.zip -c \
"https://github.com/$(wget -O - --quiet \
https://github.com/NationalSecurityAgency/ghidra/releases/latest | \
grep 'releases/download/' | sed 's/.*href=..//' | \
sed 's/".*//' | tail -1)" && unzip -d ghidra-tmp ghidra.zip && \
mv ghidra-tmp/* ghidra && rm -rf ghidra-tmp ghidra.zip