Windows Subsystem for LinuxにPowerShell Coreをインストールしてみた
時の、備忘録。
# Import the public repository GPG keys
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
# Register the Microsoft Ubuntu repository
sudo curl -o /etc/apt/sources.list.d/microsoft.list https://packages.microsoft.com/config/ubuntu/16.04/prod.list
# Update the list of products
sudo -E apt-get update
# Install PowerShell
sudo -E apt-get install -y powershell
※sudoに「-E」オプションがあるのは、ログインユーザーの環境変数(proxyの設定)を読み込ませるため。