Install this version:
emerge -a =dev-util/packer-1.16.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-util/packer-1.16.0
Or alternatively:
emerge --autounmask-write -a =dev-util/packer-1.16.0
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module shell-completion
DESCRIPTION="A tool to create identical machine images for multiple platforms"
HOMEPAGE="https://www.packer.io"
SRC_URI="https://github.com/hashicorp/packer/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-vendor.tar.xz"
LICENSE="BUSL-1.1"
# Dependent licenses
LICENSE+=" Apache-2.0 BSD BSD-2 CC0-1.0 GPL-2 ISC MIT MPL-2.0 Unicode-DFS-2016"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~riscv"
BDEPEND=">=dev-lang/go-1.26.3"
DOCS=( {README,CHANGELOG}.md )
RESTRICT+=" test"
src_compile() {
ego build -work -o "bin/${PN}" ./
}
src_install() {
dobin bin/packer
einstalldocs
dozshcomp contrib/zsh-completion/_packer
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | packer-1.16.0-vendor.tar.xz | 17793976 bytes | https://github.com/gentoo-golang-dist/packer/releases/download/v1.16.0/packer-1.16.0-vendor.tar.xz |
| DIST | packer-1.16.0.tar.gz | 748796 bytes | https://github.com/hashicorp/packer/archive/v1.16.0.tar.gz |