最終更新:2022-02-14 (月) 09:00:38 (802d)  

softwareupdate
Top / softwareupdate

https://support.apple.com/ja-jp/HT200113

help

  • usage: softwareupdate <cmd> [<args> ...]
    
    ** Manage Updates:
    	-l | --list		List all appropriate update labels (options:  --no-scan, --product-types)
    	-d | --download		Download Only
    	-i | --install		Install
    		<label> ...	specific updates
    		-a | --all		All appropriate updates
    		-R | --restart		Automatically restart (or shut down) if required to complete installation.
    		-r | --recommended	Only recommended updates
    	--list-full-installers		List the available macOS Installers
    	--fetch-full-installer		Install the latest recommended macOS Installer
    		--full-installer-version	The version of macOS to install. Ex: --full-installer-version 10.15
    	--install-rosetta	Install Rosetta 2
    	--background		Trigger a background scan and update operation
    
    ** Other Tools:
    	--dump-state		Log the internal state of the SU daemon to /var/log/install.log
    	--evaluate-products	Evaluate a list of product keys specified by the --products option 
    	--history		Show the install history.  By default, only displays updates installed by softwareupdate.  
    	--all 			Include all processes in history (including App installs) 
    
    ** Options:
    	--no-scan		Do not scan when listing or installing updates (use available updates previously scanned)
    	--product-types <type>		Limit a scan to a particular product type only - ignoring all others
    		Ex:  --product-types macOS  || --product-types macOS,Safari 
    	--products		A comma-separated (no spaces) list of product keys to operate on. 
    	--force			Force an operation to complete.  Use with --background to trigger a background scan regardless of "Automatically check" pref 
    	--agree-to-license		Agree to the software license agreement without user interaction.
    
    	--verbose		Enable verbose output
    	--help			Print this help

softwareupdate --list?

  • Software Update Tool
    
    Finding available software
    Software Update found the following new or updated software:
    * Label: Command Line Tools for Xcode-13.0
    	Title: Command Line Tools for Xcode, Version: 13.0, Size: 528803K, Recommended: YES, 
    * Label: Command Line Tools for Xcode-12.4
    	Title: Command Line Tools for Xcode, Version: 12.4, Size: 440392K, Recommended: YES, 
    * Label: Command Line Tools for Xcode-12.5
    	Title: Command Line Tools for Xcode, Version: 12.5, Size: 470966K, Recommended: YES, 
    * Label: Command Line Tools for Xcode-12.5
    	Title: Command Line Tools for Xcode, Version: 12.5, Size: 470820K, Recommended: YES,

softwareupdate --list-full-installers?

  • Finding available software
    Software Update found the following full installers:
    * Title: macOS Big Sur, Version: 11.6, Size: 12428553042K
    * Title: macOS Big Sur, Version: 11.5.2, Size: 12440916552K
    * Title: macOS Big Sur, Version: 11.5.1, Size: 12440158909K
    * Title: macOS Big Sur, Version: 11.5, Size: 12443337213K
    * Title: macOS Big Sur, Version: 11.4, Size: 12395342506K

Rosetta 2

  • sudo softwareupdate --install-rosetta --agree-to-license

関連