# APT

## Supported platforms <a href="#supported-platforms" id="supported-platforms"></a>

| Platform | x86\_64 / amd64                                     | arm64                                               |
| -------- | --------------------------------------------------- | --------------------------------------------------- |
| Debian   | [✅](https://docs.docker.com/engine/install/debian/) | [✅](https://docs.docker.com/engine/install/debian/) |
| Ubuntu   | [✅](https://docs.docker.com/engine/install/ubuntu/) | [✅](https://docs.docker.com/engine/install/ubuntu/) |

### **Set up anon's** `apt` **repository:**

```sh
. /etc/os-release
sudo wget -qO- https://deb.en.anyone.tech/anon.asc | sudo tee /etc/apt/trusted.gpg.d/anon.asc
sudo echo "deb [signed-by=/etc/apt/trusted.gpg.d/anon.asc] https://deb.en.anyone.tech anon-live-$VERSION_CODENAME main" | sudo tee /etc/apt/sources.list.d/anon.list
```

### **Install the anon packages**

```sh
sudo apt-get update
sudo apt-get install anon
```

### **Default paths and files**

The Configuration file `/etc/anon/anonrc` is the primary file where the relay is configured based on your preference.  Go to the Anon Manual to read about all the available parameters, but keep in mind that some are still under development.&#x20;

{% hint style="warning" %}
Remember to add the [**MyFamily**](/sdk/native-sdk/manual.md#myfamily-fingerprint-fingerprint-1) parameter if you are operating more than one Relay.
{% endhint %}

#### Example anonrc

This is an example from a typical `anonrc` configuration for a middle Relay setup:

```sh
Log notice file /var/log/anon/notices.log
ORPort 9001
ControlPort 9051
ExitRelay 0
Nickname MyRelayNickname   # Between 1-19 characters, only [a-zA-Z0-9] and no spaces.
ContactInfo <me@ianon.who>
```

#### Anon Data Directory

The [Data Directory](/sdk/native-sdk/manual.md#datadirectory-dir) `/var/lib/anon/` contains the`keys` folder with the Identity Keys that generates the Relays fingerprint, backup or restore these keys to migrate a relays fingerprint.


---

# 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.anyone.io/relay/start/install-anon-on-linux/apt.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.
