Install the Node Binary
You can install the node binary manually without qclient, but this page is dedicated to how to install via qclient.
Benefits of Using QClient to Manage Node
The goal of integrating Node management into QClient is multiple-fold:
- A standardized set of directories for singular and multiple configs (keysets) and node versions
- Ease of setup
- Batteries-included features like binary linking, manual and auto-update, a system service, and system logging can be made standardized patterns regarding the above.
- Node diagnostics, config changes, and integrated token operations with node configs
Command
Assuming your qclient has been linked (qclient link
manually or as part of the initial qclient install via scripted setup), this will install the latest version available.
This requires sudo, as it will install binaries to /var/quilibrium/bin/node/<version>/
, install a service, setup log-rotate, and a create symlink.
sudo qclient node install
Installing a Specific Version
Sometimes, in the event of optional updates, you may wish to revert or use a specific version of the node software (generally upgrades are forwards only, though).
sudo qclient node install "2.1.0"
Install Process
The install process is highly verbose in order to follow along with the progress, and you should be able to follow along. As a general overview, the process does the following in this order:
- Detects if the user is root or using sudo privileges
- Determines, which the version to install, defaults to 'latest' which will find the latest version number automatically.
- Checks if the version exists
- Creates the
/var/quilibrium/bin/node/<version>/
directory, if it doesn't exist - Detects if the version is already installed
- Creates a Service
- Sets ownership of the
/var/quilibrium/
directory to your current user - Makes the binary executable
- Creates a 'quilibrium-node' symlink (linking this version to
/usr/local/bin/quilibrium-node
) - Sets up the log rotate
Uninstall
The uninstall command is not yet implemented.