LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 04-05-2008, 07:05 AM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Rep: Reputation: 50
Howabout apt-get update ; apt-get upgrade -f -y --force-yes in the crontab every week


How to keep the debian box stable updated automatically always :
can we add sthg like this into the /etc/crontab:
Code:
apt-get update ; apt-get upgrade -f -y --force-yes
I fear that's not nice idea ...
 
Old 04-05-2008, 07:47 AM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Surely you can, and have your apt-get update it's list of packages and then upgrade everything, answering "yes" to any questions asked, but you're right about the other thing too - not a good idea. That's because you should always see, before upgrading, which packages are to be upgraded. That way you know what is done and if something happens, know better what went wrong. Even better, you should upgrade packages more or less in smaller pieces to be even more aware of any problem-causing packages in case something goes wrong. Then there is the possibility that a broken package is relased and it's noticed (and fixed) only after you have already automatically upgraded; this could cause serious damage. Also somebody could (as in "it is not impossible that...") set up a new reposity for you containing some packages that broke things - maybe did something worse too - and your script would then happily upgrade them.

If you always just run that command, always accept all upgrades and never even see what is being upgraded, you can just as well put that in your cron jobs. Note that when a kernel upgrade is done, you may need to reinstall some of your drivers again (like gfx card drivers; the cronjob wouldn't do that!), so keep an eye on it..

I wouldn't do it. With today's automatical upgrade tools that show you what's being done and simply ask you to accept or de-select what you don't want to upgrade, it's just not that much more helpful to do it in a cron job. And as the administrator you should always be in charge rather than have the machine be in charge
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apt-get update and apt-get upgrade rapattack Debian 32 01-28-2008 09:04 AM
cannot update,upgrade using apt-get...errors vineet7kumar Debian 3 11-10-2007 01:18 PM
xlibmesa-gl-dev needs APT::Force-LoopBreak to update?!?!? brjoon1021 Debian 0 10-09-2006 09:29 AM
apt-get update a good idea in a crontab? moana Debian 3 07-29-2005 05:26 AM
apt-get update/upgrade Red Squirrel Linux - Software 26 07-11-2005 11:14 PM


All times are GMT -5. The time now is 09:34 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration