Skip to content

Commit cc90f60

Browse files
committed
Update the Set up the repository for Linux rpm (#2475)
1 parent d58120d commit cc90f60

File tree

1 file changed

+31
-22
lines changed
  • modules/ROOT/pages/installation/linux

1 file changed

+31
-22
lines changed

modules/ROOT/pages/installation/linux/rpm.adoc

Lines changed: 31 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,40 +31,49 @@ Installation instructions can be found on the manufacturer's website:
3131
[[linux-rpm-install-standard]]
3232
=== Set up the repository
3333

34-
To add the Neo4j repository to the package manager, run the following command as a sudo user:
35-
36-
[source, shell, subs="attributes"]
34+
. Import the Neo4j GPG public key into the system’s RPM keyring.
35+
The key is required to verify the authenticity of the Neo4j packages you will install.
36+
+
37+
[source, bash]
3738
----
3839
rpm --import https://debian.neo4j.com/neotechnology.gpg.key
3940
----
4041

41-
Create a `neo4j.repo` file:
42-
43-
[source, shell, subs="attributes"]
42+
. Create a `neo4j.repo` file in the `/etc/yum.repos.d/` directory.
43+
This file contains the repository configuration for Neo4j.
44+
+
45+
[source, bash]
4446
----
45-
cat << EOF > /etc/yum.repos.d/neo4j.repo
47+
cat <<EOF > /etc/yum.repos.d/neo4j.repo
4648
[neo4j]
4749
name=Neo4j RPM Repository
4850
baseurl=https://yum.neo4j.com/stable/latest
4951
enabled=1
5052
gpgcheck=1
5153
EOF
5254
----
53-
55+
+
5456
[NOTE]
5557
====
5658
If you are upgrading from Neo4j 5.x or earlier, you may need to clear the package manager cache before Neo4j packages become available:
5759
5860
`yum clean dbcache`
5961
====
6062

63+
. Verify that the Neo4j repository is set up correctly by listing the available Neo4j packages versions:
64+
+
65+
[source, bash]
66+
----
67+
yum list neo4j --showduplicates
68+
----
69+
6170
=== Install Neo4j
6271

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

6574
* Community Edition
6675
+
67-
[source, shell, subs="attributes"]
76+
[source, bash, subs="attributes"]
6877
----
6978
yum install neo4j-{neo4j-version-exact}
7079
----
@@ -75,7 +84,7 @@ Accept either the commercial or the evaluation license agreement before running
7584
The following are examples of using an interactive prompt and a non-interactive installation:
7685
+
7786
.Interactive installation of Enterprise Edition under the commercial license
78-
[source, shell, subs="attributes"]
87+
[source, bash, subs="attributes"]
7988
----
8089
yum install neo4j-enterprise-{neo4j-version-exact}
8190
----
@@ -86,7 +95,7 @@ This should be done in the same line as the package is installed, to ensure bash
8695
As in the following example:
8796
+
8897
.Non-interactive installation of Enterprise Edition under the commercial license
89-
[source, shell, subs="attributes"]
98+
[source, bash, subs="attributes"]
9099
----
91100
NEO4J_ACCEPT_LICENSE_AGREEMENT=yes yum install neo4j-enterprise-{neo4j-version-exact}
92101
----
@@ -98,7 +107,7 @@ For SUSE-based distributions, the steps are as follows:
98107

99108
. Use the following as `root` to add the repository:
100109
+
101-
[source, shell, subs="attributes"]
110+
[source, bash, subs="attributes"]
102111
----
103112
zypper addrepo --refresh https://yum.neo4j.com/stable/latest neo4j-repository
104113
----
@@ -107,7 +116,7 @@ zypper addrepo --refresh https://yum.neo4j.com/stable/latest neo4j-repository
107116
+
108117
* Community Edition
109118
+
110-
[source, shell, subs="attributes"]
119+
[source, bash, subs="attributes"]
111120
----
112121
zypper install neo4j-{neo4j-version-exact}
113122
----
@@ -118,7 +127,7 @@ Accept either the commercial or the evaluation license agreement before running
118127
The following are examples of using an interactive prompt and a non-interactive installation:
119128
+
120129
.Interactive installation of Enterprise Edition under the commercial license
121-
[source, shell, subs="attributes"]
130+
[source, bash, subs="attributes"]
122131
----
123132
zypper install neo4j-enterprise-{neo4j-version-exact}
124133
----
@@ -127,7 +136,7 @@ You have to choose either a link:https://legal.neo4j.com/[commercial license] or
127136
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:
128137
+
129138
.Non-interactive installation of Enterprise Edition under the commercial license
130-
[source, shell, subs="attributes"]
139+
[source, bash, subs="attributes"]
131140
----
132141
NEO4J_ACCEPT_LICENSE_AGREEMENT=yes zypper install neo4j-enterprise-{neo4j-version-exact}
133142
----
@@ -176,7 +185,7 @@ This must be one single command, and Neo4j Cypher Shell must be the first packag
176185
+
177186
* Community Edition
178187
+
179-
[source, shell, subs="attributes"]
188+
[source, bash, subs="attributes"]
180189
----
181190
rpm --install cypher-shell-{neo4j-version-exact}-1.noarch.rpm neo4j-{neo4j-version-exact}-1.noarch.rpm
182191
----
@@ -186,14 +195,14 @@ rpm --install cypher-shell-{neo4j-version-exact}-1.noarch.rpm neo4j-{neo4j-versi
186195
Accept either the commercial or the evaluation license agreement before running the Neo4j Enterprise Edition.
187196
The following example uses an interactive prompt:
188197
+
189-
[source, shell, subs="attributes"]
198+
[source, bash, subs="attributes"]
190199
----
191200
rpm --install cypher-shell-{neo4j-version-exact}-1.noarch.rpm neo4j-enterprise-{neo4j-version-exact}-1.noarch.rpm
192201
----
193202
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.
194203
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:
195204
+
196-
[source, shell, subs="attributes"]
205+
[source, bash, subs="attributes"]
197206
----
198207
NEO4J_ACCEPT_LICENSE_AGREEMENT=yes rpm --install cypher-shell-{neo4j-version-exact}-1.noarch.rpm neo4j-enterprise-{neo4j-version-exact}-1.noarch.rpm
199208
----
@@ -203,7 +212,7 @@ NEO4J_ACCEPT_LICENSE_AGREEMENT=yes rpm --install cypher-shell-{neo4j-version-exa
203212

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

206-
[source, shell]
215+
[source, bash]
207216
----
208217
systemctl enable neo4j
209218
----
@@ -227,7 +236,7 @@ Follow these steps to uninstall Neo4j:
227236
. (Optional) Create a xref:/backup-restore/index.adoc[backup] to avoid losing your data.
228237
. Uninstall Neo4j:
229238
+
230-
[source, shell]
231-
---
239+
[source, bash]
240+
----
232241
sudo yum remove neo4j
233-
---
242+
----

0 commit comments

Comments
 (0)