LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS
User Name
Password
MEPIS This forum is for the discussion of MEPIS Linux.

Notices

Reply
 
Search this Thread
Old 03-23-2009, 02:06 PM   #1
inspiron_Droid
Member
 
Registered: Dec 2006
Distribution: Debian (Wheeze)
Posts: 391

Rep: Reputation: Disabled
Exclamation Auto update script


Is there a way I can circomvent the anoying auto update wizard, and use a bash script with apt-get update and apt-get upgrade that rubns monthly at 12:30 pm on the first and third tuesday of the month?
 
Old 03-23-2009, 03:16 PM   #2
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
make a cron job. Just make it run every week, it's easier.

to be proper, you should probably make a system cron by putting a cron script in /etc/cron.d with an entry like so:

Code:
30 0 * * 2 root apt-get -y update && apt-get -y upgrade
or you can add a crontab for root:

Code:
root %> crontab -e
... and add this line:

Code:
30 0 * * 2 apt-get -y update && apt-get -y upgrade
edited to add: If you only wanted to do it twice a month, you can do something like:

Code:
30 0 1,15 * * ....
...or if you want to just run it every other week, you could:

Code:
30 0 * * */2 ....

Last edited by BrianK; 03-23-2009 at 03:21 PM.
 
Old 03-24-2009, 08:12 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
I'm curious: Why 2ce a month instead of every night? -- Linux updates come out as needed, not on a fixed schedule; why risk being unpatched for up to 13 days?
 
Old 03-24-2009, 12:36 PM   #4
inspiron_Droid
Member
 
Registered: Dec 2006
Distribution: Debian (Wheeze)
Posts: 391

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by archtoad6 View Post
I'm curious: Why 2ce a month instead of every night? -- Linux updates come out as needed, not on a fixed schedule; why risk being unpatched for up to 13 days?

I just don't like to deal with the pesky updater aplication bugging me constanly.
 
Old 03-24-2009, 12:46 PM   #5
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , Solaris 10, RHEL
Posts: 1,935
Blog Entries: 1

Rep: Reputation: 188Reputation: 188
Quote:
Originally Posted by BrianK View Post
make a cron job. Just make it run every week, it's easier.

to be proper, you should probably make a system cron by putting a cron script in /etc/cron.d with an entry like so:

Code:
30 0 * * 2 root apt-get -y update && apt-get -y upgrade
or you can add a crontab for root:

Code:
root %> crontab -e
... and add this line:

Code:
30 0 * * 2 apt-get -y update && apt-get -y upgrade
edited to add: If you only wanted to do it twice a month, you can do something like:

Code:
30 0 1,15 * * ....
...or if you want to just run it every other week, you could:

Code:
30 0 * * */2 ....
You can eliminate chatter with...

Code:
30 0 * * 2 root apt-get -y update && apt-get -y upgrade >/dev/null 2>&1
-C
 
Old 03-26-2009, 07:51 AM   #6
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
FloridaBSD,

More curiosity: Which "anoying auto update wizard" are you running & how does it become a "pesky updater aplication bugging me constanly"? I've just done my 1st pure Debian installation in years, so I'm wondering what to expect. BTW, I'll be running KDE not GNOME.

I've been running MEPIS for years & have never found the update notifier annoying in any way other than the fact that it can't be configured to open KPackage instead of Synaptic.

Of course KPackage needs to be updated to use aptitude instead of apt-get -- aptitude has been the Debian standard for how long now?

Besides, once you have automated w/ cron job, why not run it every night & be safer?

Please forgive the disjointedness of these thoughts.
 
  


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
Auto Update Peter_APIIT Fedora 2 03-24-2007 05:42 AM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 06:32 PM
Auto Update Error after update WL7JA Suse/Novell 2 10-12-2005 01:36 PM
auto-completion - how does it work & can my script args auto-complete? BrianK Programming 1 06-11-2004 05:51 PM
auto update script not connecting kabads Linux - General 0 01-23-2003 04:44 AM


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