LoginSignup
0
0

More than 1 year has passed since last update.

Ubuntu20.04にAzure開発環境をインストールする

Posted at

はじめに

Ubuntu 20.04にAzure用の開発環境をインストールした際の手順です。

環境

動作環境は以下の通り。

Ubuntu
$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.2 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

手順

インストール

Ubuntu 20.04(LTS)では、本記事執筆時点で .NET Core 3.1 と.NET 5をサポートしています。

.NET Core 3.1 と.NET 5を両方ともインストールしましょう。

パケージリポジトリの追加

パッケージ リポジトリを追加します。

wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb

.NET SDKの追加

.NET SDK をインストールします。

sudo apt-get update; \
  sudo apt-get install -y apt-transport-https && \
  sudo apt-get update && \
  sudo apt-get install -y dotnet-sdk-5.0 dotnet-sdk-3.1

ランタイムの追加

ランタイムをインストールします。

sudo apt-get update; \
  sudo apt-get install -y apt-transport-https && \
  sudo apt-get update && \
  sudo apt-get install -y aspnetcore-runtime-5.0 aspnetcore-runtime-3.1

sudo apt-get install -y dotnet-runtime-5.0 dotnet-runtime-3.1
0
0
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
0
0