10
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Homebrew 2.3.0 のアップデート時、Mac のCommand Line Tools をアップデート

Posted at

Homebrew v2.3.0 のアップデート後、以下のメッセージが

Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
  softwareupdate —all —install —force

ほっといても問題なさそうだが、心残りは消しときたいので、
そのまま softwareupdate —all —install —force
動かない。

If that doesn’t show you an update run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select —install

とメッセージがあるので、これに従い、CommandLineTools を削除し入れ直す。
(一応 /Library/Developer/CommandLineTools はバックアップ)

sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select —install

CommandLineTools フォルダが新たに作成されていることと、brew doctor で問題がないことを確認して完了。

10
6
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
10
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?