Linux

Ubuntu 22.04では.Net6をaptでそのままインストールできる

Tips

Ubuntu 22.04では.Net6をaptでそのままインストールできるようになったみたいです。

# apt install dotnet6

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  aspnetcore-runtime-6.0 aspnetcore-targeting-pack-6.0 dotnet-apphost-pack-6.0 dotnet-host dotnet-hostfxr-6.0
  dotnet-runtime-6.0 dotnet-sdk-6.0 dotnet-targeting-pack-6.0 dotnet-templates-6.0 liblttng-ust-common1
  liblttng-ust-ctl5 liblttng-ust1 libunwind-13 netstandard-targeting-pack-2.1
The following NEW packages will be installed:
  aspnetcore-runtime-6.0 aspnetcore-targeting-pack-6.0 dotnet-apphost-pack-6.0 dotnet-host dotnet-hostfxr-6.0
  dotnet-runtime-6.0 dotnet-sdk-6.0 dotnet-targeting-pack-6.0 dotnet-templates-6.0 dotnet6 liblttng-ust-common1
  liblttng-ust-ctl5 liblttng-ust1 libunwind-13 netstandard-targeting-pack-2.1
0 upgraded, 15 newly installed, 0 to remove and 10 not upgraded.
Need to get 124 MB of archives.
After this operation, 454 MB of additional disk space will be used.
Preparing to unpack .../12-netstandard-targeting-pack-2.1_6.0.108-0ubuntu1~22.04.1_amd64.deb ...
Unpacking netstandard-targeting-pack-2.1 (6.0.108-0ubuntu1~22.04.1) ...
Selecting previously unselected package dotnet-sdk-6.0.
Preparing to unpack .../13-dotnet-sdk-6.0_6.0.108-0ubuntu1~22.04.1_amd64.deb ...
Unpacking dotnet-sdk-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Selecting previously unselected package dotnet6.
Preparing to unpack .../14-dotnet6_6.0.108-0ubuntu1~22.04.1_amd64.deb ...
Unpacking dotnet6 (6.0.108-0ubuntu1~22.04.1) ...
Setting up dotnet-host (6.0.108-0ubuntu1~22.04.1) ...
update-alternatives: using /usr/lib/dotnet/dotnet6-6.0.108/dotnet to provide /usr/bin/dotnet (dotnet) in auto mode
update-alternatives: warning: skip creation of /usr/share/bash-completion/completions/dotnet because associated file /usr/lib/dotnet/dotnet6-6.0.108/bash-completion/completions/dotnet (of link group dotnet) doesn't exist
Setting up dotnet-apphost-pack-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Setting up netstandard-targeting-pack-2.1 (6.0.108-0ubuntu1~22.04.1) ...
Setting up liblttng-ust-common1:amd64 (2.13.1-1ubuntu1) ...
Setting up dotnet-targeting-pack-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Setting up libunwind-13:amd64 (1:13.0.1-2ubuntu2) ...
Setting up aspnetcore-targeting-pack-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Setting up liblttng-ust-ctl5:amd64 (2.13.1-1ubuntu1) ...
Setting up dotnet-hostfxr-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Setting up dotnet-templates-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Setting up liblttng-ust1:amd64 (2.13.1-1ubuntu1) ...
Setting up dotnet-runtime-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Setting up aspnetcore-runtime-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Setting up dotnet-sdk-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Setting up dotnet6 (6.0.108-0ubuntu1~22.04.1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Scanning processes...
Scanning linux images...

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.

インストールできるパッケージは以下です。

aspnetcore-runtime-6.0/jammy-updates 6.0.108-0ubuntu1~22.04.1 amd64
ASP dotNET Core runtime

dotnet-apphost-pack-6.0/jammy-updates 6.0.108-0ubuntu1~22.04.1 amd64
Internal - targeting pack for Microsoft.NETCore.App 6.0

dotnet-host/jammy-updates 6.0.108-0ubuntu1~22.04.1 amd64
dotNET host command line

dotnet-hostfxr-6.0/jammy-updates 6.0.108-0ubuntu1~22.04.1 amd64
dotNET host resolver

dotnet-runtime-6.0/jammy-updates 6.0.108-0ubuntu1~22.04.1 amd64
dotNET runtime

dotnet-sdk-6.0/jammy-updates 6.0.108-0ubuntu1~22.04.1 amd64
dotNET 6.0 Software Development Kit

dotnet-sdk-6.0-source-built-artifacts/jammy-updates 6.0.108-0ubuntu1~22.04.1 amd64
Internal package for building dotNet 6.0 Software Development Kit

dotnet-targeting-pack-6.0/jammy-updates 6.0.108-0ubuntu1~22.04.1 amd64
Internal - targeting pack for Microsoft.NETCore.App 6.0

dotnet-templates-6.0/jammy-updates 6.0.108-0ubuntu1~22.04.1 amd64
dotNET 6.0 templates

dotnet6/jammy-updates 6.0.108-0ubuntu1~22.04.1 amd64
dotNET CLI tools and runtime

							

-Linux
-