@@ -50,40 +50,49 @@ Installation instructions can be found on the manufacturer's website:
5050[[linux-rpm-install-standard]]
5151=== Set up the repository
5252
53- To use the repository for generally available versions of Neo4j, run the following as `root` to add the repository:
54-
55- [source, shell, subs="attributes"]
53+ . Import the Neo4j GPG public key into the system’s RPM keyring.
54+ The key is required to verify the authenticity of the Neo4j packages you will install.
55+ +
56+ [source, bash]
5657----
5758rpm --import https://debian.neo4j.com/neotechnology.gpg.key
5859----
5960
60- To create a `neo4j.repo` file, run the following command:
61-
62- [source, shell, subs="attributes"]
61+ . Create a `neo4j.repo` file in the `/etc/yum.repos.d/` directory.
62+ This file contains the repository configuration for Neo4j.
63+ +
64+ [source, bash]
6365----
64- cat << EOF > /etc/yum.repos.d/neo4j.repo
66+ cat <<EOF > /etc/yum.repos.d/neo4j.repo
6567[neo4j]
6668name=Neo4j RPM Repository
6769baseurl=https://yum.neo4j.com/stable/{neo4j-version}
6870enabled=1
6971gpgcheck=1
7072EOF
7173----
72-
74+ +
7375[NOTE]
7476====
7577If you are upgrading from Neo4j 4.4 or earlier, you may need to clear the package manager cache before Neo4j packages become available:
7678
7779`yum clean dbcache`
7880====
7981
82+ . Verify that the Neo4j repository is set up correctly by listing the available Neo4j packages versions:
83+ +
84+ [source, bash]
85+ ----
86+ yum list neo4j --showduplicates
87+ ----
88+
8089=== Install Neo4j
8190
8291Install Neo4j as `root` using the following commands depending on which edition you are using:
8392
8493* Community Edition
8594+
86- [source, shell , subs="attributes"]
95+ [source, bash , subs="attributes"]
8796----
8897yum install neo4j-{neo4j-version-exact}
8998----
@@ -94,7 +103,7 @@ From Neo4j 5.4 onwards, you are required to accept either the commercial or the
94103The following are examples of using an interactive prompt and a non-interactive installation:
95104+
96105.Interactive installation of Enterprise Edition under the commercial license
97- [source, shell , subs="attributes"]
106+ [source, bash , subs="attributes"]
98107----
99108yum install neo4j-enterprise-{neo4j-version-exact}
100109----
@@ -105,7 +114,7 @@ This should be done in the same line as the package is installed, to ensure bash
105114As in the following example:
106115+
107116.Non-interactive installation of Enterprise Edition under the commercial license
108- [source, shell , subs="attributes"]
117+ [source, bash , subs="attributes"]
109118----
110119NEO4J_ACCEPT_LICENSE_AGREEMENT=yes yum install neo4j-enterprise-{neo4j-version-exact}
111120----
@@ -117,7 +126,7 @@ For SUSE-based distributions, the steps are as follows:
117126
118127. Use the following as `root` to add the repository:
119128+
120- [source, shell , subs="attributes"]
129+ [source, bash , subs="attributes"]
121130----
122131zypper addrepo --refresh https://yum.neo4j.com/stable/{neo4j-version} neo4j-repository
123132----
@@ -126,7 +135,7 @@ zypper addrepo --refresh https://yum.neo4j.com/stable/{neo4j-version} neo4j-repo
126135+
127136* Community Edition
128137+
129- [source, shell , subs="attributes"]
138+ [source, bash , subs="attributes"]
130139----
131140zypper install neo4j-{neo4j-version-exact}
132141----
@@ -137,7 +146,7 @@ From Neo4j 5.4 onwards, you are required to accept either the commercial or the
137146The following are examples of using an interactive prompt and a non-interactive installation:
138147+
139148.Interactive installation of Enterprise Edition under the commercial license
140- [source, shell , subs="attributes"]
149+ [source, bash , subs="attributes"]
141150----
142151zypper install neo4j-enterprise-{neo4j-version-exact}
143152----
@@ -146,7 +155,7 @@ You have to choose either a link:https://legal.neo4j.com/[commercial license] or
146155For 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:
147156+
148157.Non-interactive installation of Enterprise Edition under the commercial license
149- [source, shell , subs="attributes"]
158+ [source, bash , subs="attributes"]
150159----
151160NEO4J_ACCEPT_LICENSE_AGREEMENT=yes zypper install neo4j-enterprise-{neo4j-version-exact}
152161----
@@ -201,7 +210,7 @@ For later versions, you can install them separately but still need to install Cy
201210+
202211* Community Edition
203212+
204- [source, shell , subs="attributes"]
213+ [source, bash , subs="attributes"]
205214----
206215rpm --install cypher-shell-{neo4j-version-exact}-1.noarch.rpm neo4j-{neo4j-version-exact}-1.noarch.rpm
207216----
@@ -211,14 +220,14 @@ rpm --install cypher-shell-{neo4j-version-exact}-1.noarch.rpm neo4j-{neo4j-versi
211220From Neo4j 5.4 onwards, you are required to accept either the commercial or the evaluation license agreement before running the Neo4j Enterprise Edition.
212221The following example uses an interactive prompt:
213222+
214- [source, shell , subs="attributes"]
223+ [source, bash , subs="attributes"]
215224----
216225rpm --install cypher-shell-{neo4j-version-exact}-1.noarch.rpm neo4j-enterprise-{neo4j-version-exact}-1.noarch.rpm
217226----
218227You 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.
219228For 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:
220229+
221- [source, shell , subs="attributes"]
230+ [source, bash , subs="attributes"]
222231----
223232NEO4J_ACCEPT_LICENSE_AGREEMENT=yes rpm --install cypher-shell-{neo4j-version-exact}-1.noarch.rpm neo4j-enterprise-{neo4j-version-exact}-1.noarch.rpm
224233----
@@ -228,7 +237,7 @@ NEO4J_ACCEPT_LICENSE_AGREEMENT=yes rpm --install cypher-shell-{neo4j-version-exa
228237
229238To enable Neo4j to start automatically on system boot, run the following command:
230239
231- [source, shell ]
240+ [source, bash ]
232241----
233242systemctl enable neo4j
234243----
@@ -252,7 +261,7 @@ Follow these steps to uninstall Neo4j:
252261. (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data.
253262. Uninstall Neo4j:
254263+
255- [source, shell ]
256- ---
264+ [source, bash ]
265+ ----
257266sudo yum remove neo4j
258- ---
267+ ----
0 commit comments