Skip to content

openSUSE - upgrade using 'zypper up' command upgrades 3.1 host to 6.0 and removes 'dotnet' command #61849

@NikolaMilosavljevic

Description

@NikolaMilosavljevic

Dotnet-host package is built with version-agnostic package name, which causes an issue when upgrading, for instance 3.1 host to latest. 6.0 host will be installed and 'dotnet' command will be missing.

rpm -q --queryformat "name: %{NAME}, version: %{VERSION}" https://packages.microsoft.com/sles/15/prod/dotnet-host-6.0.0-x64.rpm
warning: https://packages.microsoft.com/sles/15/prod/dotnet-host-6.0.0-x64.rpm: Header V4 RSA/SHA256 Signature, key ID be1229cf: NOKEY
name: dotnet-host, version: 6.0.0

Dotnet-host package is intentionally built as version-agnostic, see relevant infra:

<VersionInstallerName>false</VersionInstallerName>

https://github.com/dotnet/arcade/blob/97463777ee9a8445d4a4c5911ede0f0cd71fa8aa/src/Microsoft.DotNet.Build.Tasks.Installers/build/installer.singlerid.targets#L99

Upgrading to latest host version should not remove 'dotnet' command.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions