Skip to content

Instantly share code, notes, and snippets.

@kiyoaki
Last active October 26, 2025 03:19
Show Gist options
  • Save kiyoaki/1df3ed0b037400a16988fd3a2f2cd961 to your computer and use it in GitHub Desktop.
Save kiyoaki/1df3ed0b037400a16988fd3a2f2cd961 to your computer and use it in GitHub Desktop.
Codex universal container image's setup scipt for dotnet
# セットアップ スクリプトもメンテナンススクリプトも下記を設定したうえで
sudo apt install gpg
wget https://dot.net/v1/dotnet-install.asc
gpg --import dotnet-install.asc
wget https://dot.net/v1/dotnet-install.sh
wget https://dot.net/v1/dotnet-install.sig
gpg --verify dotnet-install.sig dotnet-install.sh
chmod +x ./dotnet-install.sh
./dotnet-install.sh --channel STS
export DOTNET_ROOT=$HOME/.dotnet
export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools
dotnet --info
# AGENTS.md に下記も書いておいた方が良い
# If the dotnet command is not found, run the following and retry: export DOTNET_ROOT=$HOME/.dotnet, export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools, then dotnet --info.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment