Hacker News new | ask | show | jobs
by Zardoz84 3688 days ago

    sudo crontab -e 
and put this :

    0 5 * * 1 apt-get -y -q autoremove 1>/dev/null
I have it on our servers so we avoid get filled with junk on /boot
1 comments

For maintainability, you might want to consider using /etc/crontab or /etc/cron.d or /etc/cron.daily to store this instead of the root user cron. Especially on servers.