Skip to content

Commit

Permalink
install: unattended alternative local location for Clojure CLI
Browse files Browse the repository at this point in the history
Signed-off-by: John Practicalli <[email protected]>
  • Loading branch information
practicalli-johnny authored Aug 7, 2023
1 parent 5646ac2 commit 26c8883
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/install/clojure-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 26c8883

Please sign in to comment.