# Supervision of OS updates

### Enable Update supervision

#### On Linux

To enable update supervision you must have the following line in the `[client]` section of your `/etc/rport/rport.conf` file.

```
[client]
 # ...snip ...snap
 updates_interval = '4h'
```

A refresh of the update status can be requested through the API and the user interface independently of the specified update interval. Going faster than 4 hours is usually not need and not recommended.

{% hint style="info" %}
Don't forget to restart the rport client after changing the configuration file. \
Use `systemctl restart rport`.
{% endhint %}

⚠️ **Debian, Ubuntu and SuSE Linux need a sudo rule** to fetch the update status. Create a file `/etc/sudoers.d/rport-update-status` with the following content.

{% tabs %}
{% tab title="Debian & Ubuntu" %}
{% code title="/etc/sudoers.d/rport-update-status" %}

```
rport ALL=NOPASSWD: SETENV: /usr/bin/apt-get update -o Debug\:\:NoLocking=true
```

{% endcode %}
{% endtab %}

{% tab title="SuSE" %}
{% code title="/etc/sudoers.d/rport-update-status" %}

```
rport ALL=NOPASSWD: SETENV: /usr/bin/zypper refresh *
```

{% endcode %}
{% endtab %}
{% endtabs %}


---

# 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://kb.openrport.io/digging-deeper/client-configuration-options/supervision-of-os-updates.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.
