# Mise à jours automatique

### Installation

```shell
apt install unattended-upgrades apt-listchanges
```

### Lancement du service

```shell
systemctl enable unattended-upgrades
systemctl start unattended-upgrades
```

### Configuration

/etc/apt/apt.conf.d/20auto-upgrades

```shell
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
APT::Periodic::AutocleanInterval "7";
```

### Test de fonctionnement

```shell
unattended-upgrades --dry-run --debug
```