>

instant-thinking.de

just enough to get you started and leave you confused

Apple Softwareupdate mit der Shell

| Kommentare

Wenn man irgendwo einen Headless Mac rumstehen hat (so wie zum Beispiel meinen Cube), und keine große Lust hat nur für das routinemäßige Softwarepdate eine VNC-Verbindung herzustellen (so wie zum Beispiel ich) um sich durch den Updateprozess zu klcken, dann ist es gut zu wissen dass die ganze Chose auch per SSH funktioniert.

Als erstes drauf auf den Mac:

[dennis@ibook dennis]$ ssh cube
Password:
Last login: Tue Jul  3 21:50:30 2007 from ibook
Welcome to Darwin!
[dennis@cube dennis]$

Dann kann man mit dem Parameter -l (--list) mal sehen was es so neues gibt:

[dennis@cube dennis]$ softwareupdate -l
Software Update Tool
Copyright 2002-2005 Apple

Software Update found the following new or updated software:
   * iTunesX-7.3
        iTunes (7.3), 34790K [recommended]
   * SecUpd2007-006Ti-1.0
        Security Update 2007-006 (PowerPC) (1.0), 3520K [recommended] [restart]
   * MacOSXUpd10.4.10PPC-10.4.10
        Mac OS X Update (PowerPC) (10.4.10), 22620K [recommended] [restart]
[dennis@cube dennis]$

Siehe da, es wird Zeit für ein Update.

Um alle verfügbaren Updates zu installieren benutzt man die Parameter -ia (--install --all) und stellt dem Befehl ein sudo für Superuser Rechte voran.

[dennis@cube dennis]$ sudo softwareupdate -ia
Password:
Software Update Tool
Copyright 2002-2005 Apple


Downloading iTunes
Downloading iTunes      0..20..40..60..80..100
Expanding iTunes
Downloading iTunes
Downloading iTunes      0..20..40..60..80..100
Expanding iTunes
Downloading iTunes
Downloading iTunes      0..20..40..60..80..100
Expanding iTunes
Downloading Security Update 2007-006 (PowerPC)
Downloading Security Update 2007-006 (PowerPC)  0..20..40..60..80..100
Expanding Security Update 2007-006 (PowerPC)
Downloading Mac OS X Update (PowerPC)
Downloading Mac OS X Update (PowerPC)   0..20..40..60..80..100
Expanding Mac OS X Update (PowerPC)
Installing iTunes       0..20..40..60..80.
Installing Security Update 2007-006 (PowerPC)   0..20..40..60..80.
Installing Mac OS X Update (PowerPC)    0..20..40..60..80..100
Done.

You have installed one or more updates that requires that you restart your
computer.  Please restart immediately.

Dann muss man nur noch einen Neustart durchführen und ist fertig.

[dennis@cube dennis]$ sudo reboot
Password:
Connection to cube closed by remote host.
Connection to cube closed.
[dennis@ibook dennis]$

So einfach kann das sein, es ist zwar nicht ganz so mächtig wie apt-get unter Debian aber neidisch rüberschielen muss man nun wirklich nicht…

Comments