Installing OpenSearch from RPM and Debian packages

Package installs give you systemd-managed OpenSearch nodes on tested Linux distributions. This page covers which operating systems to plan for, how heap and host settings fit, and how package upgrades are handled.

On this page

When a package install is the right way to deploy OpenSearch

A team running Linux hosts that wants OpenSearch managed like other system services should consider an RPM or Debian package install first. The packages place OpenSearch under a systemd unit, so the node starts at boot, restarts on failure and can be checked with the same tools the team already uses for its other services. Compared with a tarball, the package gives you a fixed file layout and a service definition that your configuration management can own. Compared with Docker, Helm, the Kubernetes operator or the Ansible playbook, it keeps the process on the host rather than inside a container or cluster scheduler, which suits teams whose operating model is host-based patching and change windows.

The package route is a poor fit when your platform team already runs OpenSearch on Kubernetes, when you need several clusters built from one template with the same certificates and roles, or when you need a defined automation path for TLS and node configuration. In those cases the operator, Helm chart or Ansible playbook covers more of the setup. Before you pick the package route, confirm that your operating system appears in the tested list for the OpenSearch version you intend to run. The tested operating system list changes between releases, and Amazon Linux 2 was removed in September 2026, so check the current list in the compatibility documentation rather than the version you installed last year.

This page answers the package install question: which operating systems and versions to plan for, how the systemd service and configuration files are laid out, how to set heap size, and how package upgrades behave on a running node. It does not repeat the broader comparison of deployment methods, which the installation documentation covers, or the host settings that every production node needs, which have their own page. Treat the package install as one step in a longer plan that includes security configuration, node roles and a tested upgrade path, and confirm each of those before the first production node is built.

Choosing a package install over the other OpenSearch install methods

This table compares RPM and Debian packages with the tarball, Docker, Helm, the Kubernetes operator and the Ansible playbook, using the install methods the OpenSearch docs describe. Read each row against your host model: package installs suit teams that manage hosts with systemd, while the other methods fit container platforms or repeatable configuration across many hosts.

Install methodWhere it fitsTrade-off to weigh
RPM or Debian packageHosts managed with systemd on Rocky, Alma, Amazon Linux or Ubuntu, where the OS package manager handles upgradesYou manage each host, so configuration drift and per-host heap and host settings need your own control
TarballHosts where you want the archive contents and placement under your own control, without package-manager ownership of filesYou own service files, upgrades and startup configuration yourself
DockerContainer hosts where the sample compose file is the starting point and containers are the unit of deploymentHost settings such as vm.max_map_count still apply on the host, and volumes and the security plugin need explicit planning
Helm chartsKubernetes teams who want the official chart and values files for a default cluster layoutMemory needs, TLS and roles are set through values, and the chart does not manage cluster lifecycle beyond its templates
Kubernetes operatorKubernetes teams running several clusters or node pools that need the operator to manage the OpenSearchCluster resourceRequires operator management on Kubernetes, so it adds a control layer that package hosts do not need
Ansible playbookMany systemd Linux hosts where one playbook and inventory should produce the same configuration everywhereThe control node, inventory and version branches must be maintained, and the playbook needs its own review

Which operating systems OpenSearch 3.9 is tested on

OpenSearch 3.9 is tested on a short list of Linux distributions and one Windows release. The cards below cover each platform on that list, the one removed from it, and the checks to run before you pin an operating system version in a build.

Rocky Linux 8

Rocky Linux 8 is on the tested list for OpenSearch 3.9, so it is a supported starting point for RPM installs on systemd hosts. Confirm the exact minor release your security team approves matches the release note on the compatibility page. Pin the OS version in your base image so package installs and later upgrades run against the same platform. Ask your platform team whether your hardening baseline already covers this distribution.

Compatibility docs

Alma Linux 8

Alma Linux 8 is also tested for OpenSearch 3.9 and is a common choice where teams want a RHEL-compatible base. Treat it as a separate build target from Rocky Linux 8 in your automation, even though both appear on the same list. Verify the Java runtime and package repositories you mirror internally match what the install docs describe. Record the tested pairing in your change records.

Amazon Linux 2023

Amazon Linux 2023 is tested for OpenSearch 3.9, which makes it the tested Amazon option for package installs. Teams moving off Amazon Linux 2 need to change their AMIs, configuration management roles and any scripts that assume the older release. Check that your package mirrors and kernel settings, including vm.max_map_count, are applied in the new image. Confirm the AMI you use is the one your cloud governance policy approves.

Ubuntu 24.04

Ubuntu 24.04 is on the tested list for OpenSearch 3.9, so Debian package installs on that release are within the documented path. Use the Debian package rather than a tarball when you want systemd units and standard service paths. Confirm your patch cadence for the base OS does not outpace the versions your team has tested. Ask the vendor or your partner to confirm which kernel and libc versions your environment runs.

Amazon Linux 2 removed

Amazon Linux 2 was removed from the tested list in September 2026, so it should not be the base for a new OpenSearch 3.9 build. Existing hosts on that operating system need a plan to rebuild or move to a supported release before you upgrade OpenSearch. Map every cluster that runs on Amazon Linux 2 and set a date for each rebuild. Confirm the removal against the current compatibility page before you finalize that plan.

Windows Server 2019 outside this path

Windows Server 2019 is listed as tested for OpenSearch 3.9, but this package path covers RPM and Debian installs on Linux. A Windows deployment uses a different installation route, service model and file layout, so do not reuse Linux package runbooks for it. If Windows is a requirement, plan that build separately and confirm its install steps in the official docs. Ask your partner to scope it as its own work item.

Installation docs

How to install OpenSearch packages with systemd

This sequence takes a Rocky, Alma, Amazon Linux or Ubuntu host from a supported operating system to a running OpenSearch node with the security configuration, heap and service settings in place and a verified cluster health status.

  1. Confirm the operating system and OpenSearch version

    The engineer on the host checks the release against the compatible operating systems list for the OpenSearch version chosen, including the OS major version, since the list is version-specific. Confirm with cat /etc/os-release that the host matches a tested entry, and record the target version before changing anything. Done when the OS name, major version and target OpenSearch version are written down and match the list. Check the list again for any version you plan to use, because the docs note that Amazon Linux 2 was removed from the tested list in September 2026.

  2. Add the OpenSearch package repository

    Add the official OpenSearch yum repository on RPM-based systems or the apt repository on Ubuntu, using the repository definition from the installation docs for the chosen minor line. Import the signing key the docs specify so package signatures verify. Done when dnf makecache or apt-get update completes without errors and lists the OpenSearch repository. If the host cannot reach the repository, stop here and plan an offline mirror rather than copying packages by hand.

  3. Install the OpenSearch package

    Install the package with dnf install opensearch on Rocky, Alma or Amazon Linux, or apt-get install opensearch on Ubuntu, pinning the version when your change process requires it. The installer creates the opensearch service account and the default configuration under /etc/opensearch. Done when the package manager reports success and rpm -qi opensearch or dpkg -s opensearch shows the expected version.

  4. Set the admin password and security configuration

    Before the first start, set a strong initial admin password through the environment variable the install docs describe, and review opensearch.yml in /etc/opensearch for the security plugin settings, node name, cluster name, network host and discovery seed hosts. Keep TLS enabled for node and client traffic. Done when the password policy is met, the file parses without changes to unrelated settings, and the values match your cluster design. Record where the admin credential is stored, since a later step depends on it.

  5. Configure the heap in the JVM options

    Edit jvm.options in /etc/opensearch so the initial and maximum heap (-Xms and -Xmx) are set to the same value. The docs suggest half of available system memory as a starting point, so confirm the host memory with free -g and leave the remainder for the operating system and file system cache. Also confirm vm.max_map_count is raised on the host as the install guidance requires. Done when both heap values match each other and the host settings are persisted, not only applied for the current session.

  6. Enable and start the systemd service

    Run sudo systemctl daemon-reload, then sudo systemctl enable opensearch and sudo systemctl start opensearch, so the service starts on boot. Follow the logs with journalctl -u opensearch -f to catch configuration errors such as failed bootstrap checks. Done when systemctl status opensearch reports active (running) and the log shows the node started without bootstrap check failures.

  7. Verify cluster health

    From the host, query the REST endpoint on port 9200 with the admin credential and TLS settings, for example with curl -k -u admin if you are testing with a self-signed certificate, and replace -k` with the CA certificate in production. Confirm the reported status and node count match your design. A single-node test cluster may report yellow because replicas cannot be assigned. Done when the response returns a green or expected yellow status with the correct number of nodes, and you record the result for handover.

Setting heap size on package installs

The OpenSearch install docs suggest starting with the initial and maximum heap each set to half of available system memory. On an RPM or Debian install, you set this in the JVM options file rather than in the systemd unit, so the setting survives package upgrades. Edit the heap lines in jvm.options under the config directory of the install, typically /etc/opensearch/jvm.options, and confirm the file you edited is the one the opensearch service reads on the operating system you chose. Check the path on your own build before you rely on it, because layouts can differ between package versions and between Rocky, Alma, Amazon Linux and Ubuntu hosts.

Set -Xms and -Xmx to the same value. When the two differ, the JVM can resize the heap during operation, which causes pauses under load and makes memory behavior harder to reason about during an incident. Keep the value below the point where the operating system and the filesystem cache run short of memory, because OpenSearch depends on the page cache for search and indexing performance. Half of RAM is a starting point, not a verdict. Confirm it against the node roles you plan (a dedicated cluster manager node needs far less heap than a data node) and against the data volume and shard count you expect on that node.

Before the first start, review the host settings that the heap value does not cover. The key one is the kernel setting vm.max_map_count, which OpenSearch needs raised above the common default, and which you should set persistently through sysctl rather than only for the current session. Also confirm that the service account has the file descriptor and memory lock limits the package expects, and that the disk is sized for the data you plan to store. Treat heap sizing as a decision you revisit once you see real ingest and query patterns, and ask your team or your partner to document the chosen values and the reasons for them in the change record.

How the package install fits together on a host

The install starts with the OpenSearch package repository, which the package manager uses to fetch the RPM or Debian package onto the host. The package places the configuration files and JVM options under the host's file system, and systemd then starts the OpenSearch service that runs the node. The trust boundary sits between the host and the cluster network: TLS and the security plugin protect what crosses it, so check the configuration files and heap settings on each node before it joins the cluster.

Flow from package repository to a running node, with the host and cluster network boundary marked.

How package upgrades differ from other install paths

A package install is only the starting point. The upgrade method you choose, and the maintenance window your version falls into, decide how often you touch the nodes and how much data movement you plan for. The cards below cover the documented methods and the support rules that set your timing.

Rolling upgrades on package nodes

A rolling upgrade updates one node at a time while the cluster keeps serving requests. On RPM or Debian hosts, each step means stopping the opensearch service, upgrading the package, restarting the service and waiting for the cluster to return to green before moving on. Confirm the source and target versions support a rolling path, and check the compatibility notes for each step before you begin. Rolling is the method most teams use when they stay on the same major line.

Migration docs

Snapshot and restore

Snapshot and restore builds a new cluster, usually on new hosts, and loads your indices from a snapshot repository. The package install on the new hosts is clean, so there is no in-place package upgrade to manage. This path needs a tested snapshot repository and a cutover plan for writes that arrive during the copy. Plan for the repository storage and the time to restore your largest indices.

Remote reindexing

Remote reindexing pulls documents from an older cluster into a new one through the reindex API. It suits cases where index formats or mappings change enough that a snapshot restore will not load cleanly. Because every document is read and written again, expect the job to take longer than a restore on large datasets. Verify document counts and mappings on the target before you retire the source.

Migration Assistant

Migration Assistant is the documented option for moving workloads across several major versions in one step, for example from Elasticsearch 6.8 to OpenSearch 2.19. It can also capture live traffic for low or zero downtime. Package installs can serve as target nodes, but you should confirm the supported source and target pairs and the deployment layout with the current docs before you choose it.

Maintenance and the upgrade clock

OpenSearch versions stay in maintenance until the next major version enters maintenance or one year passes, whichever is longer. During maintenance, versions get bug fixes and security patches but no new features. Version 1 reached end of life on May 6, 2025, and version 2 is maintained through the 4.0 GA release. Track the end-of-maintenance date for your line so each package upgrade is scheduled before support lapses.

Releases page

Release cadence and patch planning

OpenSearch targets a new minor version about every eight weeks, and 3.9.0 followed 3.8.0 in the release record. Each minor release is a chance to pick up security patches, so set a regular review for your package repository pins. Decide in advance whether you apply minor updates quickly or hold to a tested cadence, and record that choice with your change process.

Minor release target
About 8 weeks

Questions teams ask before installing OpenSearch from packages

Can our own Linux team install OpenSearch from RPM or Debian packages without outside help?

Yes, many teams can, provided they already run systemd Linux servers and have someone who manages certificates, DNS and firewall rules. The package install itself is a sequence of repository setup, package installation, host settings, heap configuration and service start. The harder part is the surrounding work: a secured cluster needs TLS certificates for the transport and REST layers, a decision on the security plugin's identity backend, and a network design that separates node-to-node traffic from client access. Ask whether your team has done each of these before on a multi-node cluster, not just a single test node.

What does a package install of OpenSearch cost, and who pays for what?

The cost has three parts: the infrastructure you run the nodes on, the internal staff time to plan and operate the cluster, and any external implementation work. Package software is Apache 2.0 licensed, and the OpenSearch FAQ does not describe a paid edition, so there is no license fee to budget for the software itself. Infrastructure and staff time recur, while the design, build and handover are usually one-time. When you ask a partner for a quote, request a written scope that lists the operating systems, node count, security configuration, backup approach, upgrade method and documentation you will receive.

Which operating systems should we choose for a package-based OpenSearch install?

Choose from the systems the OpenSearch project tests. For OpenSearch 3.9, the compatible operating systems documentation lists Rocky Linux 8, Alma Linux 8, Amazon Linux 2023, Ubuntu 24.04 and Windows Server 2019. Amazon Linux 2 was removed from that list in September 2026, so existing Amazon Linux 2 hosts need an operating system plan before an upgrade. Confirm the current matrix in the compatible operating systems page for the exact version you plan to run, and align your host image, patch cadence and kernel settings with that list.

How long does it take to set up a package-based OpenSearch cluster?

The duration depends on how many nodes you run, how much of the security configuration is new to your team, and how much network and certificate work sits outside the cluster. A single test node is a short exercise, while a production cluster with dedicated cluster manager nodes, TLS on every layer and integration with your identity provider takes longer because each step needs review and testing. Ask any partner for a timeline tied to a written scope, and ask your own team to list the approvals, change windows and certificate authority steps that will add time.

What must our internal team supply before the install starts?

Plan to supply four things: Linux administration on the target hosts, an operator who owns the certificate chain and rotation process, a network design with the ports and firewall rules between clients, nodes and Dashboards, and a named owner for identity and access decisions. The Linux work covers the systemd service, the vm.max_map_count setting and the heap configuration, which the docs suggest starting at half of available system memory. Confirm before you start who approves firewall changes and who can issue certificates, because these approvals often set the schedule.

How do we handle OpenSearch package upgrades later?

Upgrades are where package installs most often drift from the plan. Each OpenSearch minor version is maintained with bug fixes and security patches, and the project targets a new minor version about every eight weeks, so you will apply upgrades on a recurring schedule. Major version moves need a separate plan: the project documents rolling upgrades, snapshot and restore, remote reindexing and Migration Assistant. Before you commit to a package-based pattern, decide who will run the patch cadence, where the test cluster lives and how the upgrade path will be documented for the next operator.

How should we scope outside help for a package install?

Ask for a fixed scope in writing before work starts. A useful scope names the target operating systems, the node count and role layout, the security plugin configuration, the TLS approach, the backup and snapshot setup, the handover documents and the testing that proves the cluster works. DeployOpen plans, implements, hardens, backs up, upgrades, documents and supports self-hosted platforms inside your own infrastructure, and most engagements are fixed-scope with deliverables and timelines agreed in advance. Ongoing upgrades and support are available as retainers, which keeps recurring work separate from the one-time build.

What security settings should we confirm before going live with a package install?

Confirm the security plugin is enabled with TLS on the transport and REST layers, that default accounts and passwords are changed, and that your identity backend is chosen and tested. The security plugin supports SAML, OpenID Connect, Active Directory and LDAP, Kerberos and JSON Web Token backends, and it provides role-based access control and audit logs. Also confirm that the service runs under its own account, that the data and log directories have restricted permissions and that the heap and system limits are set the same way on every node.

Security settings to plan before the first start

On a package install, the security plugin is configured by files that the first service start reads, so the decisions below should be made before systemctl start runs. Each card covers one setting, and together they describe what to confirm in your environment before any node joins a cluster.

TLS for node and client traffic

Plan TLS on both the transport layer between nodes and the REST layer that clients use. The Security plugin provides TLS for both, so you need certificates issued by your own CA or an approved internal authority, with subject names matching the hostnames each node advertises. Confirm who issues, stores and rotates these certificates before the first start, since changing them later means touching every node. Check the package's default security configuration files in /etc/opensearch and note which ones you will replace.

Security docs

Initial admin credentials

Set the initial admin password and the admin certificate before the cluster accepts connections. Store the credential in your approved secrets system rather than in a shell history or a ticket, and confirm that the default demo accounts are removed or disabled. Decide who holds break-glass admin access, how it is recorded, and how it is rotated after the first deployment.

Authentication backends

The Security plugin supports SAML, OpenID Connect, Active Directory, LDAP, Kerberos and JSON Web Token authentication. Pick the backend that matches your identity provider and confirm the group or claim mapping to OpenSearch roles, since that mapping decides who can read which indices. Test one backend end to end on a non-production node before enabling it for users, and confirm with your identity team how service accounts are issued.

Role-based access design

Define roles that match the work your teams do, such as log readers, index writers and cluster administrators, and map each to the identities from your chosen backend. The plugin also offers document-level and field-level security and field masking, which matter when one index holds data with different sensitivity levels. Write the role model down before the first start, because it is far easier to review than to retrofit after users and dashboards depend on it.

Audit logging

The plugin provides audit logs, but the events it records, where they are written and how long they are kept are settings you decide. Confirm the audit categories you need for your compliance and investigation work, then plan where the logs go and who can read them. Keep audit log storage separate from the indices the logs describe so that an administrator cannot quietly remove their own trail.

File permissions for configuration

The configuration directory holds certificates, password hashes and security settings, so its ownership and modes should be set before the service reads them. Keep the files owned by the service account or root, readable only by the accounts that need them, and track changes with your configuration management tool. Confirm these permissions after every package upgrade, because a package update can replace configuration files and restore defaults.

Running package-based nodes over time

Package installs stay healthy only if someone owns the day-two work: checking that the opensearch systemd service is running on every node, reading the logs after each change, and confirming that the cluster health is green before and after any maintenance window. Treat service status as a per-node check, not a cluster-level one, because a node can fall out of the cluster while the rest of the cluster still reports healthy. Export unit status and cluster health to the monitoring system you already run so a stopped service pages someone instead of being found during the next incident.

OpenSearch versions stay in maintenance until the next major version enters maintenance or one year passes, whichever is longer, and maintenance releases carry bug fixes and security patches but no new features. Plan a recurring patch window around that cadence, and confirm the end-of-maintenance date for your exact version on the OpenSearch releases page before you commit to a version line. Minor releases arrive about every eight weeks, so decide in advance whether you apply each patch promptly or on a fixed monthly schedule, and record that decision. Package managers will often pull a newer minor version unless you pin the package, so confirm your pinning or repository policy before the first automated update runs.

Rolling upgrades across package-installed nodes follow the same order every time: take a snapshot, disable shard allocation, stop one node, upgrade its package, start it, wait for it to rejoin, re-enable allocation, and wait for green status before moving to the next node. Confirm the exact steps for your target version in the migration documentation, since the sequence changes between releases. Keep a written record of each node's package version, the opensearch.yml and jvm.options files, and any drop-in overrides under /etc/systemd/system/opensearch.service.d/. Over months, undocumented edits on one host are the usual source of config drift, and a short diff of these files against a golden copy catches it before a rollout fails on one node.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.