LinuxQuestions.org
Visit the LQ Articles and Editorials section
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-29-2004, 09:56 PM   #1
firefly2442
Member
 
Registered: Apr 2003
Location: USA
Distribution: Ubuntu
Posts: 95

Rep: Reputation: 15
running apt-get in cron


In webmin I setup a cron job as this:

Execute as: root
Command: apt-get update; apt-get upgrade; apt-get dist-upgrade;

and then scheduled it to run every night at midnight....

Will this update, upgrade, and upgrade my distro automatically for me?

Thanks.
 
Old 04-29-2004, 10:11 PM   #2
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
change that to 'apt-get update; apt-get upgrade -y --force-yes; apt-get dist-upgrade -y --force-yes;' but yes, that looks like it'll do the trick.

the -y answers yes to the are you sure you want to install this prompts. the man says that --force-yes can be dangerous, so read the manual before you throw that in ('man apt-get').
 
Old 04-29-2004, 10:50 PM   #3
zuralin
Member
 
Registered: Sep 2003
Distribution: Debian testing/unstable
Posts: 225

Rep: Reputation: 30
if your going to be using "apt-get dist-upgrade" then why bother with "apt-get upgrade"? according to the man page:
Quote:
dist-upgrade: in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages
looks like you can trim that down a little bit (not that it really matters....)

also, you might want to look into "cron-apt" -> "apt-cache show cron-apt"
 
  


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
cron job not running vincebs Linux - Software 34 10-30-2004 01:27 PM
apt-proxy and cron-apt - download once for the whole LAN Abject Debian 1 06-20-2004 01:53 PM
Cron stopped running? willemdebeer Linux - Newbie 1 01-02-2004 01:33 PM
Cron Job Not Running pzorn Linux - General 4 10-02-2003 01:38 PM
Cron not running Half_Elf Linux - Software 4 01-10-2003 02:38 AM


All times are GMT -5. The time now is 09:53 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