From 26c88839b087f236c4caf2874652f3c4589ed337 Mon Sep 17 00:00:00 2001 From: John Practicalli <250870+practicalli-john@users.noreply.github.com> Date: Mon, 7 Aug 2023 10:14:41 +0100 Subject: [PATCH] install: unattended alternative local location for Clojure CLI Signed-off-by: John Practicalli <250870+practicalli-john@users.noreply.github.com> --- docs/install/clojure-cli.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/install/clojure-cli.md b/docs/install/clojure-cli.md index 9dda430b1..7773ba6dd 100644 --- a/docs/install/clojure-cli.md +++ b/docs/install/clojure-cli.md @@ -25,6 +25,16 @@ The Clojure CLI automatically downloads all library dependencies, including the The installation creates `/usr/local/bin/clojure`, `/usr/local/bin/clj` wrapper and `/usr/local/lib/clojure` directory. + ??? HINT "Use alternative location - unattended install" + `--prefix` option specifies an alternative lolcation for the Clojure CLI install. + + When permissions are not available or for automating the install without password prompt, use a local user specific install, e.g. + ```shell + curl -O https://download.clojure.org/install/linux-install.sh && \ + chmod +x linux-install.sh && \ + ./linux-install.sh --prefix $HOME/.local/ + ``` + ??? INFO "Include version number for specific release" Clojure CLI linux install scripts include a number in their name to signify the version of Clojure and the version of Clojure CLI.