- /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
使用Homebrew安裝軟體,以screenfetch(一個在命令列下面看系統狀態的軟體)為例
$ brew install screenfetch
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/screenfetch-3.8.0.high_sier
######################################################################## 100.0%
==> Pouring screenfetch-3.8.0.high_sierra.bottle.tar.gz
🍺 /usr/local/Cellar/screenfetch/3.8.0: 8 files, 275.3KB
安裝到/usr/local/Cellar下面,執行的結果如下:$ screenfetch
readlink: illegal option -- f
usage: readlink [-n] [file ...]
-/+:. USERNAME@HOSTNAME
:++++. OS: 64bit Mac OS X 10.13.6 17G65
/+++/. Kernel: x86_64 Darwin 17.7.0
.:-::- .+/:-``.::- Uptime: 5d 1h 43m
.:/++++++/::::/++++++/:` Packages: 776
.:///////////////////////:` Shell: bash 3.2.57
////////////////////////` Resolution: 2880x1800
-+++++++++++++++++++++++` DE: Aqua
/++++++++++++++++++++++/ WM: Quartz Compositor
/sssssssssssssssssssssss. WM Theme: Blue
:ssssssssssssssssssssssss- CPU: Intel Core i7-4850HQ @ 2.30GHz
osssssssssssssssssssssssso/` GPU: Intel Iris Pro / NVIDIA GeForce GT 750M
`syyyyyyyyyyyyyyyyyyyyyyyy+` RAM: 8959MiB / 16384MiB
`ossssssssssssssssssssss/
:ooooooooooooooooooo+.
`:+oo+/:-..-:/+o+/-
備註:
- Homebrew:
- 安裝在/usr/local下面
- 安裝軟體方式像是Linux的apt或是yum,抓binary回來直接使用
- MacPorts:
- 裝在/opt/local下面
- 安裝軟體方式比較像FreeBSD的ports系統,抓source code回來編譯成binary執行檔後使用,故每次升級作業系統都要重編譯一次軟體
- screenfetch - 命令列 (cli) 裡的檢視系統工具
- screenfetch與linux_logo:顯示Linux Logo與基本硬體資訊
沒有留言:
張貼留言