Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 31 additions & 22 deletions modules/ROOT/pages/installation/linux/rpm.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,40 +31,49 @@ Installation instructions can be found on the manufacturer's website:
[[linux-rpm-install-standard]]
=== Set up the repository

To add the Neo4j repository to the package manager, run the following command as a sudo user:

[source, shell, subs="attributes"]
. Import the Neo4j GPG public key into the system’s RPM keyring.
The key is required to verify the authenticity of the Neo4j packages you will install.
+
[source, bash]
----
rpm --import https://debian.neo4j.com/neotechnology.gpg.key
----

Create a `neo4j.repo` file:

[source, shell, subs="attributes"]
. Create a `neo4j.repo` file in the `/etc/yum.repos.d/` directory.
This file contains the repository configuration for Neo4j.
+
[source, bash]
----
cat << EOF > /etc/yum.repos.d/neo4j.repo
cat <<EOF > /etc/yum.repos.d/neo4j.repo
[neo4j]
name=Neo4j RPM Repository
baseurl=https://yum.neo4j.com/stable/latest
enabled=1
gpgcheck=1
EOF
----

+
[NOTE]
====
If you are upgrading from Neo4j 5.x or earlier, you may need to clear the package manager cache before Neo4j packages become available:

`yum clean dbcache`
====

. Verify that the Neo4j repository is set up correctly by listing the available Neo4j packages versions:
+
[source, bash]
----
yum list neo4j --showduplicates
----

=== Install Neo4j

Install Neo4j as `root` using the following commands depending on which edition you are using:

* Community Edition
+
[source, shell, subs="attributes"]
[source, bash, subs="attributes"]
----
yum install neo4j-{neo4j-version-exact}
----
Expand All @@ -75,7 +84,7 @@ Accept either the commercial or the evaluation license agreement before running
The following are examples of using an interactive prompt and a non-interactive installation:
+
.Interactive installation of Enterprise Edition under the commercial license
[source, shell, subs="attributes"]
[source, bash, subs="attributes"]
----
yum install neo4j-enterprise-{neo4j-version-exact}
----
Expand All @@ -86,7 +95,7 @@ This should be done in the same line as the package is installed, to ensure bash
As in the following example:
+
.Non-interactive installation of Enterprise Edition under the commercial license
[source, shell, subs="attributes"]
[source, bash, subs="attributes"]
----
NEO4J_ACCEPT_LICENSE_AGREEMENT=yes yum install neo4j-enterprise-{neo4j-version-exact}
----
Expand All @@ -98,7 +107,7 @@ For SUSE-based distributions, the steps are as follows:

. Use the following as `root` to add the repository:
+
[source, shell, subs="attributes"]
[source, bash, subs="attributes"]
----
zypper addrepo --refresh https://yum.neo4j.com/stable/latest neo4j-repository
----
Expand All @@ -107,7 +116,7 @@ zypper addrepo --refresh https://yum.neo4j.com/stable/latest neo4j-repository
+
* Community Edition
+
[source, shell, subs="attributes"]
[source, bash, subs="attributes"]
----
zypper install neo4j-{neo4j-version-exact}
----
Expand All @@ -118,7 +127,7 @@ Accept either the commercial or the evaluation license agreement before running
The following are examples of using an interactive prompt and a non-interactive installation:
+
.Interactive installation of Enterprise Edition under the commercial license
[source, shell, subs="attributes"]
[source, bash, subs="attributes"]
----
zypper install neo4j-enterprise-{neo4j-version-exact}
----
Expand All @@ -127,7 +136,7 @@ You have to choose either a link:https://legal.neo4j.com/[commercial license] or
For a non-interactive installation, you can set the `NEO4J_ACCEPT_LICENSE_AGREEMENT` to `yes` (for the commercial license) or `eval` (for the evaluation license) as in the following example:
+
.Non-interactive installation of Enterprise Edition under the commercial license
[source, shell, subs="attributes"]
[source, bash, subs="attributes"]
----
NEO4J_ACCEPT_LICENSE_AGREEMENT=yes zypper install neo4j-enterprise-{neo4j-version-exact}
----
Expand Down Expand Up @@ -176,7 +185,7 @@ This must be one single command, and Neo4j Cypher Shell must be the first packag
+
* Community Edition
+
[source, shell, subs="attributes"]
[source, bash, subs="attributes"]
----
rpm --install cypher-shell-{neo4j-version-exact}-1.noarch.rpm neo4j-{neo4j-version-exact}-1.noarch.rpm
----
Expand All @@ -186,14 +195,14 @@ rpm --install cypher-shell-{neo4j-version-exact}-1.noarch.rpm neo4j-{neo4j-versi
Accept either the commercial or the evaluation license agreement before running the Neo4j Enterprise Edition.
The following example uses an interactive prompt:
+
[source, shell, subs="attributes"]
[source, bash, subs="attributes"]
----
rpm --install cypher-shell-{neo4j-version-exact}-1.noarch.rpm neo4j-enterprise-{neo4j-version-exact}-1.noarch.rpm
----
You have to choose either a link:https://legal.neo4j.com/[commercial license] or an link:https://neo4j.com/terms/enterprise_us/[evaluation license] before the interactive installation is allowed to complete.
For a non-interactive installation, you can set the `NEO4J_ACCEPT_LICENSE_AGREEMENT` to `yes` (for the commercial license) or `eval` (for the evaluation license) as in the following example:
+
[source, shell, subs="attributes"]
[source, bash, subs="attributes"]
----
NEO4J_ACCEPT_LICENSE_AGREEMENT=yes rpm --install cypher-shell-{neo4j-version-exact}-1.noarch.rpm neo4j-enterprise-{neo4j-version-exact}-1.noarch.rpm
----
Expand All @@ -203,7 +212,7 @@ NEO4J_ACCEPT_LICENSE_AGREEMENT=yes rpm --install cypher-shell-{neo4j-version-exa

To enable Neo4j to start automatically on system boot, run the following command:

[source, shell]
[source, bash]
----
systemctl enable neo4j
----
Expand All @@ -227,7 +236,7 @@ Follow these steps to uninstall Neo4j:
. (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data.
. Uninstall Neo4j:
+
[source, shell]
---
[source, bash]
----
sudo yum remove neo4j
---
----