> For the complete documentation index, see [llms.txt](https://docs.tvheadend.org/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tvheadend.org/documentation/installation/linux.md).

# 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
```

Then install Tvheadend:

```
sudo apt-get install tvheadend
```

During installation you will be prompted to create an administrator account; enter a username and password. When it finishes, Tvheadend is reachable on port `9981` (for example `http://localhost:9981/`).

## 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
```

Then install Tvheadend:

```
sudo dnf install tvheadend
```

> 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](/documentation/development/compiling.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.tvheadend.org/documentation/installation/linux.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
