$ podman run -it ubi9
[root@ae7de88ce53e /]# # dnf install -yq dotnet-sdk-9.0
[root@ae7de88ce53e /]# ls /usr/lib64/dotnet
ls: cannot access '/usr/lib64/dotnet': No such file or directory
[root@ae7de88ce53e /]# # dnf install -yq dotnet-sdk-9.0
[root@ae7de88ce53e /]# dnf install -yq dotnet-sdk-9.0
Error: Unable to find a match: dotnet-sdk-9.0
[root@ae7de88ce53e /]# dnf install -yq dotnet-sdk-8.0
Installed:
aspnetcore-runtime-8.0-8.0.7-1.el9_4.x86_64 aspnetcore-targeting-pack-8.0-8.0.7-1.el9_4.x86_64 dotnet-apphost-pack-8.0-8.0.7-1.el9_4.x86_64
dotnet-host-8.0.7-1.el9_4.x86_64 dotnet-hostfxr-8.0-8.0.7-1.el9_4.x86_64 dotnet-runtime-8.0-8.0.7-1.el9_4.x86_64
dotnet-sdk-8.0-8.0.107-1.el9_4.x86_64 dotnet-targeting-pack-8.0-8.0.7-1.el9_4.x86_64 dotnet-templates-8.0-8.0.107-1.el9_4.x86_64
libicu-67.1-9.el9.x86_64 netstandard-targeting-pack-2.1-8.0.107-1.el9_4.x86_64
[root@ae7de88ce53e /]# ls /usr/lib64/dotnet
LICENSE.txt ThirdPartyNotices.txt dotnet host metadata packs sdk sdk-manifests shared templates
[root@ae7de88ce53e /]# dnf remove -yq dotnet-sdk-8.0
Removed:
aspnetcore-runtime-8.0-8.0.7-1.el9_4.x86_64 aspnetcore-targeting-pack-8.0-8.0.7-1.el9_4.x86_64 dotnet-apphost-pack-8.0-8.0.7-1.el9_4.x86_64
dotnet-host-8.0.7-1.el9_4.x86_64 dotnet-hostfxr-8.0-8.0.7-1.el9_4.x86_64 dotnet-runtime-8.0-8.0.7-1.el9_4.x86_64
dotnet-sdk-8.0-8.0.107-1.el9_4.x86_64 dotnet-targeting-pack-8.0-8.0.7-1.el9_4.x86_64 dotnet-templates-8.0-8.0.107-1.el9_4.x86_64
libicu-67.1-9.el9.x86_64 netstandard-targeting-pack-2.1-8.0.107-1.el9_4.x86_64
[root@ae7de88ce53e /]# ls /usr/lib64/dotnet
packs