0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Mac】コマンドでOSをアップデートする方法

Posted at

softwareupdateコマンドを使用してmacOSをアップデートできます。

利用可能なアップデートの一覧を取得

以下のコマンドを実行すると利用可能なアップデートの一覧が出力されます。

softwareupdate -l
$ softwareupdate -l

Software Update found the following new or updated software:
* Label: Command Line Tools for Xcode-15.3
	Title: Command Line Tools for Xcode, Version: 15.3, Size: 707501KiB, Recommended: YES, 
* Label: Command Line Tools beta 2 for Xcode-16.0
	Title: Command Line Tools beta 2 for Xcode, Version: 16.0, Size: 743581KiB, Recommended: YES

利用可能なすべてのアップデートをインストール

次のコマンドを実行すると利用可能なすべてのアップデートをインストールできます。

sudo softwareupdate -i -a

特定のアップデートをインストール

アップデート名を指定すると特定のアップデートのみインストールできます。

sudo softwareupdate -i "アップデート名"
0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?