Skip to content

Commit 9ad86d1

Browse files
committed
update instructions
1 parent 939d4e1 commit 9ad86d1

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

content/guides/install_clojure.adoc

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,17 @@ ifdef::env-github,env-browser[:outfilesuffix: .adoc]
99

1010
toc::[]
1111

12+
== Intro
13+
14+
Clojure (the language) is provided as a Java ARchive (JAR) file, available in the https://maven.apache.org/repository/[Maven Central Repository], a public repository for JVM-based artifacts. If needed, you can find more detailed version information on the <<xref/../../../releases/downloads#,Releases>> page.
15+
16+
This page concerns the command-line tool (the Clojure CLI). This tool (used by the commands `clojure` and `clj`) can download Clojure itself and other Clojure or JVM-based libraries. **Any version of the Clojure CLI can download or use any version of the Clojure language itself (they are independent).**
17+
18+
The version numbers of the language and the CLI are separate but related. The Clojure language has a 3 part-version (like `1.11.1`) and the Clojure CLI has a 4-part version (like `1.11.1.1413`). The leading 3 parts of the CLI version indicate which version of the Clojure language will be used by default in a REPL, unless you specify otherwise in the <<xref/../../../reference/deps_edn#,deps.edn>> configuration file.
19+
1220
== Mac OS instructions
1321

14-
Prerequisites: <<install_clojure#brew,brew>>, <<install_clojure#java,Java>>
22+
Prerequisites: <<install_clojure#java,Java>>, <<install_clojure#brew,brew>>
1523

1624
This adds the commands `clojure` and `clj` to your system from the https://github.com/clojure/homebrew-tools[clojure/tools tap]:
1725

@@ -20,6 +28,13 @@ This adds the commands `clojure` and `clj` to your system from the https://githu
2028
brew install clojure/tools/clojure
2129
----
2230

31+
If you already have the CLI installed, you can use this command to upgrade to the latest version:
32+
33+
[source,shell]
34+
----
35+
brew upgrade clojure/tools/clojure
36+
----
37+
2338
== Linux instructions
2439

2540
Prerequisites: <<install_clojure#java,Java>>, `bash`, `curl`, `rlwrap`
@@ -132,6 +147,6 @@ Check your Java version by running `java --version`. If that's not Temurin 21, t
132147
echo 'export PATH="/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/bin:$PATH"' >> ~/.zshrc
133148
----
134149

135-
== More information
150+
== Installing archive or prerelease versions of the CLI
136151

137-
For other versions of the Clojure command-line tools, see the <<xref/../../releases/tools#,changelog>> for version history and the https://github.com/clojure/homebrew-tools[Clojure tap] for info on installing older versions or newer prereleases instead.
152+
For other versions of the Clojure CLI, see the <<xref/../../releases/tools#,changelog>> for version history and the https://github.com/clojure/homebrew-tools[Clojure tap] for info on installing older versions or newer prereleases instead.

0 commit comments

Comments
 (0)