$brewdoctorPleasenotethatthesewarningsarejustusedtohelptheHomebrewmaintainerswithdebuggingifyoufileanissue.IfeverythingyouuseHomebrewforisworkingfine:pleasedon't worry or file an issue; just ignore this. Thanks!Warning: Suspicious https://github.com/Homebrew/brew git origin remote found.The current git origin is: https://mirrors.ustc.edu.cn/brew.gitWith a non-standard origin, Homebrew won'tupdateproperly.Youcansolvethisbysettingtheoriginremote:git-C"/usr/local/Homebrew"remoteset-urloriginhttps://github.com/Homebrew/brewWarning:Suspicioushttps://github.com/Homebrew/homebrew-coregitoriginremotefound.Thecurrentgitoriginis:https://mirrors.ustc.edu.cn/homebrew-core.gitWithanon-standardorigin,Homebrewwon't update properly.You can solve this by setting the origin remote: git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" remote set-url origin https://github.com/Homebrew/homebrew-core
# --- utils ----$brewinstallimagemagick$brewinstalltmuxcorkscrewtelnetfiglettoilet$brewinstallstowiproute2macpandocifstatnmap$brewinstallpcre2gettextlibtool# for build vim from source$brewinstallutil-linux$brewinstallgawkgnu-targrepfindutilsgnu-whichgnu-getoptgnu-sedgnu-targnutlscoreutilsmoreutilsbashproctoolspstreevnstatncduipcalchtopglancesacklsoftrash$brewinstallcolordiffdiffutilswdiff$brewinstall--HEADdiff-so-fancyhighlight$brewinstallgzip$brewinstall--caskunrar$brewinstall--HEADrenamewhoiswatchwget$brewinstallcreate-dmg$brewinstallfontforge$sudogeminstalliStats-n/usr/local/bin# requires ruby to be installed$brewinstall--HEADpass$brewinstallpass-otp$brewinstall--HEADpinentry-mac# for alfred workflow# ---- editor ----## nvim$brewinstall--HEADutf8proc$brewinstall--HEADneovim$brewinstall--caskvimr## macvim$brewinstall--HEADmacvim# using `--HEAD` to prevent 32bit vim + 64bit python$sudocp-r $(brew--prefixmacvim)/MacVim.app/Applications## vscode$brewinstall--caskvisual-studio-code# or link to cmd via$sudoln-sf'/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code'/usr/local/bin/code# ---- dev tools ----$brewinstallnvm# nvm for gitbook install: nvm install 12$brewinstallgradle-completion$brewinstall--HEADruby$brewinstallless$brweinstallkubecolor$brewinstall--HEADkubectl$brewinstallmongosh$brewinstallgnu-indent$brewinstall--HEADgit-flowgit-extras$brewinstalldos2unix$brewinstallopenldap$brewinstalljq$brewinstallopenjdk$brewinstall--HEADfzffzybatackagrg$brewinstallmkdocs# markdown docs, usage: `mkdocs build -d site -s`# --- lint ----$brewinstall--HEADshellcheck$npmi-gnpm-groovy-lint&&sudoln-sf $(npmgetprefix)/bin/npm-groovy-lint/usr/local/bin/npm-groovy-lint$brewinstall--HEADyamllintyamlfmt$brewinstallhadolint# for dockerfile$brewinstallstylelint# for css$brewinstalljsonlint$brewinstallansible-lint$brewinstallvint# vim script language lint$brewinstall--HEADshfmt# autoformat shell script source code# optional$brewinstallactionlint# for github action$brewinstalllibxml2# for xmllint# --- cask ---$brewinstall--caskkeycastr$brewinstall--caskfliqlo# flip clock screensaver# --- tap ---$brewtaphashicorp/tap$brewinstallhashicorp/tap/vault$brewtaphomebrew/command-not-found# brew which-formula && brew which-update$brewtapvitorgalvao/tiny-scripts# check tap info$brewtap-infovitorgalvao/tiny-scripts--json|jq-r.[].formula_names# --- for fun ----$brewinstallpv$brewinstallfortune
deprecated (macvim)
$brewinstallmacvim--with-override-system-vim--HEAD# OR$brewtapmacvim-dev/macvim$brewinstall--HEADmacvim-dev/macvim/macvim$brewlinkappsmacvim# or$brewlinkapps# or$HOME_APPS=File.expand_path("/Applications")# or (Using none-link Info.plist and PkgInfo in *.app/Contents/)$mkdir-p/Applications/gVim.app/Contents$ln-sf/usr/local/Cellar/macvim/HEAD-a5e0355/gVim.app/Contents/*/Applications/gVim.app/Contents/$mv/Applications/gVim.app/Contents/Info.plist{,.link}$mv/Applications/gVim.app/Contents/PkgInfo{,.link}$cp/Applications/gVim.app/Contents/Info.plist{.link,}$cp/Applications/gVim.app/Contents/PkgInfo{.link,}
error log in node@12.22 after icu4c upgraded from 71.1 to 72.1:
dyld[43773]:Librarynotloaded:/usr/local/opt/icu4c/lib/libicui18n.71.dylibReferencedfrom:<57CC95E2-F00F-30F7-9252-4671B72F7B9E>/usr/local/Cellar/node@12/12.22.12_1/bin/node Reason: tried: '/usr/local/opt/icu4c/lib/libicui18n.71.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/icu4c/lib/libicui18n.71.dylib' (no such file), '/usr/local/opt/icu4c/lib/libicui18n.71.dylib' (no such file), '/usr/local/lib/libicui18n.71.dylib' (no such file), '/usr/lib/libicui18n.71.dylib' (no such file, not in dyld cache), '/usr/local/Cellar/icu4c/72.1/lib/libicui18n.71.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/Cellar/icu4c/72.1/lib/libicui18n.71.dylib' (no such file), '/usr/local/Cellar/icu4c/72.1/lib/libicui18n.71.dylib' (no such file), '/usr/local/lib/libicui18n.71.dylib' (no such file), '/usr/lib/libicui18n.71.dylib' (no such file, not in dyld cache)
$brewextract--force--version=71.1icu4chomebrew/cask==> Searchingrepositoryhistory==> Writingformulaforicu4cfromrevisione3317b8to:# `e3317b8` is the revision/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Formula/icu4c@71.1.rb$git-C $(brew--repohomebrew/core) rev-parsee3317b8e3317b86c11c644e88c762e03eb7b310c3337587
reinstall
[!NOTE]
without auto update : HOMEBREW_NO_AUTO_UPDATE=1
without install dependents : HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
$brew--cache--force-bottleicu4c@71.1Error:Formulaefoundinmultipletaps:*homebrew/cask/icu4c@71.1*marslo/icu4c-71-1/icu4c@71.1Pleaseusethefully-qualifiedname (e.g. homebrew/cask/icu4c@71.1) to refer to the formula.# will be installed in /usr/local/Cellar/icu4c@71.1$HOMEBREW_NO_AUTO_UPDATE=1brewinstallhomebrew/cask/icu4c@71.1==> Fetchinghomebrew/cask/icu4c@71.1==> Downloadinghttps://github.com/unicode-org/icu/releases/download/release-71-1/icu4c-71_1-src.tgzAlreadydownloaded:/Users/marslo/Library/Caches/Homebrew/downloads/ff9ece63f455ff1d6aa066340111e22abfc72c249a7f3d1e492ffef111cb0752--icu4c-71_1-src.tgz==> Installingicu4c@71.1fromhomebrew/cask...# mapping libs$ln-sf/usr/local/Cellar/icu4c@71.1/71.1/lib/*.dylib/usr/local/lib/
$gitcheckout-bicu4c-71.1e3317b86c11$HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1HOMEBREW_NO_AUTO_UPDATE=1brewreinstall./icu4c.rbError:Failedtoloadcask:./icu4c.rbCask'icu4c'isunreadable:wrongconstantname#<Class:0x00007f7a52b2d4e0>Warning:Treating./icu4c.rbasaformula.==> Fetchingicu4c==> Downloadinghttps://ghcr.io/v2/homebrew/core/icu4c/manifests/71.1Alreadydownloaded:/Users/marslo/Library/Caches/Homebrew/downloads/afc80f921cbba7963984e5d24567fbff5b3ba72dfc409cbf7c7f02ccaf0bebab--icu4c-71.1.bottle_manifest.json==> Downloadinghttps://ghcr.io/v2/homebrew/core/icu4c/raws/sha256:012f882f239863200f0f87150541ea695d609aa14c14a390909d249352ae51f9Alreadydownloaded:/Users/marslo/Library/Caches/Homebrew/downloads/f0134d8542652b3e26e7a482164caededc27b5ff5925270efdb6f268467f51ae--icu4c--71.1.ventura.bottle.tar.gz==> Reinstallingicu4cWarning:icu4c72.1isavailableandmorerecentthanversion71.1.==> Pouringicu4c--71.1.ventura.bottle.tar.gz☕️🐸/usr/local/Cellar/icu4c/71.1:262files,76.2MB==> Running`brewcleanupicu4c`...DisablethisbehaviourbysettingHOMEBREW_NO_INSTALL_CLEANUP.HidethesehintswithHOMEBREW_NO_ENV_HINTS (see `manbrew`).Removing:/Users/marslo/Library/Caches/Homebrew/icu4c--71.1... (28.2MB)Warning:HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECKisset:notcheckingforoutdateddependentsordependentswithbrokenlinkage!# revert formula branch$gitcheckoutmaster
pin formula
$brewpinicu4c$brewlist--pinnedicu4c
spotlight error
$xattr-drcom.apple.quarantineMacVim.app$osascript-e'tell application "Finder" to make alias file to POSIX file "/usr/local/opt/macvim/MacVim.app" at POSIX file "/Applications"'
$git-C"$(brew--repohomebrew/core)"showa2f05fb0b2^:Formula/rmtrash.rbclassRmtrash<Formuladesc"Move files to macOS's Trash"homepage"http://www.nightproductions.net/cli.htm"url"http://www.nightproductions.net/downloads/rmtrash_source.tar.gz"version"0.3.3"...
$brewtap-infomacvim-dev/macvim--json|jq-r'.[]|(.formula_names[])'macvim-dev/macvim/macvim# or$brewtap# get tap name$TAP='homebrew/cask'$brewtap-info $TAP --json|jq-r'.[]|(.cask_tokens[])'$brewtap-info $TAP --json|jq-r'.[]|(.cask_tokens[])'|grepwhatsapphomebrew/cask/chatmate-for-whatsapphomebrew/cask/whatsapp
# download manually due to proxy issue$curl-Ohttps://downloads.sourceforge.net/gptfdisk/gdisk-1.0.9.pkg$mvgdisk-1.0.9.pkg $(brew--cache-sgdisk)# check `formula` local cache path$brew--cache-s<formula>
$brewconfigHOMEBREW_VERSION:4.4.16-58-gf0f03f9ORIGIN:https://github.com/Homebrew/brewHEAD:f0f03f9d7cf75510ee6ea3bc1c2efc7e62ee4e06Lastcommit:9hoursagoBranch:masterCoretapJSON:17Jan22:01UTCCorecasktapJSON:17Jan22:01UTCHOMEBREW_PREFIX:/opt/homebrewHOMEBREW_BAT_THEME:gruvbox-darkHOMEBREW_CASK_OPTS: []HOMEBREW_EDITOR:nvimHOMEBREW_GITHUB_API_TOKEN:setHOMEBREW_INSTALL_BADGE:🦍HOMEBREW_MAKE_JOBS:12HOMEBREW_SORBET_RUNTIME:setHomebrewRuby:3.3.7 =>/opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.7/bin/rubyCPU:dodeca-core64-bitarm_lobosClang:16.0.0build1600Git:2.48.0 =>/opt/homebrew/bin/gitCurl:8.7.1 =>/usr/bin/curlmacOS:14.7.2-arm64CLT:16.2.0.0.1.1733547573Xcode:16.2Rosetta2:false$brewdoctorPleasenotethatthesewarningsarejustusedtohelptheHomebrewmaintainerswithdebuggingifyoufileanissue.IfeverythingyouuseHomebrewforisworkingfine:pleasedon't worry or file an issue; just ignore this. Thanks!Warning: Some installed formulae are deprecated or disabled.You should find replacements for the following formulae: libassuan@2 youtube-dlWarning: Putting non-prefixed coreutils in your path can cause GMP builds to fail.Warning: Putting non-prefixed findutils in your path can cause python builds to fail.Warning: You have unlinked kegs in your Cellar.Leaving kegs unlinked can lead to build-trouble and cause formulae that depend onthose kegs to fail to run properly once built. Run `brew link` on these: certifi macvimWarning: Broken symlinks were found. Remove them with `brew cleanup`: /opt/homebrew/bin/git-copy