mac安装brew经验

2023-05-05 17:26:34 浏览数 (1)

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)”

代码语言:javascript复制
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

代码语言:javascript复制
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

0 人点赞