Hacker News new | ask | show | jobs
by mitchtbaum 2808 days ago
What do you guys think of that cross-distro, Linux installation method?

curl -L https://... | tar xz -C /usr/local/bin

1 comments

This command actually fails if /usr/local/bin doesn't exist. He could simplify it by releasing the binary alone and running `curl -L --create-dirs -o /usr/local/bin/mole https://...`, but my guess is uncompressed it's huge. (edit: possible that the GitHub server would support `curl --compressed ...`, allowing the HTTP connection to compress it in transit)
That is already supported:

curl -L https://github.com/davrodpin/mole/releases/download/v0.2.0/m... | tar xz -C /usr/local/bin

And there are plans to implement a script to improve this process: https://github.com/davrodpin/mole/issues/19