mac安装brew经验

系统运维 waitig 592℃ 百度已收录 0评论

linux下有命令行wget命令,利用它我们可以使用命令便捷地安装各种软件。 mac系统,我们可以先安装brew,安装wget,然后就可以像在linux下一样使用wget命令了。

brew的官网https://brew.sh/

安装brew

mac系统自带ruby,使用如下命令安装brew。

ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

HEAD is now at 8f43d6b9f Merge pull request #3267 from reitermarkus/refactoring
==> Downloading https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Counting objects: 4596, done.
remote: Compressing objects: 100% (4383/4383), done.
remote: Total 4596 (delta 30), reused 339 (delta 6), pack-reused 0
Receiving objects: 100% (4596/4596), 3.83 MiB | 20.00 KiB/s, done.
Resolving deltas: 100% (30/30), done.
Tapped 4374 formulae (4,643 files, 11.9MB)
==> Cleaning up /Library/Caches/Homebrew...
==> Migrating /Library/Caches/Homebrew to /Users/byronyy/Library/Caches/Homebrew...
==> Deleting /Library/Caches/Homebrew...
Already up-to-date.
==> Installation successful!

==> Homebrew has enabled anonymous aggregate user behaviour analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics.html

==> Next steps:
- Run `brew help` to get started
- Further documentation: 
    https://docs.brew.sh

安装wget

brew install wget

byronyys-MBP:~ byronyy$ brew install wget
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
blahtexml       dbxml           enigma          opensaml        pktanon         xalan-c         xerces-c        xml-security-c  xml-tooling-c   xqilla          xsd             zorba

==> Installing dependencies for wget: openssl@1.1
==> Installing wget dependency: openssl@1.1
==> Downloading https://homebrew.bintray.com/bottles/openssl@1.1-1.1.0f.sierra.bottle.tar.gz
#######################                                                   33.3%

安装mysql

brew install mysql


本文由【waitig】发表在等英博客
本文固定链接:mac安装brew经验
欢迎关注本站官方公众号,每日都有干货分享!
等英博客官方公众号
点赞 (0)分享 (0)