On 9/26/12 10:48 AM, Kevin Horton wrote: > I'm on the road, with access to my main Mac via ssh. Is it possible to > update XCode and its command line tools via command line so I can have my > main Mac update its packages? Software Update can be run via command line, > but I can't find reference to any similar ability for the App Store. > > Thanks, > -- > Kevin Horton > Ottawa, Canada > > > > >
I don't know of a nice way to do it with a CLI command like softwareupdate. Here's an ugly method: 1) Download Xcode and the CLI tools on your road machine. 2) sftp/scp them over to your main Mac 3) SSH in to the main Mac 4) Use "open </path/to/Xcode.dmg>" to mount the Xcode disk image. 5) Copy /Volumes/Xcode/Xcode.app recursively into /Applications. You'll probably want to remove the old /Applications/Xcode.app first for sanity. 6) Use "open <path/to/command-line-tools.dmg>" to open the disk image containing the command-line tools. 7) Use "sudo installer -pkg /Volumes/<Command Line Tools Image name>/<Command Line Tools package name>.mpkg> -target /" to install those. -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ ------------------------------------------------------------------------------ How fast is your code? 3 out of 4 devs don\\\'t know how their code performs in production. Find out how slow your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219672;13503038;z? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ Fink-users mailing list [email protected] List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users
