Hello Homebrew

D60130d9c6aab2949753311ccee65982?s=47 Takayuki Niinuma
May 23, 2015
2.5k

Hello Homebrew

D60130d9c6aab2949753311ccee65982?s=128

Takayuki Niinuma

May 23, 2015
Tweet

Transcript

  1. Hello Homebrew Takayuki Niinuma@Monstar Lab

  2. ࣗݾ঺հ • ৽প وߦ(Monstar Lab,Inc.) • αʔόαΠυˍΠϯϑϥΤϯδχΞ • Facebook:takayuki.niinuma •

    Twitter: @twinuma • github: Twinuma
  3. ໨࣍ • ύοέʔδ؅ཧγεςϜͱ͸ • Homebrew֓ཁ • HomebrewΠϯετʔϧ • Homebrew࢖͍ํɾϋϯζΦϯ •

    Homebrew-Cask࢖͍ํɾϋϯζΦϯ • Homebrew-file࢖͍ํɾϋϯζΦϯ • Cakebrew࢖͍ํɾϋϯζΦϯ • ·ͱΊ
  4. ໨࣍ • ύοέʔδ؅ཧγεςϜͱ͸ • Homebrew֓ཁ • HomebrewΠϯετʔϧ • Homebrew࢖͍ํɾϋϯζΦϯ •

    Homebrew-Cask࢖͍ํɾϋϯζΦϯ • Homebrew-file࢖͍ํɾϋϯζΦϯ • Cakebrew࢖͍ํɾϋϯζΦϯ • ·ͱΊ
  5. ύοέʔδ؅ཧγεςϜ • ιϑτ΢ΣΞ΍ϥΠϒϥϦͷΠϯετʔϧΛ؅ཧ • ϥΠϒϥϦಉ࢜ͷґଘؔ܎Λࣗಈతʹ൑அ • Linuxͩͱ”yum”΍”apt” • OSXͰ͸ɺMacPortsͱ”Homebrew"͕Α͘࢖Θ ΕΔ

  6. ໨࣍ • ύοέʔδ؅ཧγεςϜͱ͸ • Homebrew֓ཁ • HomebrewΠϯετʔϧ • Homebrew࢖͍ํɾϋϯζΦϯ •

    Homebrew-Cask࢖͍ํɾϋϯζΦϯ • Homebrew-file࢖͍ํɾϋϯζΦϯ • Cakebrew࢖͍ํɾϋϯζΦϯ • ·ͱΊ
  7. Homebrew֓ཁ • Homebrew͸MacPortsΑΓޙൃͷύοέʔδ؅ཧ γεςϜ • ඞཁͳϥΠϒϥϦΛ͢΂ͯμ΢ϯϩʔυ͢ΔͷͰ͸ ͳ͘ɺOSXʹೖ͍ͬͯΔϥΠϒϥϦΛۃྗ࢖༻͢Δ • MacPortsͱHomebrewͷڞଘ͸ߦΘͳ͍΄͏͕҆ શͰ͢ɻ

  8. ໨࣍ • ύοέʔδ؅ཧγεςϜͱ͸ • Homebrew֓ཁ • HomebrewΠϯετʔϧ • Homebrew࢖͍ํɾϋϯζΦϯ •

    Homebrew-Cask࢖͍ํɾϋϯζΦϯ • Homebrew-file࢖͍ํɾϋϯζΦϯ • Cakebrew࢖͍ํɾϋϯζΦϯ • ·ͱΊ
  9. HomebrewΠϯετʔϧ ‒४උ XcodeΛΠϯετʔϧޙɺ
 Command Line ToolsΛΠϯετʔϧ

  10. HomebrewΠϯετʔϧ ‒Πϯετʔϧ ҎԼͷίϚϯυΛ࣮ߦ͠Πϯετʔϧ ͞ΒʹɺҎԼͷίϚϯυΛ࣮ߦ ܯࠂͷࢦࣔ௨Γʹղফ͓ͤͯ͘͞ɻ ͜ΕͰHomebrew͸ར༻Մ

  11. ໨࣍ • ύοέʔδ؅ཧγεςϜͱ͸ • Homebrew֓ཁ • HomebrewΠϯετʔϧ • Homebrew࢖͍ํɾϋϯζΦϯ •

    Homebrew-Cask࢖͍ํɾϋϯζΦϯ • Homebrew-file࢖͍ํɾϋϯζΦϯ • Cakebrew࢖͍ํɾϋϯζΦϯ • ·ͱΊ
  12. Homebrew༻ޠઆ໌ ૢ࡞ )PNFCSFXίϚϯυ ύοέʔδͷΠϯετʔϧ CSFXJOTUBMMQBDLBHF ύοέʔδͷߋ৽ CSFXVQEBUFQBDLBHF ΠϯετʔϧࡁΈͷύοέʔδͷҰཡදࣔ CSFXMJTU ύοέʔδͷݕࡧ

    CSFXTFBSDIݕࡧจࣈྻ ύοέʔδͷ৘ใ CSFXJOGPQBDLBHF ύοέʔδͷ࡟আ CSFXSFNPWFQBDLBHF ύοέʔδ؅ཧγεςϜࣗମͷߋ৽ CSFXVQEBUF
  13. Homebrew༻ޠઆ໌ ૢ࡞ ຊདྷͷҙຯ આ໌ #SFX Ϗʔϧৢ଄͢Δ NBLF͢Δ )PNFCSFX ࣗՈৢ଄ ࣗ෼ͰϏϧυ͢Δ

    $FMMFS Ϗʔϧஷଂݿ Πϯετʔϧઌ ,FH λϧɺख़੒༻ NBLFͷࡐྉ 'PSNVMB ௐཧ๏ Ϗϧυखॱ͕ॻ͔Εͨ εΫϦϓτ
  14. Homebrew࢖͍ํ ‒Homebrewຊମͷߋ৽ ‒Homebrewόʔδϣϯ֬ೝ ‒ύοέʔδݕࡧʢྫ wgetʣ

  15. Homebrew࢖͍ํ ‒ύοέʔδ৘ใʢྫ wgetʣ

  16. Homebrew࢖͍ํ ‒ύοέʔδ௥Ճʢྫ wgetʣ

  17. Homebrew࢖͍ํ ‒ύοέʔδόʔδϣϯ֬ೝʢྫ wgetʣ ‒࣮ߦύε֬ೝʢྫ wgetʣ

  18. ໨࣍ • ύοέʔδ؅ཧγεςϜͱ͸ • Homebrew֓ཁ • HomebrewΠϯετʔϧ • Homebrew࢖͍ํɾϋϯζΦϯ •

    Homebrew-Cask࢖͍ํɾϋϯζΦϯ • Homebrew-file࢖͍ํɾϋϯζΦϯ • Cakebrew࢖͍ํɾϋϯζΦϯ • ·ͱΊ
  19. Homebrew֦ு ‒Github ‒GithubΞΧ΢ϯτ࡞੒ https://goo.gl/V7pq09 ҎԼͷURL΁ΞΫηε͠ɺΞΧ΢ϯτ͍࣋ͬͯͳ͍ਓ͸࡞੒͠·͠ΐ͏ɻ

  20. Homebrew֦ு ‒Homebrew-CaskΛ࢖ͬͯΠϯετʔϧ ‒Homebrew-Caskݕࡧ http://caskroom.io/search ௨ৗͷΞϓϦΛHomebrewͰೖΕΒΕΔΑ͏ʹͳΔɻ

  21. ໨࣍ • ύοέʔδ؅ཧγεςϜͱ͸ • Homebrew֓ཁ • HomebrewΠϯετʔϧ • Homebrew࢖͍ํɾϋϯζΦϯ •

    Homebrew-Cask࢖͍ํɾϋϯζΦϯ • Homebrew-file࢖͍ํɾϋϯζΦϯ • Cakebrew࢖͍ํɾϋϯζΦϯ • ·ͱΊ
  22. Homebrew֦ு ‒Homebrew-fileͷΠϯετʔϧ ‒ϦϙδτϦͷొ࿥ ‒ϦϙδτϦͷ֬ೝ brew tap rcmdnk/file brew install brew-file

  23. Homebrew֦ு ‒BrewϑΝΠϧॳظԽ ‒BrewϑΝΠϧฤू ‒Homebrew-caskͷΞϓϦέʔγϣϯ֬ೝ

  24. Homebrew֦ு Installed directly, but casks are available ͕Homebrew-caskͰΠϯετʔϧՄೳͳΞϓϦέʔγϣϯ

  25. Homebrew֦ு ‒ΧϨϯτσΟϨΫτϦͷ”Caskfile”֬ೝ Caskfileʹॻ͔Ε͍ͯΔΞϓϦέʔγϣϯΛ࡟আ ‒BrewϑΝΠϧʹ௥Ճ ‒BrewϑΝΠϧʹ௥ՃޙɺΠϯετʔϧ

  26. Homebrew֦ு ‒BrewϑΝΠϧߋ৽ ‒brew caskͷΞοϓσʔτ(࠷৽Խ)

  27. ໨࣍ • ύοέʔδ؅ཧγεςϜͱ͸ • Homebrew֓ཁ • HomebrewΠϯετʔϧ • Homebrew࢖͍ํɾϋϯζΦϯ •

    Homebrew-Cask࢖͍ํɾϋϯζΦϯ • Homebrew-file࢖͍ํɾϋϯζΦϯ • Cakebrew࢖͍ํɾϋϯζΦϯ • ·ͱΊ
  28. Cakebrew࢖͍ํ

  29. Cakebrew࢖͍ํ https://www.cakebrew.com/

  30. Cakebrew࢖͍ํ ‒Πϯετʔϧ͞Ε͍ͯΔϦετ

  31. Cakebrew࢖͍ํ ‒ΞϯΠϯετʔϧ

  32. Cakebrew࢖͍ํ ‒Ξοϓσʔτ

  33. ໨࣍ • ύοέʔδ؅ཧγεςϜͱ͸ • Homebrew֓ཁ • HomebrewΠϯετʔϧ • Homebrew࢖͍ํɾϋϯζΦϯ •

    Homebrew-Cask࢖͍ํɾϋϯζΦϯ • Homebrew-file࢖͍ํɾϋϯζΦϯ • Cakebrew࢖͍ํɾϋϯζΦϯ • ·ͱΊ
  34. ·ͱΊ ‒NewMacʹBrewfileΛݩʹಉ͡ύοέʔδͰ؀ڥΛߏங͍ͨ͠৔߹ • HomebrewΛΠϯετʔϧ • Homebrew-fileΛΠϯετʔϧ • BrewfileͷϦϙδτϦΛొ࿥ • brew

    file install Λ࣮ߦ͢Δ