それマグで!

知識はカップより、マグでゆっくり頂きます。 takuya_1stのブログ

習慣に早くから配慮した者は、 おそらく人生の実りも大きい。

インストールに疲弊したので cask を使うことにした

いつものソフトウェアをインストールするのに疲労。

Boxen がいいのは知ってるんだけど・・・Boxenは、また面倒を増やしそうなので、

覚えることが少ない方法がないかなぁなんて

brew install xquartz 

とかできたらいいのにな。ってずっと思ってました。

Cask を使おう

Boxenを削除してhomebrew-caskを使ってみた - 株式会社BEFOOL

だるいし、メンテかったるいとおもってた無精なわたしにピッタリですね!

Caskのインストール(2016-04-15 確認

brew tap caskroom/cask

Cask のインストール(2015-01-08確認

brew install caskroom/cask/brew-cask

これで、OK.

cask のインストール(旧)

2015-01-08:追記。公式確認したら、tap する方法は古かった。

cask はhomebrew のレポジトリで提供されていました。

brew tap phinze/homebrew-cask

とりあえず、レポジトリのTap(蛇口)を作りましょうね。

すると、以下のよう表示されるので、それを実行

It looks like you tapped a private repository. To avoid entering your
credentials each time you update, you can use git HTTP credential caching
or issue the following command:

  cd /usr/local/Library/Taps/phinze/homebrew-cask
  git remote set-url origin git@github.com:phinze/homebrew-cask.git

つぎに、cask のコマンドセットをインストール

brew install brew-cask

これで、準備が出来たので。コマンドを確認

takuya@rena:~/Desktop$
takuya@rena:~/Desktop$ brew cask
brew-cask provides a friendly homebrew-style CLI workflow for the
administration of Mac applications distributed as binaries.

!!
!! no command verb:
!!

Commands:

    alfred     used to modify Alfred s scope to include the Caskroom
    audit      verifies installability of Casks
    cat        dump raw source of the given Cask to the standard output
    cleanup    cleans up cached downloads and tracker symlinks
    create     creates the given Cask and opens it in an editor
    doctor     checks for configuration issues
    edit       edits the given Cask
    fetch      downloads Cask resources to local cache
    home       opens the homepage of the given Cask
    info       displays information about the given Cask
    install    installs the given Cask
    list       with no args, lists installed Casks; given installed Casks, lists staged files
    search     searches all known Casks
    uninstall  uninstalls the given Cask
    update     a synonym for 'brew update'
    zap        zaps all files associated with the given Cask

See also "man brew-cask"

pkg インストール

brew cask install xquartz

X11を入れてみた。簡単ね

結構なんでもある。

takuya@rena:~/Desktop$ brew cask search source
==> Partial matches
sourcetree
takuya@rena:~/Desktop$ brew cask search evernote
==> Exact match
evernote
takuya@rena:~/Desktop$ brew cask search sublime
==> Partial matches
sublime-text
takuya@rena:~/Desktop$ brew cask search kobito
==> Exact match
kobito

なんと、qiita kobito まである。

以外に色々とあるので、しばらく使ってみようと思います。

brew cask とか長いから、aliasしとこう

alias cask="brew cask "

参考資料

Boxenを削除してhomebrew-caskを使ってみた - 株式会社BEFOOL

みんなhomebrew-caskって知ってるか? - Qiita

感謝

id:hamaco さんから、指摘頂きました。

うん、たしかにそうだわ。ちゃんと公式確認するべきだった。配布元の確認を怠ったので反省。

インストールに疲弊したので cask を使うことにした - それマグで!

使うだけなら多分問題起きないと思うけど、caskのインストール方法古い気がするこれ。公式のが新しいと思う。 http://caskroom.io/

2015/01/07 12:01