A homebrew tap formula for the poktroll binary
These instructions will get you a copy of poktrolld
on your local machine.
Follow the official instructions here.
To install Homebrew on Mac:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
To install Homebrew on Linux:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
You might need to run the following commands afterwards:
echo >> /home/${USER}/.bashrc
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/${USER}/.bashrc
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
sudo apt-get install build-essential
To install poktrolld
using brew, run the following commands:
brew tap pokt-network/poktroll
brew install poktrolld
Make sure that the installation was successful by running the following command:
poktrolld --help
You can check the latest version by running:
poktrolld version
You can check which binary you're using by one of the following commands:
On macOS, we expect something similar to the following:
whereis poktrolld
# /opt/homebrew/bin/poktrolld
which poktrolld
# poktrolld: /opt/homebrew/bin/poktrolld
On Linux, we expect something similar to the following:
whereis poktrolld
# poktrolld: /home/linuxbrew/.linuxbrew/bin/poktrolld
which poktrolld
# /home/linuxbrew/.linuxbrew/bin/poktrolld
To update the formula, simply run the following command with the new version of the binary:
For example, to update to version RC-0.12.0:
make tap_update_version
Installing poktrolld:
make tap_test_install
Reinstalling poktrolld:
make tap_test_reinstall