使Mac homebrew cask可用
的是什么?
- homebrew caskを使ったことなかったので使用方法をまとめる
条件 (Tiao jian)
- MacのPCにてhomebrewが使用できる状態になっていること。
执行方式
-
- 在终端中执行以下命令来安装Homebrew Cask。
$ brew cask
如果输出如下,则表示安装成功。
[21:05:59]shun-no-MacBook-Air~$ brew cask
==> 正在添加homebrew/cask存储库
正在克隆到’/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask’…
remote: 正在枚举对象: 16, 完成.
remote: 计算对象大小: 100% (16/16), 完成.
remote: 压缩对象: 100% (14/14), 完成.
remote: 总共 416303 (差异 6), 重用 4 (差异 2), 包重用 416287
接收对象: 100% (416303/416303), 189.27 MiB | 2.96 MiB/s, 完成.
正在解析差异: 100% (294141/294141), 完成.
正在更新文件: 100% (3628/3628), 完成.
添加了1个命令和3536个Cask (3,653个文件, 203MB)。
Homebrew Cask提供友好的CLI工作流程,用于管理以二进制形式分发的macOS应用程序。
命令:
–cache 显示用于缓存Cask的文件
audit 验证Casks的可安装性
cat 将给定Cask的原始源代码转储到标准输出
create 创建给定的Cask并在编辑器中打开
doctor 检查配置问题
edit 编辑给定的Cask
fetch 将远程应用程序文件下载到本地缓存
home 打开给定Cask的主页
info 显示有关给定Cask的信息
install 安装给定的Cask
list 无参数时,列出已安装的Casks;给定已安装的Casks时,列出分段文件
outdated 列出已过期的安装Casks
reinstall 重新安装给定的Cask
style 使用RuboCop检查Cask样式
uninstall 卸载给定的Cask
upgrade 升级所有已过期的casks
zap 清除与给定Cask相关的所有文件
还可参阅”man brew-cask”
安装应用程序
-
- 请在下面写出安装命令。
$ brew cask install 应用程序名称
支付附录
- homebrew caskを使用してAndroid Studioをインストールした時のログを下記に記載する。
[21:18:59]shun-no-MacBook-Air~$ brew cask install android-studio
Updating Homebrew...
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
bic cassandra-cpp-driver iblinter polynote wapm
biosig gh libfido2 protoc-gen-grpc-web
cargo-instruments go@1.13 literate-git terraform-provider-libvirt
==> Updated Formulae
readline ✔ cloud-watch frege jetty-runner mvnvm py3cairo terraform
ruby-build ✔ cobalt frege-repl jflex n rav1e terragrunt
aliyun-cli consul galen jhipster nagios-plugins rds-command-line-tools tflint
angular-cli contentful-cli gatsby-cli joshua ncurses redpen tika
ansible crc gcviewer jruby netdata renameutils tomcat
apache-spark cromwell gdb jsonschema2pojo netlify-cli repo tomcat-native
apollo-cli crowdin gdcm jsvc newman sbt tomcat@7
arduino-cli crystal-icr ghc@8.6 k6 nfdump sbuild tomcat@8
asciidoctorj csound git-archive-all kaitai-struct-compiler ngt scala topgrade
atlassian-cli cstore_fdw git-credential-manager kawa nifi scala@2.12 traefik@1
aurora-cli deno git-fixup kcptun nomad sccache typescript
autorest dependency-check gitbucket kompose now-cli sdedit ucon64
aws-cdk derby gitlab-runner krb5 ocrmypdf serverless umlet
aws-cfn-tools detekt glade kubectx octave shairport-sync unbound
aws-okta devdash glooctl kubeseal ode shellharden unifdef
aws-sdk-cpp devspace go kubespy okteto shfmt upscaledb
bagit dita-ot go-bindata kumo opa siege urh
balena-cli ditaa go-jira languagetool openapi-generator signal-cli v8
ballerina ec2-ami-tools godep lazygit openjdk@11 sjk vale
basex ec2-api-tools golo lcm openssh sk vault-cli
bazel ed goreleaser lego orientdb skaffold vaulted
beagle ejabberd gradle libpulsar pandoc-crossref skinny vegeta
berglas elb-tools grafana libsoup parallel smali vert.x
bfg elixir groovy libstfl pgweb sn0int vnu
binaryen ensmallen groovysdk liquidctl php snapcraft vulkan-headers
bind etcd grpc mahout php@7.2 solr walkmod
bit exploitdb hadoop mallet php@7.3 solr@7.7 wasmer
boot-clj faas-cli hcloud mesa picard-tools sonarqube weaver
bundletool fastbit helm meson pig sonarqube-lts weechat
byobu fastlane helmfile micro plantuml sphinx-doc wildfly-as
byteman fastqc hmmer micronaut pmd spotbugs wiremock-standalone
carrot2 fetchmail hugo mill postgis sqlcipher wireshark
cfn-lint ffuf i2pd minikube prestodb sqoop wtfutil
cfr-decompiler findomain igv minio prestosql stanford-corenlp xapian
cgal flashrom ipfs minio-mc procs stanford-ner xmake
chisel flawfinder jadx mk-configure procyon-decompiler stanford-parser xmlsectool
circleci flow jasmin mmark proftpd stlink yle-dl
clojure fluid-synth javacc mmseqs2 protobuf-c swagger2markup-cli yq
clojure-lsp flume jboss-forge mockserver protoc-gen-go tailor zabbix
clojurescript flyway jdnssec-tools molecule pulumi tee-clc
closure-compiler fmpp jenkins monetdb pumba telegraf
closure-stylesheets fop jetty mongo-c-driver pwntools teleport
==> Deleted Formulae
ghc@8.2 jpcsp openjdk@12 sshrc
==> Downloading https://dl.google.com/dl/android/studio/install/3.6.0.21/android-studio-ide-192.6200805-mac.dmg
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'android-studio'.
==> Installing Cask android-studio
==> Moving App 'Android Studio.app' to '/Applications/Android Studio.app'.
? android-studio was successfully installed!