Dumb question; how to install on Windows from the binary release? #4804
-
I have the I realize this is a multi-call binary so running Right now I am running
I haven't found an elegant way to parse the currently defined functions so I copy the output of the $utils = "arch", "b2sum", "b3sum", "base32", "base64", "basename", "basenc", "cat", "cksum", "comm", "cp",
"csplit", "cut", "date", "dd", "df", "dir", "dircolors", "dirname", "du", "echo", "env", "expand", "expr",
"factor", "false", "fmt", "fold", "hashsum", "head", "hostname", "join", "link", "ln", "ls", "md5sum", "mkdir",
"mktemp", "more", "mv", "nl", "nproc", "numfmt", "od", "paste", "pr", "printenv", "printf", "ptx", "pwd",
"readlink", "realpath", "relpath", "rm", "rmdir", "seq", "sha1sum", "sha224sum", "sha256sum", "sha3-224sum",
"sha3-256sum", "sha3-384sum", "sha3-", "512sum", "sha384sum", "sha3sum", "sha512sum", "shake128sum", "shake256sum",
"shred", "shuf", "sleep", "sort", "split", "sum", "sync", "tac", "tail", "tee", "test", "touch", "tr", "true",
"truncate", "tsort", "uname", "unexpand", "uniq", "unlink", "vdir", "wc", "whoami", "yes"
Foreach ($util in $utils) {
$util_path = (-join(".\", $util, ".exe"))
New-Item -ItemType SymbolicLink -Path $util_path -Target ".\coreutils.exe"
} Which gives me the utils as symlinks in a directory that I add to my $PATH variable But I can't help but feel this isn't how we should be installing the utils. How do you do it? How are you supposed to do it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The symlinks and adding the directory sounds about right actually if you do it manually. Generally, we recommend using a package manager though. On Windows, you can use |
Beta Was this translation helpful? Give feedback.
The symlinks and adding the directory sounds about right actually if you do it manually. Generally, we recommend using a package manager though. On Windows, you can use
scoop
for example, which should do all of that for you. At some point we had contributors working on packaging uutils for the Windows store as well, but I think that work has stalled for now.