2021-07-15 19:15:07 +01:00
|
|
|
# Manual install
|
|
|
|
|
|
|
|
|
|
## macOS and Linux
|
|
|
|
|
|
2021-08-12 15:05:30 +01:00
|
|
|
See the [releases page](https://github.com/sniptt-official/ots/releases) for available binaries.
|
2021-07-15 19:15:07 +01:00
|
|
|
|
|
|
|
|
```sh
|
2021-08-18 22:20:35 +01:00
|
|
|
$ curl -L https://github.com/sniptt-official/ots/releases/download/v0.1.0/ots_0.1.0_darwin_amd64.tar.gz -o ots.tar.gz
|
2021-07-15 19:15:07 +01:00
|
|
|
$ sudo mkdir -p /usr/local/ots-cli
|
2021-07-20 20:05:15 +01:00
|
|
|
$ sudo tar -C /usr/local/ots-cli -xvf ots.tar.gz
|
|
|
|
|
$ sudo ln -sf /usr/local/ots-cli/ots /usr/local/bin/ots
|
|
|
|
|
$ rm ots.tar.gz
|
2021-07-15 19:15:07 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Assuming `/usr/local/bin` is on your `PATH`, you can now run:
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
$ ots --version
|
2021-08-18 22:20:35 +01:00
|
|
|
ots version 0.1.0
|
2021-07-15 19:15:07 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Uninstall
|
|
|
|
|
|
|
|
|
|
1. Find the folder that contains the symlink to the main binary.
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
$ which ots
|
|
|
|
|
/usr/local/bin/ots
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
2. Using that information, run the following command to find the installation folder that the symlink points to.
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
$ ls -l /usr/local/bin/ots
|
2021-07-20 20:05:15 +01:00
|
|
|
lrwxr-xr-x 1 root admin 26 15 Jul 16:00 /usr/local/bin/ots -> /usr/local/ots-cli/ots
|
2021-07-15 19:15:07 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
3. Delete the symlink in the first folder. If your user account already has write permission to this folder, you don't need to use `sudo`.
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
$ sudo rm /usr/local/bin/ots
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
4. Delete the main installation folder.
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
$ rm -rf /usr/local/ots-cli
|
|
|
|
|
```
|