試した環境
- Chocolatey v1.1.0
本題
パッケージマネージャの Chocolatey が2022年の3月にメジャーバージョンアップし、v1.0.0 になりました。(記事執筆現在ではv1.1.0が最新版です。) その1.0.0のリリースノートの中に、短縮形コマンドが非推奨になった旨の記述がありました。
https://docs.chocolatey.org/en-us/choco/release-notes#march-21-2022
Mark Chocolatey shims (chocolatey, cinst, clist, cpush, cuninst, cup) as deprecated - see #2641
choco -?
コマンドでヘルプメニュー表示した時にも同じ旨のメッセージが表示されます。
これらの短縮形コマンドがv2.0.0で削除され完全に使用できなくなることもアナウンスされています。
>choco -? This is a listing of all of the different things you can pass to choco. DEPRECATION NOTICE The shims `chocolatey`, `cinst`, `clist`, `cpush`, `cuninst` and `cup` are deprecated. We recommend updating all scripts to use their full command equivalent as these will be removed in v2.0.0 of Chocolatey.
ソフトウェアをまとめてアップデートするときにcup all -y
コマンドを割と重宝しておりましが、非推奨になったので、これからはchoco upgrade all -y
と打つことにします。
ちなみに、choco upgrade
のエイリアスとして使用できていたchoco update
コマンドはv1.0.0で削除されました。
参考
https://docs.chocolatey.org/en-us/choco/release-notes#march-21-2022