{"id":13858939,"url":"https://github.com/pforret/m1_homebrew","last_synced_at":"2025-04-10T15:44:00.474Z","repository":{"id":55535564,"uuid":"322397457","full_name":"pforret/m1_homebrew","owner":"pforret","description":"Install homebrew in native mode on Apple MacOS ARM (M1)","archived":false,"fork":false,"pushed_at":"2021-02-19T11:13:15.000Z","size":1104,"stargazers_count":55,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-24T13:36:09.273Z","etag":null,"topics":["apple","arm","arm64","bashew","bigsur","homebrew","m1","m1-homebrew","macos","macos-big-sur","risc-v","silicon"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pforret.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-17T19:49:25.000Z","updated_at":"2024-05-10T10:40:47.000Z","dependencies_parsed_at":"2022-08-15T02:40:59.702Z","dependency_job_id":null,"html_url":"https://github.com/pforret/m1_homebrew","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pforret%2Fm1_homebrew","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pforret%2Fm1_homebrew/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pforret%2Fm1_homebrew/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pforret%2Fm1_homebrew/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pforret","download_url":"https://codeload.github.com/pforret/m1_homebrew/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248243500,"owners_count":21071054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apple","arm","arm64","bashew","bigsur","homebrew","m1","m1-homebrew","macos","macos-big-sur","risc-v","silicon"],"created_at":"2024-08-05T03:02:26.947Z","updated_at":"2025-04-10T15:44:00.451Z","avatar_url":"https://github.com/pforret.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"[![basher install](https://img.shields.io/badge/basher-install-white?logo=gnu-bash\u0026style=flat)](https://basher.gitparade.com/package/)\n![version](https://img.shields.io/github/v/release/pforret/macos_m1_cli)\n\n# Using Homebrew on Apple Silicon M1 (MacOS Big Sur) \n\n![](doc/homebrew.jpg)\n\n## Usage\n\n    Program: m1_homebrew.sh 1.2.0 by peter@forret.com\n    Updated: Dec 22 21:41:12 2020\n    Usage: m1_homebrew.sh [-f] [-h] [-q] [-v] [-a \u003carchitecture\u003e] [-l \u003clog_dir\u003e] [-t \u003ctmp_dir\u003e] \u003caction\u003e \u003cpackage?\u003e\n    Flags, options and parameters:\n    -f|--force       : [flag] do not ask for confirmation (always yes) [default: off]\n    -h|--help        : [flag] show usage [default: off]\n    -q|--quiet       : [flag] no output [default: off]\n    -v|--verbose     : [flag] output more [default: off]\n    -a|--architecture \u003c?\u003e: [option] install in arm64 or i386 mode  [default: auto]\n    -l|--log_dir \u003c?\u003e : [option] folder for log files   [default: /Users/pforret/log/m1_homebrew]\n    -t|--tmp_dir \u003c?\u003e : [option] folder for temp files  [default: /Users/pforret/.homebrew]\n    \u003caction\u003e         : [parameter] action to perform: check/install/uninstall/recursive\n    \u003cpackage\u003e        : [parameter] package to recursive install (optional)\n    \n    ### TIPS \u0026 EXAMPLES\n    * use `m1_homebrew check` to check if Homebrew is installed for Rosetta and/or native mode\n    * use `m1_homebrew install` to install Homebrew\n    * use `m1_homebrew uninstall` to uninstall Homebrew\n    * use `m1_homebrew recursive package` to install a package from source but first build its dependencies\n    * \u003e\u003e\u003e bash script created with pforret/bashew\n    * \u003e\u003e\u003e for developers, also check pforret/setver\n\n### m1_homebrew check\n\nCheck what version of Homebrew are installed for i386 and arm64 mode.\n\nRunning `m1_homebrew check` on Intel/Rosetta2:\n![m1_homebrew check for i386](doc/check_i386.png)\n\nRunning `m1_homebrew check` on M1/ARM64:\n![m1_homebrew check for arm64](doc/check_arm64.png)\n\n\n### m1_homebrew install\n\n* install Homebrew in arm64 mode (without Rosetta 2) on a Apple M1 computer (MacOS Big Sur)\n* install Homebrew in i386 mode (with Rosetta 2) on a Apple M1 computer (MacOS Big Sur)\n\nOutput is like this:\n```\nProgram: m1_homebrew.sh 1.2.0\n✔  MacOS version = 11.1\n✔  Script running in arm64 mode\nAre you sure you want to install Homebrew for arm64 to /opt/homebrew? [y/N] Y \n…  Create folder for [/opt/homebrew] Homebrew ...\n…  Download Homebrew into [/Users/pforret/.homebrew] ...\n✔  After download: Homebrew folder is 15 MB\n✔  After update  : Homebrew folder is 64 MB                                      \n✔  After install : Homebrew folder is 463 MB                                           \n…  Move Homebrew files to /opt/homebrew\nCreate folder share/zshet/.homebrew/SECURITY.md ...                                                   \nCreate folder share/zsh/site-functions\nCreate folder Caskroom\n✔  All files moved to /opt/homebrew                           \nHOMEBREW_VERSION: 2.7.0-24-g53ef74f\nScript finished after 84 seconds\n```  \n\n### Using native Homebrew\n\n* as long as Homebrew does not officially support Apple M1 ARM architecture, \n  you will get the following warning every time you try to `brew install` a package\n\n```  \nWarning: You are running macOS on a arm64 CPU architecture.\nWe do not provide support for this (yet).\nReinstall Homebrew under Rosetta 2 until we support it.\nYou will encounter build failures with some formulae.\nPlease create pull requests instead of asking for help on Homebrew's GitHub,\nTwitter or any other official channels. You are responsible for resolving\nany issues you experience while you are running this\nunsupported configuration.\n```  \n\n* you can however install the package by using `brew install -s`, \n  which is short for `brew install --build-from-source`\n* packages with lots of dependencies (like e.g. ffmpeg) will often stop with the following error:\n```  \nError: [some package]: no bottle available!\nYou can try to install from source with e.g.\nbrew install --build-from-source [some package]\n```  \n* you have to `brew install --build-from-source` that dependency first, \n  and run the main `brew install` again\n* you might have to do thius for every missing dependency, or use ...\n\n### m1_homebrew recursive package\n\n* **_recursive_ brew install -s** !!\n* `m1_homebrew recursive ffmpeg` will first look up all the dependencies of ffmpeg, \n  build those one after the other and then run the main `brew install`. \n  It will take some time, but it works!\n\n\n### m1_homebrew uninstall\n\n* if you prefer running in 'Rosetta 2' mode, you can uninstall the native mode Homebrew.\n* run as: `curl -s https://raw.githubusercontent.com/pforret/macos_m1_cli/main/uninstall_homebrew_native.sh | bash`\n\nOutput is like this:\n```  \nProgram: m1_homebrew.sh 1.2.0\n✔  MacOS version = 11.1\n✔  Script running in arm64 mode\nAre you sure you want to uninstall Homebrew for arm64 from /opt/homebrew? [y/N] Y \n…  Deleting Homebrew from [/opt/homebrew]\nPassword:\n✔  All files have been deleted from /opt/homebrew\nScript finished after 8 seconds\n```  \n\n## Installation\n\n    basher install pforret/macos_cli_m1\n\nor \n\n    git clone https://github.com/pforret/m1_homebrew.git\n    cd m1_homebrew\n    ./m1_homebrew.sh\n\n## My Homebrew configuration\n\nThis is my current config (on Mac Mini M1, 22 Dec 2020):\n\n```  \n$ brew config\nHOMEBREW_VERSION: 2.7.0-24-g53ef74f\nORIGIN: https://github.com/Homebrew/brew\nHEAD: 53ef74f67415949f0a9e6377af22b967336c1011\nLast commit: 4 hours ago\nCore tap ORIGIN: https://github.com/Homebrew/homebrew-core\nCore tap HEAD: 0533ab3b8cf3901d5dbb239155deda7c2424c659\nCore tap last commit: 9 minutes ago\nCore tap branch: master\nHOMEBREW_PREFIX: /opt/homebrew\nHOMEBREW_CASK_OPTS: []\nHOMEBREW_MAKE_JOBS: 8\nHomebrew Ruby: 2.6.3 =\u003e /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby\nCPU: octa-core 64-bit arm_firestorm_icestorm\nClang: 12.0 build 1200\nGit: 2.24.3 =\u003e /Library/Developer/CommandLineTools/usr/bin/git\nCurl: 7.64.1 =\u003e /usr/bin/curl\nmacOS: 11.1-arm64\nCLT: 12.3.0.0.1.1607026830\nXcode: N/A\nRosetta 2: false\n```  \n\n\n## More info\n* [Workarounds for ARM-based Apple-Silicon Mac](https://github.com/mikelxc/Workarounds-for-ARM-mac)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpforret%2Fm1_homebrew","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpforret%2Fm1_homebrew","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpforret%2Fm1_homebrew/lists"}