Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Check software update status at Terminal launch' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Check software update status at Terminal launch
Authored by: crispyking on Feb 13, '04 02:33:13PM

You can also download the packages and install them separately using installer(8). Useful if you have more than one Mac to install them on and don't want to download them multiple times and/or need to install them remotely.

Here's the process I use (for 10.3):

1. softwareupdate -l
- do this on each computer (in case of per-machine firmware updates).
- note which updates need reboot, etc.
2. softwareupdate -d <name> # download package called <name>
- repeat for all packages you need
3. Move the packages to a network-mounted folder if necessary:
mv /tmp/${uid}/TemporaryItems/com.apple.SoftwareUpdate/* \
/Network/Library/Packages
# ${uid} is the uid of the user that did the download
4. Check that all packages should be installed in /:
cd /Network/Library/Packages
foreach p ( *.pkg )
echo $p
installer -volinfo -pkg "$p"
end
- the above is for (t)csh; if you use (ba)sh, you'll need to modify it.
5. Search for COMMAND_LINE_INSTALL:
egrep COMMAND_LINE_INSTALL `find . -type f`
-- Figure out which ones shouldn't be done via the cmd line (!)
6 Install them with:
installer -verbose -pkg <pkg_name> -target /
(reboot if the update requires it).




[ Reply to This | # ]