2 Guys, a Mac, and a Website - The Evolution of the Web - How To Run Software Update Remotely.
October 9th - Hey, happy pantsday.
2 Guys Store

120x60

 Search

 Classic 2 Guys
10 Random Stories:
My Favorite Things About Windows
Halo for Mac
Windows PC's Suck!
Submarines Are Full of Seamen.
A New Era Begins Today (2 Guys Switches It's Focus)
Happy Birthday G5!
Review: Old Fart's Guide to the Macintosh
Apple Remote Desktop
IRS Probe Could Cost Intel Over $600 Million
Walk-Through: Publishing Your iCal Calendars Locally

 Comments
yum hot guys - core
You guys are the pants! - PHP WannaBe
Maybe they don't like you - so they sent you defective product. Have yo... - DJLC
A friend of mine had this product, and the antenna portion quickly came... - Cubist
And the other rule of not commenting on your own article!
...
- Jonahan


 Account
Not logged in.

Username:
Password:
Save password
Not registered?




 How To Run Software Update Remotely.
I have gotten a lot of people asking how to run software update remotely from terminal since I mentioned that I did it in one of my previous stories. So I have decided the best way to explain it, is just to post it.

First of all, to do this remotely, you have to have Remote Login setup. To do this, first go into System Preferencess, and under the Sharing Pane, put a check in "Remote Login". Now, if you are on an always-on connection and your computer is hooked directly to the modem, you're all set to use Remote Login. However, if you are behind a router or some sort of server, you have to set that router/server to forward port 22 to your computer. Ask your network administrator, or the people who setup/made your router how to do that.

To login to your computer remotely from Mac OS X, in Terminal type "ssh username@[your ip]" (without the quotes). So if your username was captainfantastic, and your ip was 5.5.5.5, you would type "ssh [email protected]" and hit return. The first time you do it, it's going to ask if you want to add the host, just type ''yes" and hit return. Now you are remotely logged in to your computer, and you have all the abilities you have sitting at your computer with terminal open.

(Incidentally, if you will be logging in from Windows, I would suggest using a program called Putty. It's small, powerful, and best of all, free.)

Now, once you are at your command line, you can use the softwareupdate command to check for and install updates. To start off, you need to type "softwareupdate". That will give you the following information:


To install something from that list, you use the same command, but put the name of the update after it. And since these require authentication, you will also have to sudo the command. So to install the iSync Palm Conduit, you would type the following: "sudo softwareupdate iSync_Palm-1.2" and hit return (IMPORTANT: don't forget the capitalization). You would get something similar to this:


it will keep saying 'Installing' with a percentage until it finishes.


If you need to restart after installing that update, it will tell you. To do this from the command line, use the shutdown command, with the restart option: "sudo shutdown -r now"

That's it! Easy huh? I should mention that you can do this directly from your machine, without ssh-ing, if you wat to feel really geeky. Happy geeky updating everyone!

October 22 2003, 11:34 PM EDT, by




Comments:
ZackMac 10/23/03, 6:58 PM EDT
Interesting. This is the first time that I had even considered doing a remote update with SSH with other Macs on my network.

Thanks Geek Master iKen!

-ZackMac

HTML Samurai 10/27/03, 2:53 PM EDT
Dude, you are my hero!

Jeremy 11/6/03, 1:35 AM EDT
just an update - if using panther it has changed slightly. it is now as follows

softwareupdate -l to list updates (lowercase L)
to install an update, it is now
softwareupdate -i packagename

thanks for this, just ran software update from my t-mobile hiptop.



This article is archived, so you may not comment on it.

(The good news is there's always the shoutbox, the forums or the contact form if you're socially-inclined at the moment!)


iMac G5_468x60
MacMini_02

 Site Links
 Deep Thoughts
Love is not something you can put chains on and throw into a lake. That's called Houdini. Love is liking someone a lot.

 Around Da Web
iProng:
iPhone steals show at CTIA Wireless 2007
DLO offers dual cover fashion case for iPod
AT&T received 1M inquiries on iPhone
MacDailyNews:
Ars Technica in-depth review: Apple TV ?impressed all those who touched it?
Inside Apple?s Mac OS X 10.5 Leopard Server OS
The chips inside Apple TV
Think Secret:
Adobe Creative Suite 3 pricing revealed
 Olde Stuff
2 Guys Podcast Feed
Greatest American Hero
iAir
Scary Ballmer
Space Game
 We Like:
 • 2 Guys
 • Apple.com

 Side Projects
Jonahan
  • JediPoker.net
  • Jonahan.com
  • iProng
  • MacProng
iKen
  • MacIdiot
Jedbeck
  • Jedbeck.com
J.P.
  • Baby Ashley Project