# Linux

Tvheadend binary packages can be downloaded from <https://apt.tvheadend.org> or you can configure a local package repo to install and update from by running the following shell commands:

## DEB Packages (Debian, Ubuntu, RaspiOS)

Run the following shell command to setup a local `apt` repo:

```
curl -1sLf 'https://dl.cloudsmith.io/public/tvheadend/tvheadend/setup.deb.sh' | sudo -E bash
```

## RPM Packages (Fedora, RedHat)

Run the following shell command to setup a local `dnf` or `yum` repo:

```
curl -1sLf 'https://dl.cloudsmith.io/public/tvheadend/tvheadend/setup.rpm.sh' | sudo -E bash
```

> Tvheadend aims to provide installable packages for as long as possible to extend the usable life of server and tuner hardware. In practice this means if we can still automate regular build testing for popular distributions and versions we will have binaries available.

## Source Code

Please refer to [development documentation on compiling Tvheadend from source](https://docs.tvheadend.org/documentation/development/compiling)


---

# 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.tvheadend.org/documentation/installation/linux.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.
