SiaFoundation / linux

The official source of all available Linux packages of Sia software
MIT License
2 stars 1 forks source link

linux

The official source of all available Linux packages of Sia software

As of this moment only Debian and other distros using 'Apt' as their package manager are supported.

The following packages are supported

Adding the Repository

Add this repo to your sources by running the following command, replacing <distro> and <release> with one of the following available distros and their corresponding release.

sudo curl -fsSL https://linux.sia.tech/<distro>/gpg | sudo gpg --dearmor -o /usr/share/keyrings/siafoundation.gpg
echo "deb [signed-by=/usr/share/keyrings/siafoundation.gpg] https://linux.sia.tech/<distro> <release> main" | sudo tee -a /etc/apt/sources.list.d/siafoundation.list

Release Channels

We also provide beta and nightly releases for those who want to test the latest features and improvements.

To use these releases, replace main in the above command with beta or nightly.

echo "deb [signed-by=/usr/share/keyrings/siafoundation.gpg] https://linux.sia.tech/<distro> <release> beta" | sudo tee -a /etc/apt/sources.list.d/siafoundation.list

or

echo "deb [signed-by=/usr/share/keyrings/siafoundation.gpg] https://linux.sia.tech/<distro> <release> nightly" | sudo tee -a /etc/apt/sources.list.d/siafoundation.list

Installing Packages

After that, you can install any of the available packages (e.g. hostd) like this:

# install
$ sudo apt install hostd

All packages also ship with a systemd service that you can use to keep hostd running in the background:

# create working dir
$ sudo mkdir -p /var/lib/hostd
$ cd /var/lib/hostd

# configure hostd
$ hostd config

# enable hostd systemd service
$ sudo systemctl enable --now hostd

If you want to install a different package just replace hostd in the commands with a different package name.