# Install secretd

{% hint style="warning" %}
Unlike other Tendermint/Cosmos based daemons, `secretd` cannot be built from source due to the SGX requirement.&#x20;

For other builds other than `.deb`, see the [Secret Network Github Releases](https://github.com/scrtlabs/SecretNetwork/releases).
{% endhint %}

### Install script <a href="#id-1-download-the-secret-network-package-installer-for-debian-ubuntu" id="id-1-download-the-secret-network-package-installer-for-debian-ubuntu"></a>

#### Download the secretd install script

```bash
wget https://raw.githubusercontent.com/SecretFoundation/docs/main/docs/node-guides/install-secretd
```

#### Execute the script

```bash
sudo bash install-secretd
```

### Manual method: Download and Install `secretd` <a href="#id-1-download-the-secret-network-package-installer-for-debian-ubuntu" id="id-1-download-the-secret-network-package-installer-for-debian-ubuntu"></a>

The most common method for installing `secretd` is the Secret Network package installer for Debian/Ubuntu:

```bash
# Get the latest release info
RELEASE_INFO=$(curl -s https://api.github.com/repos/scrtlabs/SecretNetwork/releases/latest)

# Extract the URL of the .deb file
DEB_URL=$(echo $RELEASE_INFO | jq -r '.assets[] | select(.name | endswith("mainnet_goleveldb_amd64.deb")) | .browser_download_url')

# Download the .deb file
wget $DEB_URL

# Extract the file name from URL
DEB_FILE="${DEB_URL##*/}"

# Install the .deb file
sudo apt install -y ./$DEB_FILE

# verify installation
secretd version
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.scrt.network/secret-network-documentation/infrastructure/running-a-node-validator/setting-up-a-node-validator/node-setup/install-secretd.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
