11
2

More than 1 year has passed since last update.

asdf 自体をアップデートする方法

Last updated at Posted at 2021-12-31

asdf という、言語ランタイムのバージョン管理ツールがあります。
言語に特化したものに rbenv 等がありますが、それらの汎用版です。

asdf 自体のインストール方法や、言語ランタイムのインストール方法は Qiita の asdf タグ を追えばわかるのですが、asdf 自体のアップデート方法が書かれていなかったので、それを解説します。

asdf 自体のアップデート

asdf update

実行の様子

$ asdf update
Previous HEAD position was a1ef92a Update version to 0.8.1
HEAD is now at 9ee24a3 chore: release 0.9.0 (#994)
Updated asdf to release v0.9.0

おわりです。

update サブコマンドの実装は lib/commands/command-update.bash に書かれています。GitHub から fetch してきて、新しいバージョンに git checkout してるんですね。

おまけ: 言語ランタイムのバージョンの更新

インストールされているプラグインをすべて対象にするなら、

asdf plugin update --all

個別に指定するなら

asdf plugin update ruby

これで最新のバージョン一覧が入手できます。

あとがき

要するに asdf update が言いたかっただけのブログ。

EoT

11
2
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
11
2