Merge pull request #1487 from leecow/master

add 18.04 to feed instructions
This commit is contained in:
Lee Coward 2018-04-30 10:02:12 -07:00 committed by GitHub
commit 6bdad93da8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 113 additions and 1 deletions

View file

@ -34,6 +34,15 @@ If you have .NET Core Previews installed, it will need to be removed before atte
Register the Microsoft key, the product repository for your distro and install required system dependencies with the following scripts.
#### Ubuntu 18.04
```bash
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
wget -q https://packages.microsoft.com/config/ubuntu/18.04/prod.list
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
```
#### Ubuntu 17.10
```bash

View file

@ -23,6 +23,7 @@
## Docker
Images for .NET Core 2.1.0-preview2-26406-04 are available on [Docker](https://hub.docker.com/r/microsoft/dotnet/).
## Installing .NET Core on Linux
### Uninstall any Preview versions
@ -31,7 +32,109 @@ If you have previous .NET Core Previews or daily builds installed, these to be r
### Linux installer issue
There's an issue with the Linux installers where a clean system installing a stable release of .NET Core will also install the Preview version of the .NET Host (`dotnet-host` package) resulting in a broken state. Until we work out how best to resolve this issue, Preview installers will not be published to the Linux package manager feeds. Please use the binary archive (tar.gz) install instructions below.
### Ubuntu and Debian based systems
Register the Microsoft key, the product repository for your distro and install required system dependencies with the following scripts.
#### Ubuntu 18.04
```bash
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
wget -q https://packages.microsoft.com/config/ubuntu/18.04/prod.list
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
```
#### Ubuntu 17.10
```bash
wget -q packages-microsoft-prod.deb https://packages.microsoft.com/config/ubuntu/17.10/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
```
#### Ubuntu 16.04
```bash
wget -q packages-microsoft-prod.deb https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
```
#### Ubuntu 14.04
```bash
wget -q packages-microsoft-prod.deb https://packages.microsoft.com/config/ubuntu/14.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
```
#### Debian 9
```bash
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
wget -q https://packages.microsoft.com/config/debian/9/prod.list
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
```
#### Debian 8
```bash
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
wget -q https://packages.microsoft.com/config/debian/8/prod.list
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
```
Then, update the package cache and install .NET Core
```bash
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-2.1.300-preview2-008533
```
### RHEL and Fedora based systems
Register the Microsoft key, the product repository for your distro and install required system dependencies with the following scripts.
#### Red Hat, Fedora, CentOS, Oracle Linux
```bash
sudo rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm
```
### SUSE Enterprise Linux, OpenSUSE
#### SUSE Enterprise Linux
```bash
sudo rpm -Uvh https://packages.microsoft.com/config/sles/12/packages-microsoft-prod.rpm
```
#### OpenSUSE
```bash
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
wget -q https://packages.microsoft.com/config/opensuse/42.2/prod.repo
sudo mv prod.repo /etc/zypp/repos.d/microsoft-prod.repo
```
Then, update the package cache and install .NET Core
#### Fedora, CentOS and Oracle Linux
```bash
sudo yum update
sudo yum install dotnet-sdk-2.1.300-preview2-008533
```
#### SUSE Enterprise Linux and OpenSUSE
```bash
sudo zypper update
sudo zypper install dotnet-sdk-2.1.105
```
**Note:** When installing the SDK, SUSE and OpenSUSE may report that nothing provides libcurl. libcurl should already be installed on supported versions of both distros. Run zypper search libcurl to confirm. The error will present 2 "solutions". Choose "Solution 2" to continue installing .NET Core.
## Installation from a binary archive