LoginSignup
1
0

More than 1 year has passed since last update.

Error: Unknown command: prune

Posted at

事象 : デッドシンボリックリンクを削除しようとしたらコマンドがないと言われた

# 「linkできてない」とお医者さんに言われたので
$ brew doctor 
#...省略...
Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  python@3.9

# unlinkして、
$ brew unlink python@3.9  
Unlinking /usr/local/Cellar/python@3.9/3.9.7_1... 3 symlinks removed.

# ディレクトリを消して
$ rm -drf /usr/local/Cellar/python@3.9 

# デッドシンボリックリンクを削除・・・できない
$ brew prune
Error: Unknown command: prune

原因 : brew prunebrew cleanupの一部になったから

brew prune has been replaced by and is now run as part of brew cleanup.
1.9.0 — Homebrew

対応 : brew cleanupする

$ brew cleanup
Pruned 2 symbolic links from /usr/local
1
0
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
1
0