Install this version:
emerge -a =dev-util/hadolint-bin-2.15.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-util/hadolint-bin-2.15.1
Or alternatively:
emerge --autounmask-write -a =dev-util/hadolint-bin-2.15.1
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=9
MY_PN="${PN%-bin}"
MY_URI="https://github.com/${MY_PN}/${MY_PN}/releases/download/v${PV}/${MY_PN}"
DESCRIPTION="Dockerfile linter, validate inline bash"
HOMEPAGE="https://github.com/hadolint/hadolint"
SRC_URI="
amd64? ( ${MY_URI}-linux-x86_64 )
arm64? ( ${MY_URI}-linux-arm64 )
"
S="${WORKDIR}"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"
RDEPEND="!dev-util/hadolint"
QA_PREBUILT="usr/bin/hadolint"
src_unpack() {
use amd64 && edo cp "${DISTDIR}"/hadolint-linux-x86_64 ./hadolint
use arm64 && edo cp "${DISTDIR}"/hadolint-linux-arm64 ./hadolint
}
src_install() {
dobin hadolint
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | hadolint-linux-arm64 | 60491096 bytes | https://github.com/hadolint/hadolint/releases/download/v2.15.1/hadolint-linux-arm64 |
| DIST | hadolint-linux-x86_64 | 55661096 bytes | https://github.com/hadolint/hadolint/releases/download/v2.15.1/hadolint-linux-x86_64 |