# Installation This guide provides instructions for installing Dashmate, a distribution package for Dash node installation. The guide is written for Ubuntu 22.04 x64 LTS, but the steps should be similar for other Linux distributions. ## Install dependencies Install and configure Docker: ```bash curl -fsSL https://get.docker.com -o get-docker.sh && sh ./get-docker.sh sudo usermod -aG docker $USER newgrp docker ``` ## Install dashmate There are several methods available for installing dashmate. Installing the Linux, MacOS, or Windows packages from the [GitHub releases page](https://github.com/dashpay/platform/releases/latest) is recommended for mainnet masternodes. ### Debian package Download the newest dashmate installation package for your architecture from the [GitHub releases page](https://github.com/dashpay/platform/releases/latest). The file name contains the version, so it changes with every release; this downloads the one matching the architecture you are on: ```bash DASHMATE_DEB="$(curl -fsSL https://api.github.com/repos/dashpay/platform/releases/latest \ | grep -o "https://[^\"]*_$(dpkg --print-architecture)\.deb" \ | head -n 1)" if [ -z "$DASHMATE_DEB" ]; then echo "Could not find a dashmate .deb for this architecture in the latest release" >&2 else curl -fLO "$DASHMATE_DEB" fi ``` Install the package that was just downloaded: ```bash sudo apt update sudo apt install "./$(basename "$DASHMATE_DEB")" ``` > **Note:** At the end of the installation process, apt may display an error due to installing a downloaded package. > You can ignore this error message: > N: Download is performed unsandboxed as root as file '/home/ubuntu/dashmate_5.1.0-1_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) ### Node package > **Warning:** This installation option is not recommended for mainnet masternodes. > Please install packages from the GitHub releases page. To install the NPM package, it is necessary to install Node.JS first. We recommend installing it using [nvm](https://github.com/nvm-sh/nvm#readme): ```bash curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash source ~/.bashrc nvm install 24 ``` Once Node.JS has been installed, use NPM to install dashmate: ```bash npm install -g dashmate ``` ## Verifying Installation After installation, verify that Dashmate is correctly installed by running: ```bash $ dashmate --version ``` You should see the version number of Dashmate displayed. ## Next Steps After installing Dashmate, you're ready to: 1. [Set up your Dash node](./commands/setup.md) 2. [Configure your node](./commands/config/index.md) 3. [Start your node](./commands/start.md) For updating Dashmate to a newer version, refer to the [Update Guide](./update.md).