|
| 1 | + |
| 2 | +## Download/install binaries |
| 3 | + |
| 4 | +- The latest binary executables are available |
| 5 | +as the result of the Continuous-Integration (CI) process. |
| 6 | +- I.e., they are built automatically right from the source code at every git release by [GitHub Actions](https://docs.github.com/en/actions). |
| 7 | +- There are two ways to get/install such binary executables |
| 8 | + * Using the **binary executables** directly, or |
| 9 | + * Using **packages** for your distro |
| 10 | + |
| 11 | +### The binary executables |
| 12 | + |
| 13 | +- The latest binary executables are directly available under |
| 14 | +https://github.com/{{.User}}/{{.Name}}/releases/latest |
| 15 | +- Pick & choose the one that suits your OS and its architecture. E.g., for Linux, it would be the `{{.Name}}_verxx_linux_amd64.tar.gz` file. |
| 16 | +- Available OS for binary executables are |
| 17 | + * Linux |
| 18 | + * Mac OS (darwin) |
| 19 | + * Windows |
| 20 | +- If your OS and its architecture is not available in the download list, please let me know and I'll add it. |
| 21 | +- The manual installation is just to unpack it and move/copy the binary executable to somewhere in `PATH`. For example, |
| 22 | + |
| 23 | +``` sh |
| 24 | +tar -xvf {{.Name}}_*_linux_amd64.tar.gz |
| 25 | +sudo mv -v {{.Name}}_*_linux_amd64/{{.Name}} /usr/local/bin/ |
| 26 | +rmdir -v {{.Name}}_*_linux_amd64 |
| 27 | +``` |
| 28 | + |
| 29 | + |
| 30 | +### Distro package |
| 31 | + |
| 32 | +- [Packages available for Linux distros](https://cloudsmith.io/~suntong/repos/repo/packages/) are |
| 33 | + * [Alpine Linux](https://cloudsmith.io/~suntong/repos/repo/setup/#formats-alpine) |
| 34 | + * [Debian](https://cloudsmith.io/~suntong/repos/repo/setup/#formats-deb) |
| 35 | + * [RedHat](https://cloudsmith.io/~suntong/repos/repo/setup/#formats-rpm) |
| 36 | + |
| 37 | +The repo setup instruction url has been given above. |
| 38 | +For example, for [Debian](https://cloudsmith.io/~suntong/repos/repo/setup/#formats-deb) -- |
| 39 | + |
| 40 | +### Debian package |
| 41 | + |
| 42 | + |
| 43 | +```sh |
| 44 | +curl -1sLf \ |
| 45 | + 'https://dl.cloudsmith.io/public/suntong/repo/setup.deb.sh' \ |
| 46 | + | sudo -E bash |
| 47 | + |
| 48 | +# That's it. You then can do your normal operations, like |
| 49 | + |
| 50 | +sudo apt-get update |
| 51 | +apt-cache policy {{.Name}} |
| 52 | + |
| 53 | +sudo apt-get install -y {{.Name}} |
| 54 | +``` |
| 55 | + |
| 56 | +## Install Source |
| 57 | + |
| 58 | +To install the source code instead: |
| 59 | + |
| 60 | +``` |
| 61 | +go install {{.ProjectURL}} |
| 62 | +``` |
| 63 | + |
| 64 | +## Author |
| 65 | + |
| 66 | +Tong SUN |
| 67 | + |
| 68 | + |
| 69 | +_Powered by_ [**WireFrame**](https://github.com/go-easygen/wireframe) |
| 70 | +[](http://godoc.org/github.com/go-easygen/wireframe) |
| 71 | +the _one-stop wire-framing solution_ for Go cli based projects, from _init_ to _deploy_. |
0 commit comments