Migration from Intel Mac to M1 Mac: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:


 
== Upgrade the softwares ==
=== Upgrade Homebrew ===
Upgrade [https://brew.sh/index_zh-tw macOS Homebrew]<ref>[https://osxdaily.com/2021/02/13/how-update-homebrew-mac/ How to Update Homebrew on Mac]</ref>
Upgrade [https://brew.sh/index_zh-tw macOS Homebrew]<ref>[https://osxdaily.com/2021/02/13/how-update-homebrew-mac/ How to Update Homebrew on Mac]</ref>
* {{kbd | key=brew update}} to update Homebrew
* {{kbd | key=brew update}} to update Homebrew
* {{kbd | key=brew upgrade}} to update Homebrew packages
* {{kbd | key=brew upgrade}} to update Homebrew packages


=== Upgrade Git ===
Upgrade Git command<ref>[https://git-scm.com/download/mac Git - Downloading Package]</ref><ref>[https://apple.stackexchange.com/questions/433751/git-not-working-on-m1-chip-after-migration terminal - Git not working on M1 chip after migration - Ask Different]</ref><ref>[https://stackoverflow.com/questions/34617452/how-to-update-xcode-from-command-line How to update Xcode from command line - Stack Overflow]</ref>
Upgrade Git command<ref>[https://git-scm.com/download/mac Git - Downloading Package]</ref><ref>[https://apple.stackexchange.com/questions/433751/git-not-working-on-m1-chip-after-migration terminal - Git not working on M1 chip after migration - Ask Different]</ref><ref>[https://stackoverflow.com/questions/34617452/how-to-update-xcode-from-command-line How to update Xcode from command line - Stack Overflow]</ref>
* {{kbd | key=which git}} to find the location where git was installed
* {{kbd | key=which git}} to find the location where git was installed
Line 12: Line 14:
* {{kbd | key=vi ~/.zshrc}} and add this line {{kbd | key=<nowiki>alias git='/usr/local/bin/git'</nowiki>}}
* {{kbd | key=vi ~/.zshrc}} and add this line {{kbd | key=<nowiki>alias git='/usr/local/bin/git'</nowiki>}}


Example outout of {{kbd | key=/usr/local/bin/git --version}}
Example output of {{kbd | key=/usr/local/bin/git --version}}


<pre>
<pre>
Line 24: Line 26:
* {{kbd | key=/usr/bin/git --version --version}} to verify the path is working
* {{kbd | key=/usr/bin/git --version --version}} to verify the path is working


Example outout of {{kbd | key=/usr/bin/git --version}}
Example output of {{kbd | key=/usr/bin/git --version}}


<pre>
<pre>
Line 30: Line 32:
</pre>
</pre>


=== Reinstall the app which not support intel processor ===
Reinstall the app which not support intel processor e.g.
Reinstall the app which not support intel processor e.g.
* [https://docs.docker.com/desktop/mac/apple-silicon/ Docker Desktop for Apple silicon]
* [https://docs.docker.com/desktop/mac/apple-silicon/ Docker Desktop for Apple silicon]

Revision as of 14:18, 4 March 2022

Upgrade the softwares

Upgrade Homebrew

Upgrade macOS Homebrew[1]

  • brew update to update Homebrew
  • brew upgrade to update Homebrew packages

Upgrade Git

Upgrade Git command[2][3][4]

  • which git to find the location where git was installed
  • (optional) brew uninstall git
  • (optional) brew install git
  • /usr/local/bin/git --version to verify the path is working
  • vi ~/.zshrc and add this line alias git='/usr/local/bin/git'

Example output of /usr/local/bin/git --version

git version 2.35.1


Download & install the Command Line Tools for Xcode 13.2.

Example output of /usr/bin/git --version

git version 2.32.0 (Apple Git-132)

Reinstall the app which not support intel processor

Reinstall the app which not support intel processor e.g.

Further reading

References