[MacOS]MacOs的HomeBrew命令安装和常用工具(不断更新中)

来源:互联网 发布:大岛凉花 知乎 编辑:程序博客网 时间:2024/06/06 09:30

HomBrew的功能类似于 ubuntu 下同下 apt-get ,或者 Cent OS 下的 yum 等包管理工具.我们可以很方便的 安装,更新,卸载软件。

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

然后等待网络一小会儿安装成功:

==> This script will install:/usr/local/bin/brew/usr/local/share/doc/homebrew/usr/local/share/man/man1/brew.1/usr/local/share/zsh/site-functions/_brew/usr/local/etc/bash_completion.d/brew/usr/local/Homebrew==> The following existing directories will be made group writable:/usr/local/bin==> The following existing directories will have their owner set to IamBestCoder:/usr/local/bin==> The following existing directories will have their group set to admin:/usr/local/bin==> The following new directories will be created:/usr/local/Cellar/usr/local/Homebrew/usr/local/Frameworks/usr/local/etc/usr/local/include/usr/local/lib/usr/local/opt/usr/local/sbin/usr/local/share/usr/local/share/zsh/usr/local/share/zsh/site-functions/usr/local/varPress RETURN to continue or any other key to abort==> /usr/bin/sudo /bin/chmod u+rwx /usr/local/binPassword:==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/bin==> /usr/bin/sudo /usr/sbin/chown IamBestCoder /usr/local/bin==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/bin==> /usr/bin/sudo /bin/mkdir -p /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions==> /usr/bin/sudo /usr/sbin/chown IamBestCoder /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var==> /usr/bin/sudo /bin/mkdir -p /Users/IamBestCoder/Library/Caches/Homebrew==> /usr/bin/sudo /bin/chmod g+rwx /Users/IamBestCoder/Library/Caches/Homebrew==> /usr/bin/sudo /usr/sbin/chown IamBestCoder /Users/IamBestCoder/Library/Caches/Homebrew==> /usr/bin/sudo /bin/mkdir -p /Library/Caches/Homebrew==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew==> /usr/bin/sudo /usr/sbin/chown IamBestCoder /Library/Caches/Homebrew==> Downloading and installing Homebrew...remote: Counting objects: 6081, done.remote: Compressing objects: 100% (3725/3725), done.remote: Total 6081 (delta 3449), reused 4041 (delta 2165), pack-reused 0Receiving objects: 100% (6081/6081), 3.48 MiB | 2.00 KiB/s, done.Resolving deltas: 100% (3449/3449), done.From https://github.com/Homebrew/brew * [new branch]      master     -> origin/master * [new tag]         0.1        -> 0.1 * [new tag]         0.2        -> 0.2 * [new tag]         0.3        -> 0.3 * [new tag]         0.4        -> 0.4 * [new tag]         0.5        -> 0.5 * [new tag]         0.6        -> 0.6 * [new tag]         0.7        -> 0.7 * [new tag]         0.7.1      -> 0.7.1 * [new tag]         0.8        -> 0.8 * [new tag]         0.8.1      -> 0.8.1 * [new tag]         0.9        -> 0.9 * [new tag]         0.9.1      -> 0.9.1 * [new tag]         0.9.2      -> 0.9.2 * [new tag]         0.9.3      -> 0.9.3 * [new tag]         0.9.4      -> 0.9.4 * [new tag]         0.9.5      -> 0.9.5 * [new tag]         0.9.8      -> 0.9.8 * [new tag]         0.9.9      -> 0.9.9 * [new tag]         1.0.0      -> 1.0.0 * [new tag]         1.0.1      -> 1.0.1 * [new tag]         1.0.2      -> 1.0.2 * [new tag]         1.0.3      -> 1.0.3 * [new tag]         1.0.4      -> 1.0.4 * [new tag]         1.0.5      -> 1.0.5 * [new tag]         1.0.6      -> 1.0.6 * [new tag]         1.0.7      -> 1.0.7 * [new tag]         1.0.8      -> 1.0.8 * [new tag]         1.0.9      -> 1.0.9 * [new tag]         1.1.0      -> 1.1.0 * [new tag]         1.1.1      -> 1.1.1 * [new tag]         1.1.10     -> 1.1.10 * [new tag]         1.1.11     -> 1.1.11 * [new tag]         1.1.12     -> 1.1.12 * [new tag]         1.1.13     -> 1.1.13 * [new tag]         1.1.2      -> 1.1.2 * [new tag]         1.1.3      -> 1.1.3 * [new tag]         1.1.4      -> 1.1.4 * [new tag]         1.1.5      -> 1.1.5 * [new tag]         1.1.6      -> 1.1.6 * [new tag]         1.1.7      -> 1.1.7 * [new tag]         1.1.8      -> 1.1.8 * [new tag]         1.1.9      -> 1.1.9 * [new tag]         1.2.0      -> 1.2.0 * [new tag]         1.2.1      -> 1.2.1HEAD is now at dd5d488 Merge pull request #2658 from JCount/audit-fix-versioned-aliases-homebrew-core==> Tapping homebrew/coreCloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...remote: Counting objects: 4421, done.remote: Compressing objects: 100% (4226/4226), done.remote: Total 4421 (delta 37), reused 472 (delta 14), pack-reused 0Receiving objects: 100% (4421/4421), 3.52 MiB | 922.00 KiB/s, done.Resolving deltas: 100% (37/37), done.Checking connectivity... done.Tapped 4225 formulae (4,463 files, 11.0MB)==> Cleaning up /Library/Caches/Homebrew...==> Migrating /Library/Caches/Homebrew to /Users/IamBestCoder/Library/Caches/Hom==> 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:  http://docs.brew.sh/Analytics.html==> Next steps:- Run `brew help` to get started- Further documentation:     http://docs.brew.sh
1.安装tree工具:

brew install tree


然后我们就可以开开心心的用Tree命令啦:

原创粉丝点击