User avatar
jack.chaney
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
DougieLawson
Posts: 30448
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.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

User avatar
rpdom
Posts: 11835
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK

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: 1021
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”

Who is online

Users browsing this forum: No registered users and 2 guests