# 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 %}
