Cov txheej txheem:

Homebrew: nruab qhov xav tau software ntawm Mac siv "Terminal" hais kom ua
Homebrew: nruab qhov xav tau software ntawm Mac siv "Terminal" hais kom ua
Anonim

Rau cov neeg uas nkees ntawm kev txhim kho Mac daim ntawv thov los ntawm kev rub thiab xa lawv los ntawm.dmg mus rau daim ntawv thov nplaub tshev. Muaj ib txoj kev zoo dua.

Cov neeg siv Linux muaj ib qho txiaj ntsig zoo dua cov neeg siv Windows thiab Mac: lawv muaj cov chaw khaws cia thiab cov tswj hwm pob. Tsis txhob nrhiav qhov chaw thov, rub tawm los ntawm qhov ntawd thiab txhim kho nws, koj tsuas yog xav qhia Linux "Nruab nws!" - thiab nws yuav nruab. Nrog Homebrew, koj Mac yuav kawm ua tib yam.

Homebrew yog "tus thawj tswj pob uas ploj lawm rau macOS," raws li nws tus tsim hu nws. Nws yog Ameslikas tsim los sau cov ntawv thov los ntawm qhov chaw. Yog tias koj tseem tsis tau hnov qab txog nws, hauv Mac, tom qab lub plhaub zoo nkauj Aqua yog Unix tiag tiag, uas lub tsev los ntawm qhov chaw yog ib qho khoom siv. Tab sis Homebrew ua ntau dua li qhov ntawd. Ua ke nrog Homebrew-Cask add-on, nws tuaj yeem nruab daim ntawv thov los ntawm Terminal.

Txhim kho Homebrew thiab Homebrew-Cask

Txhim kho Homebrew yog ib qho yooj yim.

Ua ntej tshaj plaws, nruab Xcode, suite rau kev siv Terminal siab heev. Qhib "Terminal" thiab luam cov lus txib hauv qab no rau hauv:

xcode-xaiv --install

Tom qab ntawd muab cov lus txib rau nruab Homebrew:

/ usr / bin / ruby $ (curl -fsSL

Sau koj tus password yog tias xav tau. Ua ntej ua ib yam dab tsi, Homebrew yuav nres thiab piav qhia nws ua dab tsi.

Tos rau Homebrew rau nruab - nws yuav siv li ib feeb. Terminal yuav ceeb toom rau koj tias kev teeb tsa tiav.

Tam sim no nkag mus rau cov lus txib zoo li no:

brew kais caskroom / cask

Kev ua haujlwm nrog cov haujlwm

Duab
Duab

Homebrew npaj txhij. Cia peb sim.

Txhawm rau nruab ib yam dab tsi, sau cov lus txib hauv "Terminal":

brew cask nruab package_name

Yog tias koj ntaus ntawv lossis tsis paub lub npe tiag tiag ntawm pob, Homebrew-Cask yuav qhia qhov kev sau raug.

Piv txwv li, txhawm rau nruab Chrome, nkag mus:

brew cask nruab google-chrome

Chrome yuav tshwm sim hauv daim ntawv thov nplaub tshev.

Yog tias koj xav nruab ntau daim ntawv thov, nkag mus:

brew cask nruab firefox double-commander

Homebrew-Cask yuav nruab Firefox thiab Double Commander. Koj tuaj yeem sau ntau yam khoom raws li koj nyiam. Ntau yooj yim dua li rub tawm cov ntaub ntawv teeb tsa, puas yog?

Txhawm rau tshem tawm daim ntawv thov, koj tuaj yeem siv cov lus txib zoo li no:

brew cask uninstall google chrome

Txoj kev no koj tuaj yeem tshem tawm ntau daim ntawv thov tsis tsim nyog ntawm ib zaug.

Tshem tawm Homebrew

Tshem tawm tus neeg saib xyuas yog yooj yim li kev txhim kho nws. Khiav hauv "Terminal":

ruby -e $ (curl -fsSL

Homebrew cia koj nruab cov kev pab cuam yam tsis qhib koj lub browser lossis App Store. Cov neeg siv Linux, thiab lwm tus neeg uas nyiam Terminal, yuav txaus siab rau qhov no.

Yog tias koj xav tau cov kab hais kom ua lossis tau tsiv mus rau qhov system tshiab thiab xav nruab txhua yam ib zaug, Homebrew yuav pab.

Tsev →

Homebrew-Cask →

Pom zoo: