0
1

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 1 year has passed since last update.

Intel MacからM2 Macに買い換えたのでHomebrewを再設定してみる

Posted at

5年ぶり?に MacBookを買い替えたのでセットアップ!
TimeMachineから復元しようと試みるも安定のできない(たぶん一度も出来たことがない気がする)
なので新旧を直接繋げて復元完了!

準備

現在の /usr/local にインストールしたパッケージを Brewfile に保存
新しいインストール先の /opt/homebrew を作成

# Brewfileの作成(バックアップ)
$ cd ~
$ brew bundle dump

$ cd /opt
$ sudo mkdir homebrew
$ sudo chown ${USER}:staff homebrew

インストール

参考

$ git clone https://github.com/Homebrew/brew homebrew

$ eval "$(homebrew/bin/brew shellenv)"
$ brew update --force --quiet
$ chmod -R go-w "$(brew --prefix)/share/zsh"

Brewfile(バックアップ)の適用

$ cd ~
$ brew bundle install --file Brewfile
0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?