Deepin install dotnet-sdk-5.0

Deepin install dotnet-sdk-5.0

参考 https://docs.microsoft.com/zh-cn/dotnet/core/install/linux-debian

 

查看Deepin基于Debian的版本

neo@neo-deepin:~$ cat /etc/lsb-release 
DISTRIB_ID=Deepin
DISTRIB_RELEASE=20
DISTRIB_DESCRIPTION="Deepin 20"
DISTRIB_CODENAME=apricot
neo@neo-deepin:~$ 
neo@neo-deepin:~$ cat /etc/os-release 
PRETTY_NAME="Deepin 20"
NAME="Deepin"
VERSION_ID="20"
VERSION="20"
ID=Deepin
HOME_URL="https://www.deepin.org/"
BUG_REPORT_URL="https://bbs.deepin.org/"
neo@neo-deepin:~$ 
neo@neo-deepin:~$ cat /etc/issue
Deepin GNU/Linux 20 \n \l

neo@neo-deepin:~$ 
neo@neo-deepin:~$ cat /etc/debian_version 
10.6
neo@neo-deepin:~$ 

获取安装源列表文件和安装源证书

neo@neo-deepin:~$ 
neo@neo-deepin:~$ wget -qO - https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
neo@neo-deepin:~$ sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
neo@neo-deepin:~$ sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
neo@neo-deepin:~$ 
neo@neo-deepin:~$ wget -q https://packages.microsoft.com/config/debian/10/prod.list
neo@neo-deepin:~$ sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
neo@neo-deepin:~$ sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list
neo@neo-deepin:~$ 

安装dotnet-sdk

neo@neo-deepin:~$ 
neo@neo-deepin:~$ sudo aptitude update 
neo@neo-deepin:~$ 
neo@neo-deepin:~$ sudo aptitude install dotnet-sdk-5.0 
neo@neo-deepin:~$ 

查看dotnet版本

 

============ End

 

posted @ 2020-11-13 22:18  lsgxeva  阅读(626)  评论(0编辑  收藏  举报