mkdir "$HOME/tmp";cd "$HOME/tmp"
# CentOS / RedHat - sudo dnf -y install curl
# Ubuntu / Debian - sudo apt -y install curl
curl -sS -o prereqs.sh https://raw.githubusercontent.com/cardano-community/guild-operators/master/scripts/cnode-helper-scripts/prereqs.sh
# Ensure you can run sudo commands with your user before execution
# You can check the syntax for prereqs.sh using command below:
# Usage: prereqs.sh [-o] [-s] [-i] [-g] [-p]
# Install pre-requisites for building cardano node and using cntools
# -o Do *NOT* overwrite existing genesis, topology.json and topology-updater.sh files (Default: will overwrite)
# -s Skip installing OS level dependencies (Default: will check and install any missing OS level prerequisites)
# -i Interactive mode (Default: silent mode)
# -g Connect to guild network instead of public network (Default: connect to public cardano network)
# -p Copy Transitional Praos config as default instead of Combinator networks (Default: copies combinator network)
# You can use one of the options above, if you'd like to defer from defaults (below).
# Running without any parameters will run script in silent mode with OS Dependencies, and overwriting existing files.