User avatar
Posts: 15
Joined: Sun May 31, 2015 5:17 pm

CRON addition

Tue Oct 10, 2017 1:10 pm

I have been adding a cron task as a time saver, and it might be an advantage to have it added to the standard distribution. I add a "cron nightly" with sudo apt-get update and sudo apt-get -y upgrade. This keeps things fresh and I don't have to worry about older versions that stop working.

User avatar
Posts: 34168
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: CRON addition

Tue Oct 10, 2017 5:07 pm

Doing that is risky. You could get a bad package that crashes your system.

If you really insist there's already an APT auto-updater package in DebIan / Raspbian.

I'm on a phone now so it's not easy for me to find that.
Note:The use of baseball bats for educational purposes is completely disallowed on this forum.

Any DMs sent on Twitter will be answered next month.

User avatar
Posts: 12954
Joined: Sun May 06, 2012 5:17 am
Location: Ankh-Morpork

Re: CRON addition

Tue Oct 10, 2017 6:19 pm

That would be the unattended-upgrades package then. Something I always disable/uninstall on all of my systems.

Martin Frezman
Posts: 1020
Joined: Mon Oct 31, 2016 10:05 am

Re: CRON addition

Tue Oct 10, 2017 6:33 pm

Note that this is something forum participants tend to be a bit schizophrenic about. On the one hand, they all say (as noted in the previous thread responses) that they would never do this on any of their machines, but yet they recommend to all newbies that they run the "update/upgrade" dance as often as possible - and, essentially, blindly.

It is then quite natural for a newcomer to assume that automating it is an obvious good move...
If this post appears in the wrong forums category, my apologies.

Return to “Debian”