elasticsearch-bin
Category: local-install – a plain AUR package we don’t maintain, built
and published to archlinuxaba so the cluster can install it. Lives
permanently at /data/INSTALL/elasticsearch-bin with no arch/ counterpart,
registered in arch/scripts/install_only_packages as
local-install/elasticsearch-bin (see
[[project_local_install_data_install]] and
[[feedback_local_install_rebuilds]] for the workflow).
Upstream AUR maintainers: thorko / Vladislav Minakov. Not installed on
euronuc itself – this was added for the repo, not found via yay -Qu.
2026-11-28: added and published 9.5.7-0, x86_64
Asked for elasticsearch first, switched to elasticsearch-bin on the
user’s instruction after the source package’s problems became visible. Both
package Elastic 9.5.7; the difference matters:
elasticsearch (AUR) |
elasticsearch-bin (what we use) |
|
|---|---|---|
| builds | ./gradlew :distribution:archives:linux-tar:assemble from the GitHub source tarball |
no build() at all – repacks Elastic’s official artifacts.elastic.co binary tarball |
arch=() |
('aarch64' 'x86_64') |
("x86_64") |
| JDK | deletes the bundled one, symlinks java-21-openjdk, depends=(jdk21-openjdk) |
keeps Elastic’s bundled JDK, depends=(java-runtime) |
| debug pkg | yes | no (options=("!debug")) |
The source package’s aarch64 support is broken, independently of our
infrastructure: arch=() claims aarch64, but package() hardcodes
${pkgname}-${pkgver}-SNAPSHOT-linux-x86_64.tar.gz in its tar -xf, while a
gradle build on aarch64 produces ...-linux-aarch64.tar.gz. So it would fail
in package() on a board even with the cluster up. Noting it because the
arch=() line looks like aarch64 is supported.
The -bin route is also the more robust one on a rolling distro, which is
the irony worth recording: the source PKGBUILD’s own comments say the bundled
JDK can’t be auto-detected because “Elasticsearch falls behind java updates
too often for a rolling release platform”, and it then pins
java-21-openjdk by hand. -bin ships Elastic’s own tested JDK and sidesteps
that whole class of breakage.
Build is fast (download + repack, no compile) but the result is large:
685 MB for the single .pkg.tar.zst – bundled JDK plus every ES module.
Worth knowing before a rebuild, given /data runs fairly full.
namcap output is a wall of
E: ELF file ('usr/share/elasticsearch/jdk/bin/...') outside of a valid path.
– one per bundled JDK binary. Inherent to a vendored-runtime package, not
fixable here and not a problem. Don’t read it as a packaging error.
repo_publish.sh’s ERROR: Package matching 'elasticsearch-bin' not found.
is the expected first-time-add message for a package not yet in the remote db
(same as noted in [[kwin-x11]]’s first publish), not a failure.
Relationship to private/elasticsearch6
Unrelated and coexisting: arch/private/elasticsearch6 is 6.3.2-3 (any),
a different pkgname and major version. elasticsearch-bin’s
conflicts=('elasticsearch7' 'elasticsearch-bin')-style list in the source
package names elasticsearch7/elasticsearch-bin but not elasticsearch6,
and elasticsearch-bin itself declares no conflicts at all, so both can sit
in the repo together.