2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

(brew/brew-cask )インストールパッケージのバージョン一覧表示

Last updated at Posted at 2020-09-10

超便利なパッケージマネージャーbrew/brew caskにて、インストールしたパッケージのバージョン一覧をぱっと出す方法。

既に下記記事にて考案されていましたが、執筆者様が公開された当時よりcaskroomのパスが変わったらしくそのままでは使用できなかったため、修正版を残しておきます。
https://qiita.com/kkdd/items/a4e75e95d0445499e3c6

> brew list --versions | awk '{printf("%-18s %s\n",$1,$NF)}'
gettext            0.20.1
libidn2            2.2.0_1
libunistring       0.9.10
maven              3.6.2
ncurses            6.1
openssl            1.0.2s
openssl@1.1        1.1.1d
pcre               8.43
wget               1.20.3_1
zsh                5.7.1
> brew cask list | cut -d' ' -f1 | xargs -I % bash -c "echo -n %' '; ls -C /usr/local/Caskroom/%" | awk '{printf("%-18s",$1);$1="";print}'
clipy              1.2.1
docker             2.1.0.2,37877
eclipse-jee        4.12.0,2019-06:R
google-chrome      74.0.3729.131
google-japanese-ime latest
iterm2             3.2.9
java               12.0.2,10:e482c34c86bd4bf8b56c0b35558996b9
kitematic          0.17.8
slack              4.0.3
spectacle          1.2
visual-studio-code 1.38.1
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?