This is how i personally do it
I dont like to use tools like scoop
or chocolatey
, specially now since we dont really need them as winget
exist
What I do is I download the last release from
https://github.com/clojure/brew-install/releases
because I am a bit paranoid, I always download the hash sha256 file and compare it vs the download file using this command
get-fileHash -Algorithm SHA256 .\clojure-tools.zip | select -ExpandProperty hash >> .\clojure-tools.zip.sha256
if the sha256 matches , unzip the clojure tools files, in the module path for powershell
you can find out your module path by running this command
$env:psmodulePath -split ';'
Select one of those folders and unzip or extract clojure-tools.zip
in it
this zip file have a ClojureTools
folder in it, this is the folder you need to add to one of your PS Module path folders
Next go inside inside this folder and unblock this file ClojureTools.psm1
you can unblock from the file properties in the gui or from the command line using this command
Unblock-File .\ClojureTools.psm1
Next Import the ClojureTools module using this command
Import-Module ClojureTools
If this import step fails it will be for one of two reasons
- You did not unblock the ClojureTools.psm1 file , or
- Your
ExcecutionPolicy
is not set to RemoteSigned
The install step does more or less the above steps except, the one about the file unblocking, I never tested it, as I dont like use install script, I like to check the sha256 hash myself and make sure its all good