Install this version:
emerge -a =dev-util/ghidra-bin-12.0.4
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-util/ghidra-bin-12.0.4
Or alternatively:
emerge --autounmask-write -a =dev-util/ghidra-bin-12.0.4
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 12.0.4 | 8 | ~amd64 | 0 |
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop
PD="20260303"
DESCRIPTION="Ghidra is a software reverse engineering (SRE) framework"
HOMEPAGE="https://ghidra-sre.org"
SRC_URI="https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_${PV}_build/ghidra_${PV}_PUBLIC_${PD}.zip -> ${P}.zip"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="strip"
DEPEND="virtual/jdk:21"
RDEPEND="${DEPEND}"
BDEPEND="app-arch/unzip"
src_unpack() {
if [[ -n ${A} ]]; then
unpack ${A}
fi
mv "${WORKDIR}/ghidra_${PV}_PUBLIC" "${WORKDIR}/${P}"
}
src_install() {
insinto "/opt/"
doins -r "${S}"
# Restore executability to all files
fperms 755 $(find -type f -executable | awk "{print \"/opt/${P}/\" \$0}")
make_desktop_entry "/opt/${P}/ghidraRun" "Ghidra" "/opt/${P}/support/ghidra.ico"
dosym -r "/opt/${P}/ghidraRun" "/usr/bin/${PN}"
}
virtual/jdk:21
virtual/jdk:21
app-arch/unzip
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | ghidra-bin-12.0.4.zip | 509952513 bytes | https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_12.0.4_build/ghidra_12.0.4_PUBLIC_20260303.zip |