#!/bin/sh # At least once a day update the index package lists and download # pending upgrades. { apt-get -q update && apt-get -q autoclean && apt-get -q upgrade -d -y && apt-get -q dist-upgrade -d -y } 2>&1 | mailx -s "apt download output" root exit 0
cool! thanks Pol -- Pol