Skip to content

Commit

Permalink
add instructions to update/uninstall (also command for source install…
Browse files Browse the repository at this point in the history
… was only for building), resolves toy#28
  • Loading branch information
toy committed Nov 8, 2019
1 parent aad1d00 commit 65b49b8
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,38 +40,61 @@ FORMAT can be one of:
json-pretty - pretty printed JSON
```

## Installation
## Install/update/uninstall

### Homebrew

Using package manager [Homebrew](https://brew.sh/):

```sh
# install
brew install blueutil

# update
brew update
brew upgrade blueutil

# uninstall
brew remove blueutil
```

### MacPorts

Using package manager [MacPorts](https://www.macports.org/):

```sh
# install
port install blueutil

# or probably using sudo
# update
port selfupdate
port upgrade blueutil

sudo port install blueutil
# uninstall
port uninstall blueutil
```

### From source
You will probably need to prefix all commands with `sudo`.

To build from source:
### From source

```sh
git clone https://github.com/toy/blueutil.git
cd blueutil

# build
make

# install/update
git pull
make install

# uninstall
make uninstall
```

You may need to prefix install/update and uninstall make commands with `sudo`.

## Notes

Uses private API from IOBluetooth framework (i.e. `IOBluetoothPreference*()`).
Expand Down

0 comments on commit 65b49b8

Please sign in to comment.