% brew search iina ==> Formulae inja ==> Casks iina iina-plus
% brew install iina ==> Downloading https://dl-portal.iina.io/IINA.v1.3.2.dmg ==> Downloading from https://mirrors.tuna.tsinghua.edu.cn/iina/IINA.v1.3.2.dmg ######################################################################################################################################################################################################################## 100.0% ==> Installing Cask iina ==> Moving App 'IINA.app' to '/Applications/IINA.app' ==> Linking Binary 'iina-cli' to '/usr/local/bin/iina' 🍺 iina was successfully installed!
% brew config HOMEBREW_VERSION: >=2.5.0 (shallow or no git repository) ORIGIN: (none) HEAD: (none) Last commit: never Core tap origin: https://github.com/Homebrew/homebrew-core Core tap HEAD: (none) Core tap last commit: never Core tap branch: (none) Core tap JSON: 15 Jul 17:28 UTC HOMEBREW_PREFIX: /usr/local HOMEBREW_API_AUTO_UPDATE_SECS: 86400 HOMEBREW_CASK_OPTS: [] HOMEBREW_MAKE_JOBS: 4 Homebrew Ruby: 2.6.10 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.10_1/bin/ruby CPU: quad-core 64-bit broadwell Clang: N/A Git: N/A Curl: 7.87.0 => /usr/bin/curl macOS: 12.6.7-x86_64 CLT: N/A Xcode: N/A
% brew tap elastic/tap gcenx/wine homebrew/cask homebrew/core homebrew/services
仔细想想以前有可能临时用过清华的源,但是并没有配置环境变量啊
]]>brew services start nginx 也不行。 https://imgur.com/zfhAqEk
但是如果通过 brew services restart nginx 是可以正常运行的。 https://imgur.com/S9PhR4s
]]>HOMEBREW_INSTALL_FROM_API: make the default for everyone
可以brew untap homebrew/core
来省空间.
另外设置国内源
export HOMEBREW_BREW_GIT_REMOTE=.. export HOMEBREW_BOTTLE_DOMAIN=.. export HOMEBREW_API_DOMAIN=..
源你们自己搜搜. 我怕推荐了一个压力会集中到那儿.
]]>MacVim crashes when opening a new tab if started from terminal (homebrew installation)
本来怀疑是系统大版本升级遗留问题,系统重装了结果还是一样。
]]>brew install openssl Running `brew update --auto-update`... ==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/manifests/2022-07-19_1 Already downloaded: /Users/user/Library/Caches/Homebrew/downloads/c95acf8107b31ec83053f411f74e85b2626e1a0c051467aff6b98acf996883d7--ca-certificates-2022-07-19_1.bottle_manifest.json Error: openssl@3: Failed to download resource "ca-certificates_bottle_manifest" The downloaded GitHub Packages manifest was corrupted or modified (it is not valid JSON): /Users/user/Library/Caches/Homebrew/downloads/c95acf8107b31ec83053f411f74e85b2626e1a0c051467aff6b98acf996883d7--ca-certificates-2022-07-19_1.bottle_manifest.json
同事说公司电脑有限制,我觉得有点不可思议
]]>需要每次终止并重新执行该命令。去检测子依赖包花费的时间好久,比如这个
Already downloaded: xxxxx.tar.gz
检测半天才检测出来这个子包已经下载过了,在 cache 里面。后面还有好几百个子包同样需要经历这种无意义的检测。
大佬们有没有办法配置加快检测 cache 的过程?
]]>安装任意软件就会提示 SHA256 不匹配,
大家有遇到过这个问题吗?
还是说知会在 ARM 芯片的 Mac 上才会出现这个问题呢。
Today I’d like to announce Homebrew 3.0.0. The most significant changes since 2.7.0 are official Apple Silicon support and a new bottle format in formulae.
M1 Mac 上 homebrew 能和 Intel 一样命令安装了。
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
]]>% brew --version
Homebrew 3.0.0
Homebrew/homebrew-core (git revision 5fd0f; last commit 2021-02-05)
看了下/usr/local/Homebrew/Library/Taps/
占用空间已接近 1G,并且还会继续增长。为了节省计算资源,需要所有用户献出更多硬盘资源。Linux 上包管理器是怎么解决这个问题的?
附上 unshallow 的 commands
git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" fetch --unshallow git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask" fetch --unshallow
相关讨论: https://github.com/Homebrew/discussions/discussions/225
]]>Warning: You are using macOS 11.0. We do not provide support for this released but not yet supported version. You will encounter build failures with some formulae. Please create pull requests instead of asking for help on Homebrew's GitHub, Discourse, Twitter or any other official channels. You are responsible for resolving any issues you experience while you are running this released but not yet supported version.
尝试安装某个命令行工具的时候会报错:
Error: Your CLT does not support macOS 11.0. It is either outdated or was modified. Please update your CLT or delete it if no updates are available. Error: An exception occurred within a child process: SystemExit: exit
在社区的搜索结果:
https://github.com/GoogleContainerTools/kpt/issues/962 和我一样的问题
https://discourse.brew.sh/t/macos-big-sur-issue/8407 同上
https://github.com/Homebrew/brew/issues/7857 说由于 CI 环境缺失最近几个不会支持 arm 下的 homebrew
p.s.: 机器是 Intel CPU.
]]>我知道有国内源,但是不太想用哈. 之前有安装 我又卸了 囧!!
]]>在目前版本的 macOS Mojave 里,用 Homebrew 安装 NGINX 并改为 80 端口启动的最简洁的步骤是:
brew install nginx
会安装目前最新的 1.17.3
版本。
然后把配置文件里的默认的 8080 改为 80:
vi /usr/local/etc/nginx/nginx.conf
然后,在第一次启动 NGINX 服务的时候,需要用 sudo
,因为使用了特权端口 80:
sudo brew services start nginx
如果你安装了其他也需要使用特权端口的服务,比如需要使用 53 端口的 DNSCrypt-Proxy,那么也需要在第一次启动的时候用 sudo。之后如果 restart 的时候也需要用 sudo。
]]># Homebrew 源代码仓库替换为 USTC 镜像 cd "$(brew --repo)" git remote set-url origin https://mirrors.ustc.edu.cn/brew.git # Homebrew Bottles (二进制)源[针对 bash 用户的,zsh 同理] echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile source ~/.bash_profile # Homebrew Cask (界面程序)源替换为 USTC 镜像[但程序还是从开发者各自的地址下] cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
昨天发现了之后先放在博客上了,今天贴过来
]]>error: Unable to get pack file https://mirrors.ustc.edu.cn/homebrew-cask.git/objects/pack/pack-a72bff65450e38127e39b16ce1007fb517ee5cd8.pack The requested URL returned error: 416 Requested Range Not Satisfiable error: Unable to find 2a663d87ec798e2de66f7c79f3ada6f9a1c22f1b under https://mirrors.ustc.edu.cn/homebrew-cask.git Cannot obtain needed object 2a663d87ec798e2de66f7c79f3ada6f9a1c22f1b error: fetch failed.
请问 homebrew cask 国内镜像用哪个更好呢?
]]>还是说我的网络出问题了。。。?
]]>