[Macpartners] automate patch download & install

Duncan S Kincaid dsk at MIT.EDU
Tue Jun 23 14:42:38 EDT 2009


you can write a shell script which runs as often as you like at  
whatever time of day you like (use launchd).
example below:

=============================
#!/bin/bash
softwareupdate -i -a
exit 0
=============================

you might care to add other items to the script which are handy for  
regular maintenance (such as repair disk permissions, email you the  
results, etc)/
we have a monthly script run at 7AM on the first of every month which  
does all this and more.
you are welcome to a copy if you like.

On Jun 23, 2009, at 1:59 PM, William de Figueiredo wrote:

> Hi Steve,
>
> Thanks for your reply. I want to be able to download critical  
> patches, install, and reboot the system without user intervention.  
> Is this possible with Mac OS 10.5?
>
> Bill
>
> ____________________________________
> William de Figueiredo
> MIT
> 35-308
> 77 Massachusetts Avenue
> Cambridge, MA 02139
>
> 617-252-1661
>
> -----Original Message-----
> From: Stephen Ragalevsky [mailto:sfr at apple.com]
> Sent: Friday, June 19, 2009 4:20 PM
> To: William de Figueiredo
> Cc: macpartners at mit.edu
> Subject: Re: [Macpartners] automate patch download & install
>
> Hi Bill,
> Do you need to just install Apple updates via Software Update?
>
> You can easily create a script with the command 'softwareupdate --
> install --all'.  This command will install all software updates for a
> system.  You can also just run that command via Terminal.  The man
> page for softwareupdate defines how to install specific updates, if
> you do not want to install all of them at once.
>
> Keep in mind that software like QuickTime and OS updates will require
> a reboot.
>
> Best,
> Steve
>
> On Jun 19, 2009, at 12:41 PM, William de Figueiredo wrote:
>
>> Hi,
>>
>> How can I automate Mac 10.5 to download and install (including
>> reboot if necessary) software patches?
>>
>> Bill
>>
>> ____________________________________
>> William de Figueiredo
>> MIT
>> 35-308
>> 77 Massachusetts Avenue
>> Cambridge, MA 02139
>>
>> 617-252-1661
>>
>>
>> _______________________________________________
>> Macpartners mailing list
>> Macpartners at mit.edu
>> http://mailman.mit.edu/mailman/listinfo/macpartners
>
> Stephen Ragalevsky, ACSA
> Sr. Systems Engineer
> Apple Inc.
> (781) 648-3548
>
> Great iTunes U Content:
> Stanford's iPhone Application Programming Course
>
>
> _______________________________________________
> Macpartners mailing list
> Macpartners at mit.edu
> http://mailman.mit.edu/mailman/listinfo/macpartners


| 
| 
| 
| 
| 
| 
| 
| 
| 
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
duncan kincaid
cron | mit school of architecture and planning







More information about the Macpartners mailing list