Creators Update(1703) からFall Creators Update(1709)にしたときのBashはどうなる?

あと4日でアップデート振ってくるみたいですが社内での不具合等の人柱的な存在として先行してアップデートしてみました。

特にアップデート自体は少々の時間がかかったものの特に何も変わりなく起動したので当初の目的としては完了。

それはいいのだが、そういえばBash on Windowsがなくなり(?)ubuntuとかSUSEとかFedoraとかが入れられるとかだったなぁということを思い出して気になったので少し調べたところやはり下記にあるように今のを一旦消して、ubuntuとか入れなおした方が良いようです。

What’s new in WSL in Windows 10 Fall Creators Update – Windows Command Line Tools For Developers

Note: If you've previously installed WSL on Anniversary or Creators Update, your existing "legacy" Ubuntu instance will continue to work just fine, but it is considered deprecated. We recommend that you migrate your files off the legacy instance and replace it with a store-delivered instance, so that you receive the support of Canonical and Microsoft moving forward.

Creators Updateとかで入れたBashの消し方はよく書かれてる

lxrun /uninstall /full

でできると思います。 やる前に/home/配下とか必要なものはバックアップ取っておきましょう。 %USERPROFILE%\AppData\Local\lxss\からもアクセスできるようなのでわざわざターミナルから作業しなくてもよさそうです。 後は個人的にはaptで入れたものとか、pipで入れたものとかを一覧にしておきました。

grep -i 'requested-by\|command' /var/log/apt/history.log >apt_list.txt
pip freeze >pip_list.txt