Description
"bash: dotnet: command not found" like closed #3846 after reinstall .NET6 over .NET5 on CentOS 7.9, and same issue #3603 on macOS.
Reproduction Steps
Take a clean CentOS 7.9 installation.
sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
sudo yum install dotnet-sdk-5.0 (your page https://docs.microsoft.com/ru-ru/dotnet/core/install/linux-centos should be updated upto v6).
dotnet --info => .NET5
It's ok.
...
Now trying to update with an over-installation of same 6.0:
sudo yum install dotnet-sdk-6.0
dotnet --info => still .NET5 only? none of .NET6
It's wrong!
Many bad attempts to clean these installations to get 6.0, including the total erasing of folders...
sudo yum install dotnet-sdk-6.0 (expected to reinstall everything required)
dotnet --info => "bash: dotnet: command not found"
Expected behavior
dotnet
Actual behavior
bash: dotnet: command not found
Regression?
No response
Known Workarounds
sudo yum install dotnet-sdk-6.0
Test ls /usr/share/dotnet => "sdk sdk-manifests shared templates" (no dotnet installed)
Workaround:
wget https://dot.net/v1/dotnet-install.sh
chmod +x dotnet-install.sh
./dotnet-install.sh
cp -r -n .dotnet/* /usr/share/dotnet
ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
rm -rf .dotnet
Test ls /usr/share/dotnet => "dotnet host packs sdk sdk-manifests shared templates" (dotnet and two folders added)
Configuration
dotnet --info =>
Runtime Environment:
OS Name: centos
OS Version: 7
OS Platform: Linux
RID: centos.7-x64
Base Path: /usr/share/dotnet/sdk/6.0.100/
Host (useful for support):
Version: 6.0.0
Commit: 4822e3c3aa
Other information
Expected the running (first time or any later) of sudo yum install dotnet-sdk-6.0 will make additionally:
- host/
- packs/
- dotnet
- /usr/bin/dotnet
Or add some documentation near dotnet-install.sh (as it writes on its run: not recommended for the system install).
Description
"bash: dotnet: command not found" like closed #3846 after reinstall .NET6 over .NET5 on CentOS 7.9, and same issue #3603 on macOS.
Reproduction Steps
Take a clean CentOS 7.9 installation.
sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpmsudo yum install dotnet-sdk-5.0(your page https://docs.microsoft.com/ru-ru/dotnet/core/install/linux-centos should be updated upto v6).dotnet --info=> .NET5It's ok.
...
Now trying to update with an over-installation of same 6.0:
sudo yum install dotnet-sdk-6.0dotnet --info=> still .NET5 only? none of .NET6It's wrong!
Many bad attempts to clean these installations to get 6.0, including the total erasing of folders...
sudo yum install dotnet-sdk-6.0(expected to reinstall everything required)dotnet --info=> "bash: dotnet: command not found"Expected behavior
dotnet
Actual behavior
bash: dotnet: command not found
Regression?
No response
Known Workarounds
sudo yum install dotnet-sdk-6.0Test
ls /usr/share/dotnet=> "sdk sdk-manifests shared templates" (nodotnetinstalled)Workaround:
Test
ls /usr/share/dotnet=> "dotnet host packs sdk sdk-manifests shared templates" (dotnetand two folders added)Configuration
dotnet --info=>Other information
Expected the running (first time or any later) of
sudo yum install dotnet-sdk-6.0will make additionally:Or add some documentation near
dotnet-install.sh(as it writes on its run: not recommended for the system install).