Macでエディタとして使用しているAtomが起動した瞬間クラッシュし「レポートをAppleに送るか?」と聞かれる状態になってしまった為、インストールし直す事に。
% brew install --cask atom
Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 3 taps (homebrew/core, homebrew/cask and mutagen-io/mutagen).
==> New Formulae
aztfy dumpling kt-connect levant livekit podman-compose trzsz-go
czg evernote-backup leapp-cli lexicon llvm@13 qbe vectorscan
==> New Casks
archy gama gama-jdk rockbox-utility weektodo
You have 2 outdated formulae installed.
You can upgrade them with brew upgrade
or list them with brew outdated.
Warning: Cask 'atom' is already installed.
To re-install atom, run:
brew reinstall --cask atom
再インストールするにはbrew reinstall --cask atom
と出たのでそのまま実行。
% brew reinstall --cask atom
==> Downloading https://github.com/atom/atom/releases/download/v1.60.0/atom-mac.zip
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/3228505/51a481f9-4508-402b-abad-2e96
######################################################################## 100.0%
==> Uninstalling Cask atom
==> Backing App 'Atom.app' up to '/usr/local/Caskroom/atom/1.55.0/Atom.app'
==> Removing App '/Applications/Atom.app'
==> Unlinking Binary '/usr/local/bin/apm'
==> Unlinking Binary '/usr/local/bin/atom'
==> Purging files for version 1.55.0 of Cask atom
==> Installing Cask atom
==> Moving App 'Atom.app' to '/Applications/Atom.app'
==> Linking Binary 'apm' to '/usr/local/bin/apm'
==> Linking Binary 'atom.sh' to '/usr/local/bin/atom'
🍺 atom was successfully installed!
インストール完了。Atomの起動はこれで直りました。
以前、brew reinstall
は出来ないという記事を読んだのを思い出し検索すると、2013年のQiitaの記事で「brew には reinstall コマンドが用意されてない」と出てきたのであえて記事化。
brewのリリースノートで確認したら、2016年10月リリースの1.0.9で追加されたようです。
homebrewとhomebrew-caskでreinstall
を試した結果は下記。
% brew reinstall ffmpeg
==> Downloading https://ffmpeg.org/releases/ffmpeg-5.0.1.tar.xz
Already downloaded: /Users/ken/Library/Caches/Homebrew/downloads/ecd25687ccfc53754bf7caf04090ae50038ba7de2ccd3405ddc91d5e0065bc48--ffmpeg-5.0.1.tar.xz
==> Reinstalling homebrew-ffmpeg/ffmpeg/ffmpeg
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/5.0.1-with-options_4 --enable-shared --cc=clang --host-cflags= --host-ldflags= --ena
^@^@==> make install
^@^@^@^@^@^@^@==> make alltools
🍺 /usr/local/Cellar/ffmpeg/5.0.1-with-options_4: 271 files, 50.7MB, built in 9 minutes 28 seconds
==> Running `brew cleanup ffmpeg`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
% brew reinstall --cask firefox
==> Downloading https://download-installer.cdn.mozilla.net/pub/firefox/releases/102.0/mac/ja-JP-mac/Firefox%20102.0.dmg
######################################################################## 100.0%
==> Uninstalling Cask firefox
==> Backing App 'Firefox.app' up to '/usr/local/Caskroom/firefox/87.0/Firefox.app'
==> Removing App '/Applications/Firefox.app'
==> Purging files for version 87.0 of Cask firefox
==> Installing Cask firefox
==> Moving App 'Firefox.app' to '/Applications/Firefox.app'
🍺 firefox was successfully installed!
コメント