brew cask

mac
Mavericksへの移行メモ

photo-credit: IconAarchive


caskの基本的な使い方



caskは、GUIアプリを自動ダウロード、インストールしてくれます。


caskは、以下のような感じで使えます。

$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

$ brew install cask

$ brew cask search
==> Partial matches
a-better-finder-rename
...

$ brew install google-chrome

$ ls /opt/homebrew-cask/Caskroom


といっても、処理自体は単純で、サーバーにアップロードされた実行ファイルをダウロード、解凍し、コピーしているだけです。


インストール先の変更



インストール先を変更したい場合は、環境変数に指定すればいいらしいです。

export HOMEBREW_CASK_OPTS="--appdir=/Applications --caskroom=/usr/local/Caskroom"



Brewfile



Homebrewは、 Brewfileを書けば、自動インストールしてくれます。


$ ls
==>Brewfile

$ brew bundle



# Update
update
upgrade

# Add Repository
tap homebrew/versions || true
tap phinze/homebrew-cask || true
tap homebrew/binary || true

# Packages
install zsh
install tmux
install vim
install git
install gist
install gibo
install hub
install tig
install tree
install wget
install curl
install jq
install scala
install sbt
install ctags
install ffmpeg
install mplayer
install imagemagick
install comix
install coreutils
install atool
install w3m
install apple-gcc42

# for brew-cask
install brew-cask

# .dmg
cask install alfred
cask install appcleaner
cask install bettertouchtool
cask install cheatsheet
cask install google-chrome
cask install iterm2
cask install keyremap4macbook
cask install kobito
cask install simple-comic
cask install skitch
cask install xtrafinder
cask install vlc
cask install virtualbox
cask install dropbox
cask install clipmenu
cask install firefox
cask install google-japanese-ime
cask install growlnotify
cask install keepassx
cask install shiftit
cask install ccleaner
cask install clamxav
cask install macvim
cask install gimp
cask install tinkertool
#cask install intellij-idea-community
#cask install adium
#cask install mplayerx
#cask install sourcetree
#cask install sublime-text3
#cask install the unarchiver
#cask install github

# Remove outdated versions
cleanup



ただし、言語のバージョン管理も使用する場合は、シェルスクリプトとしてまとめておいたほうが良いかもしれませんね。

# homebrew
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

echo "brew updating..."

brew update
outdated=`brew outdated`

if [ -n "$outdated" ]; then
cat << EOF
$outdated

The above package(s) will upgrade.

Are you sure?
If you do not want to upgrade, please type Ctrl-c now.
EOF

read dummy

brew upgrade
fi

# Add Repository
brew tap homebrew/binary
brew tap josegonzalez/homebrew-php
brew tap phinze/homebrew-cask

# Packages
brew install ack
brew install aspell
brew install autoconf
brew install binutils
brew install cmigemo
brew install git
brew install global
brew install gnu-sed
brew install gnupg
brew install heroku-toolbelt
brew install imagemagick
brew install jq
brew install jsl
brew install kindlegen
brew install lv
brew install markdown
brew install mcrypt
brew install mercurial
brew install nginx
brew install node
brew install openssl
brew install phpenv
brew install pkg-config
brew install plenv
brew install postgresql
brew install qt
brew install rbenv
brew install readline
brew install stunnel
brew install unrar
brew install w3m
brew install webkit2png
brew install wget
brew install xz

brew install brew-cask
brew cask install adobe-reader
brew cask install appcleaner
brew cask install dropbox
brew cask install firefox
brew cask install flash
brew cask install flip4mac
brew cask install github
brew cask install google-chrome
brew cask install google-drive
brew cask install grandperspective
brew cask install handbrake
brew cask install hipchat
brew cask install iterm2
brew cask install keyremap4macbook
brew cask install libreoffice
brew cask install limechat
brew cask install lyn
brew cask install openoffice
brew cask install opera
brew cask install quicksilver
brew cask install ripit
brew cask install sequel-pro
brew cask install silverlight
brew cask install skitch
brew cask install skype
brew cask install sourcetree
brew cask install sublime-text
brew cask install trailer
brew cask install vagrant
brew cask install virtualbox
brew cask install vlc

# ruby
curl -L get.rvm.io | bash -s stable
rvm get head
rvm get latest
rvm install 1.9.3

# python
brew install python
#brew doctor
brew link --overwrite python
sudo easy_install pip

pip install pycrypto
pip install googlecl

curl -kL http://xrl.us/pythonbrewinstall | bash
pythonbrew install 2.7.2

# octopress
git clone https://github.com/imathis/octopress
cd !$:t
sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2
rvm use 1.9.3
bundle install



いい加減、カオスすぎる dotfiles を整理して GitHub に上げたい...。


参考:
brew-caskとシェルスクリプトでMacの環境構築


$ brew cask search
==> Partial matches
a-better-finder-rename
a-slower-speed-of-light
acorn
actiontastic
activity-audit
actotracker
adapter
adium
adobe-air
adobe-arh
adobe-creative-cloud
adobe-reader
adventure
aegisub
aerofs
air-video-server
airdisplay
airfoil
airmail
airparrot
airserver
alfred
alib1
aliwangwang
all2mp3
amadeus-pro
amazon-cloud-drive
amazon-cloud-player
amethyst
android-file-transfer
android-studio
android-studio-bundle
angry-ip-scanner
anki
anonym
antirsi
anvil
anxiety
ap-grapher
apikitchen
apns-pusher
appcleaner
appcode
appdelete
appfresh
appmenuboy
apptivate
apptrap
appzapper
aptanastudio
aquamacs
aquaterm
arduino
arduino-galileo
aria-maestosa
armitage
armory
arora
arq
aseprite
asepsis
asteroid
atext
atmonitor
audacity
audio-editor
audio-hijack-pro
audiobookbinder
audioslicer
aurora
authbuddy
authoxy
authy-bluetooth
aviator
avidemux
avogadro
awareness
axureprpro
b2designer
back-in-time
backblaze-downloader
backuploupe
bahamut
baiducloud
baiduinput
balsamiq-mockups
bankid
banshee
baretorrent
bartender
base
basecamp
basictex
bathyscaphe
battery-guardian
battery-report
battery-time-remaining
baygenie
bbedit
beamer
bean
beardedspice
bee
bettertouchtool
betterzip
betterzipql
bibdesk
bill
bino
binreader
bit-slicer
bitcasa
bitcoin
bitlord
bitmessage
bittorrent-sync
black-ink
blender
bluegriffon
blueharvest
bluej
bodega
bonjour-browser
bootchamp
bootxchanger
bowtie
box-sync
boxcryptor-classic
boxer
brackets
brain-workshop
breakaway
brightness
broomstick
burn
c3
caffeine
calcservice
calibre
calibre2opds
callnote
camerabag
camino
camranger
camtasia
candybar
capo
carbon-copy-cloner
carlson-minot
catch
ccleaner
ccmenu
cd-to
celestia
cert-quicklook
cfxr
chainsaw
chameleon-ssd-optimizer
changes
charles
chatology
cheatsheet
chicken
chocolat
choosy
chromatic
chromecast
chromium
chronicle
chronoagent
chronomate
chronosync
chunkulus
cinch
citrix-receiver
clamxav
clarify
cleanmymac
clementine
clipmenu
clix
cloak
clonk
cloud
cloudera-hive-odbc
cloudpull
cloudup
cloudytabs
cocktail
cocoadialog
cocoapacketanalyzer
cocoarestclient
cocoaspell
coconutbattery
coda
codebug
codekit
codelite
cog
colloquy
color-oracle
color-picker-pro
colorpicker-antetype
colorpicker-developer
colorpicker-hex
colorpicker-propicker
colorpicker-rcwebcolorpicker
colors
colorschemer-studio
comicbooklover
comicbookloversync
comictagger
commandq
concentrate
connected-desktop
contexts
controllermate
controlplane
coolterm
copy
cord
cornerstone
corsixth
coteditor
couchbase-server-community
couchbase-server-enterprise
crashlytics
crashplan
crosspack-avr
crushftp
ctivo
cuppa
cups-pdf
cura
curb
curse-client
cutesdr
cyberduck
daisydisk
darktable
darteditor
dash
dashlane
dataurlmaker
day-o
dbeaver
dealalert
deathtodsstore
debt-quencher
decitime
deeper
default-folder-x
delibar
delicious-library
delivery-status
deltawalker
deluge
deskfun
desmume
devonthink-pro
dewdrop
dfontsplitter
dia
dictunifier
diffmerge
disk-drill
disk-inventory-x
diskaid
diskmaker-x
diskwave
diumoo
divvy
djview
dnscrypt
dogecoin
dolphin
dosbox
doubanradio
double-commander
doubletwist
doxie
doxygen
dradio
dragondisk
dragthing
drobo-dashboard
dropbox
dropbox-encore
dropin
droplr
dropzone
dsp-radio
dukto
dump-truck
duplicate-annihilator
dvdstyler
eagle
easyfind
easysimbl
easyvpn
eclipse-ide
eclipse-platform
ecoute
ejector
electric-sheep
electrum
elyse
emacs
emin-webpquicklook
enjoyable
entropy
epic
espresso
etrecheck
evasi0n
evernote
evom
exhaust
expandrive
eye-fi
eyetv
fairmount
fake
fakethunder
fantastical
fastscripts
fdt
feeder
feeds
fender-amp-drivers
fender-fuse
ffmpegx
fiji
filebot
filedrop
fileshuttle
filezilla
find-any-file
firefox
fission
flame
flash
flash-decompiler-trillix
flickr-uploadr
flightgear
flip4mac
flow
flowdock
fluid
flux
fm-fw-installer
focus
foldit
folx
fontexplorer-x-pro
fontprep
forklift
fotomagico
fourk-video-downloader
fourk-youtube-to-mp3
fourpeaks
foxmail
fpc
free-ruler
freecad
freecol
freemind
freezer
fritzing
frizzix
fs-uae
fseventer
fugu
functionflip
gambit-c
gamesalad
ganttproject
garagebuy
garagesale
gargoyle
garmin-communicator
garmin-training-center
gas-mask
gawker
geekbench
geektool
genymotion
gephi
gfxcardstatus
ghostlab
gifrocket
gimp
gimp-lisanet
gisto
git-annex
gitbox
github
gitifier
gitter
gitx
gitx-l
gitx-rowanj
glimmerblocker
glo
gmail-notifr
gnucash
goagentx
gog-downloader
golly
google-auto-backup
google-chrome
google-drive
google-earth
google-hangouts
google-japanese-ime
google-music
google-notifier
google-quick-search-box
google-refine
google-web-designer
googleappenginelauncher
gopanda
gpgtools
gpower
gqrx
grabbox
grandperspective
grandtotal
graphsketcher
gridwars
grooveshark
groovesquid
growl-fork
growler
growlnotify
growlvoice
gurps-character-sheet
gyazo
hall
handbrake
handbrakebatch
hands-off
haroopad
harvest
haskell-platform
hazel
heart
hermes
heroku-toolbelt
hex-fiend
hexels
hipchat
hippoconnect
hiss
hive
hockey-app
hopper-disassembler
hoppergdbserver
horndis
hostbuddy
houdahgeo
houdahspot
hpuload
httpscoop
hugin
hush
hype
hyperdock
hyperswitch
hyro
iannix
ibackup
ibank
ibettercharge
iboostup
icefloor
ichm
icolors
icompta
icursor
id3-editor
identify
ideskcal
iexplorer
ifilex
ifunbox
igetter
imagealpha
imageoptim
img2icns
inboard
inc
indigo
induction
inkscape
inky
instacast
instead
insync
integrity
intel-power-gadget
intellij-idea
intellij-idea-ce
intermission
invisiblix
invisorql
iograph
ioquake3
ios7-screensaver
ipalette
ipaql
iphone-configuration-utility
iphoney
ireadfast
irip
isolator
istat-menus
istopmotion
istumbler
iterm2
itools
itunes-volume-control
itunesscrobbler
itweax
iupx
ivolume
izip
jabref
java
jawbone-updater
jd-gui
jdownloader
jedit
jewelrybox
jing
jitsi
joinme
josm
jsonlook
jubler
julia
jumpcut
jumpshare
justlooking
kaleidoscope
kdiff3
keepassx
keka
kext-drop
kext-utility
kext-wizard
key-codes
keyboard-cleaner
keyboard-maestro
keyboardcleantool
keycue
keyfinder
keyremap4macbook
keystore-explorer
kid3
kindle
kismac
kiwi
knock
knox
kobito
komodo-edit
kompozer
ksdiff
kuaipan
kugoumusic
kylo
lastfm
lastpass-universal
latexit
launchbar
launchcontrol
launchrocket
launchy
layervault
lazarus
league-of-legends
leap-motion
less
librecad
libreoffice
licecap
licensed
lightpaper
lighttable
limechat
lincastor
linein
lingon-x
lingrradar
linkinus
linphone
liquifile
litecoin
liteicon
liteide
little-snitch
livereload
livestation
locko
logic
logisim
logitech-control-center
logitech-harmony
logitech-unifying
logmein-client
logmein-hamachi
loom
love
lpk25-editor
ltspice
lucidor
lyn
lynxlet
lyx
mac-informer
mac-linux-usb-loader
macbreakz
macdrops
macfusion
machacha
machg
macintosh-explorer
macmoney
macpar-deluxe
macpass
macpaw-gemini
macpilot
macports
macs-fan-control
macterm
mactex
mactracker
macupdate-desktop
macvim
magic-launch
magican
mailfollowup
mailmate
mailplane
majic
makemkv
makerware
mame
mamp
manager
mangao
manico
maratis
marble
marked
marsedit
master-key
mauve
max
maxthon
mcedit
media-converter
mediaelch
mediafire-desktop
mediainfo
mediathekview
meerkat
mendeley-desktop
menubar-countdown
menubarfilter
menumeters
menuola
mesasqlite
meshlab
meteorologist
mi
middleclick
miditrail
mikogo
milkytracker
minco
mindnode-pro
minecraft
minimalclock
miro
miro-video-converter
mirrordisplays
mixlr
mixxx
mkvtoolnix
mocksmtp
money
moneymoney
moneywell
mongohub
mono-mdk
mono-mre
monolingual
monotype-skyfonts
moom
moreamp
mosh
mou
mover
movieply
movist
mozart
mp4tools
mpeg-streamclip
mpfreaker
mplayer-osx-extended
mplayerx
mpv
mucommander
mudlet
multibit
multibrowser
multifirefox
mumble
musescore
musicbrainz-picard
musicmanager
musicplayer
myphonedesktop
mysqlworkbench
nally
name-mangler
namebench
namechanger
namely
navicat-data-modeler
navicat-for-mariadb
navicat-for-mysql
navicat-for-oracle
navicat-for-postgresql
navicat-for-sql-server
navicat-for-sqlite
navicat-premium
neofinder
netbeans
netbeans-cpp
netbeans-php
nethackcocoa
netlogo
netnewswire
netshade
netspot
neu
nicecast
nightingale
nimbus
ninjablocks
nitroshare
nitrous-desktop
nmap
nocturne
node
node-webkit
noejectdelay
noiz2sa
nomacs
nosleep
notational-velocity
ntfs-free
nvalt
nzbvortex
objektiv
obsidian-menu-bar-mountain-lion
ocenaudio
oclint
omnidazzle
omnidisksweeper
omnifocus
omnigraffle
omnioutliner
omniplan
omnipresence
omniweb
onepassword
onyx
oovoo
openemu
openlp
openoffice
openra
openscad
opensesame
openttd
openvanilla
opera
opera-mail
opera-mobile-emulator
opera-next
optimal-layout
orange
orbit
origin
ormr
osxfuse
outwit-hub
owasp-zap
owncloud
p4merge
pacifist
pagico
paintbrush
pandoc
pandora-one
panic-unison
paparazzi
papers
paragon-extfs
paragon-ntfs
parallels
paraview
pashua
password-practice
pastor
path-finder
pcalc
pckeyboardhack
pdfsam
pdftk
peepopen
pemdas-widget
pencil
perian
pester
pg-commander
pgadmin3
pharo
phoenix-slides
phoneclean
photoninja
phpstorm
pi-filler
pianopub
picasa
picturelife
picturesque
piezo
pinegrow-web-designer
pins
pinta
pivotalbooster
pixel-check
pixelpeeper
pixelstick
plain-clip
platypus
playonmac
pleasesleep
plex-home-theater
plex-media-server
plug
plycounter
pngcommentator
poedit
poison
pokerstars
pokertracker
port-map
porthole
postbox
postgres
power-manager
power-manager-pro
powerkey
powerword
praat
preen
pref-setter
preference-manager
preferencecleaner
prefs-editor
prepros
prey
prismatik
private-eye
prizmo
processing
programmer-dvorak
projectlibre
prolific-usb-serial-driver
propane
protege
provisioning
proximity
proxpn
ps3-media-server
psychopy
pupil
pusher
putio-adder
puush
pwnagetool
pycharm
pycharm-ce
qbittorrent
qlcolorcode
qlimagesize
qlmarkdown
qlprettypatch
qlrest
qlstephen
qq
qqbrowser
qqmusic
qt-creator
qtspim
quassel-client
querious
quickcast
quickhue
quicklook-csv
quicklook-json
quicknfo
quickradar
quicksilver
quotefixformac
r
r-name
racket
raw-photo-processor
razer-synapse
rcdefaultapp
rcenvironment
rdio
rdm
readefine-desktop
readytalk
recordit
recovery-disk-assistant
reflector
refresh-finder
reggy
renamer
repetier-host
rescuetime
retinacapture
retinizer
retroshare
reveal
ridibooks
riffworkst4
rightzoom
ringtones
ripit
robomongo
rocks-n-diamonds
royal-tsx
rrootage
rss
rstudio
rtx
rubymine
runtastic-connect
sabnzbd
sage
sandbox
satellite-eyes
sauce
scala-ide
screenflick
screenflow
screenhero
screens-connect
screensteps
scribus
scriptql
scrivener
scroll-reverser
scrup
scummvm
sdrdx
seafile-client
seamonkey
seashore
second-life-viewer
secondbar
secrets
selfcontrol
send-to-kindle
sensiolabsdesktop
sequel-pro
sequential
serf
serial-tools
serialcloner
servetome
sevenzx
shadowsocksx
shadowsweeper
sharetool
shelf-leveler
shiftit
shimo
shiori
shoes
shortcat
shotcut
shuttle
sickbeard
sickbeard-anime
sidekick
sidestep
sidplay
sigil
silverback
silverlight
simon
simpholders
simple-comic
simple-css
simplecap
simulator-folders
sitesucker
sizeup
sizzlingkeys
sketch
sketchup
skim
skitch
skreenics
skydrive
skype
slack
slate
sleep-monitor
slice
slicy
slidemode
slimbatterymonitor
slimboat
sloth
slowy
smaller
smartgithg
smcfancontrol
smoothmouse
snagit
snip
snippet-edit
snippets
soleol
sonic-visualiser
sonos
sopcast
sophos-anti-virus-home-edition
soulver
soundcleod
soundflower
soundnote
sourcetree
spacemonkey
spacious
spark
spark-inspector
sparkle
sparkleshare
sparrow
spectacle
speedcrunch
speedlimit
speedtao
spek
spideroak
spirited-away
splashtop-personal
splashtop-streamer
splayerx
spotdox
spotifree
spotify
spotify-menubar
spotify-notifications
spyder
sqleditor
sqlexplorer
sqlite-database-browser
squidman
squirrel
sqwiggle
sshfs
ssx
startninja
stay
steam
steermouse
stella
stellarium
strongvpn-client
sts
subethaedit
subler
sublime-text
subnetcalc
subsmarine
subsurface
subtitle-master
subtitles
sunlogin-remote
super-otr
supercollider
superduper
supersync
surplusmeter
suspicious-package
sweet-home3d
swingfish
swinsian
synergy
synology-assistant
synology-cloud-station
synology-photo-station-uploader
synthesia
tactor
tag
tagalicious
tagger
tagoman
tagr
tapaal
taskpaper
teamspeak-client
teamviewer
teamviz
teeworlds
teleport
testflight
tex-live-utility
texmacs
texmaker
texnicle
texshop
textadept
textexpander
textmate
textroom
texts
texturepacker
textwrangler
the-archive-browser
the-brain
the-escapers-flux
the-hit-list
the-unarchiver
theremin
thetube
things
thong
thumbsup
thunder
thunderbird
thyme
tickets
tikz-editor
tiled
tilemill
time-out
time-tracker
timemachineeditor
timemachinescheduler
timings
tinkertool
tinygrab
tinyumbrella
tk-suite-client
toad-mac
toau
todoist
todos
tofu
toggldesktop
tomahawk
tomighty
tongbu
tonido
torbrowserbundle
torustrooper
totalfinder
totals
totalspaces
totalterminal
tower
trailer
trailrunner
transmission
transmission-remote-gui
transmit
treemaker
treesheets
tresorit
trickster
trim-enabler
truecrypt
tubbler
tuneinstructor
tunewiki
tunnelbear
tunnelblick
tuxguitar
tv-browser
tv-show-tracker
tvmobili
tvshows
twentytwo
twindocs
twine
twitterrific
typinator
uber-network-fuser
uberpov
ubuntu-one
ukelele
ultrastardeluxe
uncrustifyx
undercover
unetbootin
uninstallpkg
unison
unity-web-player
unity3d
unpkg
unrarx
usb-overdrive
utorrent
vagrant
valentina-studio
vassal
versions
viber
vico
videomonkey
videospec
vienna
vimediamanager
vine-server
vinoteka
virtualbox
virtualhostx
viscosity
visit
vistrails
visualack
visualvm
vitamin-r
vlc
vlc-remote
vlcstreamer
vmware-fusion
vocabulist
voicemac
vox-preference-pane
vyprvpn
wacom-bamboo-tablet
wacom-tablet
wallpaper-wizard
wasted
waterroof
wavtap
webp-quicklook
webstorm
wechat
wedge
weibox
weka
welly
wesnoth
whatpulse
whatsapp-pocket
whiteclock
widelands
window-switch
wineskin-winery
wireshark
witch
witgui
wiztoolsorg-restclient
woodhouse
wordservice
wowhead-client
wraparound
wuala
wunderlist
wyzo
x2goclient
x48
xact
xamarin-studio
xampp
xbench
xbmc
xbox360-controller-driver
xee
xiami
xld
xmarks-safari
xmind
xnviewmp
xquartz
xrg
xscope
xslimmer
xtrafinder
yanvi
yemuzip
ynab
yorufukurou
youdao
younited
youview
yubikey-personalization-gui
yubiswitch
zendserver
zendstudio
zepheer
zephyros
zeroad
zeroxed
zipcleaner
zipeg
zoomus
zooom
zotero
zterm