Skip to content

Commit da458cc

Browse files
authored
Update the steps for adding the neo4j repo to the apt manager (#2736) (#2739)
Trello card: https://trello.com/c/JN3MgzRE/990-update-debian-based-distribution, which is about a problem with the location where the key is stored after dearmoring, which Debian states as being deprecated.
1 parent e07eb4b commit da458cc

File tree

1 file changed

+30
-6
lines changed

1 file changed

+30
-6
lines changed

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

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,45 @@ sudo update-java-alternatives --jre --set <java21name>
5858
[[debian-installation]]
5959
== Installation
6060

61+
To install Neo4j using the Debian package manager `apt`, you need to add the Neo4j repository to your system's list of package sources, and then install the desired Neo4j package.
62+
The Debian package is available from https://debian.neo4j.com.
6163

6264
[[debian-add-repository]]
6365
=== Add the repository
6466

65-
The Debian package is available from https://debian.neo4j.com.
67+
Run the following commands as a sudo user to add the Neo4j repository to the package manager:
6668

67-
. To add the Neo4j repository to the package manager, run the following as a `sudo` user:
69+
. Create the keyrings directory for the Neo4j GPG key if it does not already exist:
6870
+
69-
[source, bash]
71+
[source,bash]
7072
----
71-
wget -O - https://debian.neo4j.com/neotechnology.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/neotechnology.gpg
72-
echo 'deb [signed-by=/etc/apt/keyrings/neotechnology.gpg] https://debian.neo4j.com stable latest' | sudo tee -a /etc/apt/sources.list.d/neo4j.list
73-
sudo apt-get update
73+
sudo mkdir -p /etc/apt/keyrings
7474
----
75+
76+
. Download and install the Neo4j GPG key:
7577
+
78+
[source,bash]
79+
----
80+
wget -O - https://debian.neo4j.com/neotechnology.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/neotechnology.gpg > /dev/null
81+
----
82+
. Ensure the key file is world-readable:
83+
+
84+
[source,bash]
85+
----
86+
sudo chmod a+r /etc/apt/keyrings/neotechnology.gpg
87+
----
88+
. Add the Neo4j APT repository:
89+
+
90+
[source,bash]
91+
----
92+
echo 'deb [signed-by=/etc/apt/keyrings/neotechnology.gpg] https://debian.neo4j.com stable latest' | sudo -a tee /etc/apt/sources.list.d/neo4j.list > /dev/null
93+
----
94+
. Update package lists:
95+
+
96+
[source,bash]
97+
----
98+
sudo apt-get update
99+
----
76100
. Once the repository has been added to `apt`, you can verify which Neo4j versions are available by running:
77101
+
78102
[source, bash]

0 commit comments

Comments
 (0)