Skip to content

Instantly share code, notes, and snippets.

@Ovis
Last active January 28, 2019 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ovis/394b656630748c00521b385db4bc0603 to your computer and use it in GitHub Desktop.
Save Ovis/394b656630748c00521b385db4bc0603 to your computer and use it in GitHub Desktop.
gceuser@free-instance:~$ wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
gceuser@free-instance:~$ sudo dpkg -i packages-microsoft-prod.deb
Selecting previously unselected package packages-microsoft-prod.
(Reading database ... 60730 files and directories currently installed.)
Preparing to unpack packages-microsoft-prod.deb ...
Unpacking packages-microsoft-prod (1.0-ubuntu18.04.2) ...
Setting up packages-microsoft-prod (1.0-ubuntu18.04.2) ...
gceuser@free-instance:~$ sudo add-apt-repository universe
'universe' distribution component is already enabled for all sources.
gceuser@free-instance:~$ sudo apt-get install apt-transport-https
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'apt' instead of 'apt-transport-https'
apt is already the newest version (1.6.6).
The following package was automatically installed and is no longer required:
grub-pc-bin
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
gceuser@free-instance:~$ sudo apt-get update
Hit:1 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:4 https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease [3226 B]
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:6 http://archive.canonical.com/ubuntu bionic InRelease [10.2 kB]
Get:7 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic/multiverse Sources [181 kB]
Get:8 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic/universe Sources [9051 kB]
Get:9 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic/main Sources [829 kB]
Get:10 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic/restricted Sources [5324 B]
Get:11 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8570 kB]
Get:12 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages [35.0 kB]
Get:13 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic/universe Translation-en [4941 kB]
Get:14 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
Get:15 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
Get:16 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic-updates/multiverse Sources [3828 B]
Get:17 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic-updates/main Sources [233 kB]
Get:18 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic-updates/universe Sources [123 kB]
Get:19 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic-updates/restricted Sources [2064 B]
Get:20 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [491 kB]
Get:21 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [184 kB]
Get:22 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [714 kB]
Get:23 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [176 kB]
Get:24 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [6388 B]
Get:25 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [3356 B]
Get:26 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic-backports/universe Sources [2068 B]
Get:27 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [3472 B]
Get:28 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [1604 B]
Get:29 http://archive.canonical.com/ubuntu bionic/partner amd64 Packages [2304 B]
Get:30 http://archive.canonical.com/ubuntu bionic/partner Translation-en [1272 B]
Get:31 http://security.ubuntu.com/ubuntu bionic-security/universe Sources [29.1 kB]
Get:32 http://security.ubuntu.com/ubuntu bionic-security/main Sources [71.2 kB]
Get:33 http://security.ubuntu.com/ubuntu bionic-security/multiverse Sources [2308 B]
Get:34 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [243 kB]
Get:35 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [92.3 kB]
Get:36 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [114 kB]
Get:37 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [64.4 kB]
Get:38 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [3332 B]
Get:39 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [1848 B]
Fetched 26.7 MB in 6s (4213 kB/s)
Reading package lists... Done
gceuser@free-instance:~$ sudo apt-get install dotnet-sdk-2.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
grub-pc-bin
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
aspnetcore-runtime-2.2 dotnet-host dotnet-hostfxr-2.2 dotnet-runtime-2.2 dotnet-runtime-deps-2.2 liblttng-ust-ctl4 liblttng-ust0 liburcu6
The following NEW packages will be installed:
aspnetcore-runtime-2.2 dotnet-host dotnet-hostfxr-2.2 dotnet-runtime-2.2 dotnet-runtime-deps-2.2 dotnet-sdk-2.2 liblttng-ust-ctl4 liblttng-ust0 liburcu6
0 upgraded, 9 newly installed, 0 to remove and 55 not upgraded.
Need to get 132 MB of archives.
After this operation, 387 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 dotnet-runtime-deps-2.2 amd64 2.2.1-1 [2596 B]
Get:2 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 dotnet-host amd64 2.2.1-1 [36.4 kB]
Get:3 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 dotnet-hostfxr-2.2 amd64 2.2.1-1 [144 kB]
Get:4 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 dotnet-runtime-2.2 amd64 2.2.1-1 [20.7 MB]
Get:5 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic/main amd64 liburcu6 amd64 0.10.1-1 [52.1 kB]
Get:6 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic/universe amd64 liblttng-ust-ctl4 amd64 2.10.1-1 [80.8 kB]
Get:7 http://us-west1.gce.archive.ubuntu.com/ubuntu bionic/universe amd64 liblttng-ust0 amd64 2.10.1-1 [154 kB]
Get:8 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 aspnetcore-runtime-2.2 amd64 2.2.1-1 [22.8 MB]
Get:9 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 dotnet-sdk-2.2 amd64 2.2.103-1 [88.5 MB]
Fetched 132 MB in 6s (23.4 MB/s)
Selecting previously unselected package liburcu6:amd64.
(Reading database ... 60738 files and directories currently installed.)
Preparing to unpack .../0-liburcu6_0.10.1-1_amd64.deb ...
Unpacking liburcu6:amd64 (0.10.1-1) ...
Selecting previously unselected package liblttng-ust-ctl4:amd64.
Preparing to unpack .../1-liblttng-ust-ctl4_2.10.1-1_amd64.deb ...
Unpacking liblttng-ust-ctl4:amd64 (2.10.1-1) ...
Selecting previously unselected package liblttng-ust0:amd64.
Preparing to unpack .../2-liblttng-ust0_2.10.1-1_amd64.deb ...
Unpacking liblttng-ust0:amd64 (2.10.1-1) ...
Selecting previously unselected package dotnet-runtime-deps-2.2.
Preparing to unpack .../3-dotnet-runtime-deps-2.2_2.2.1-1_amd64.deb ...
Unpacking dotnet-runtime-deps-2.2 (2.2.1-1) ...
Selecting previously unselected package dotnet-host.
Preparing to unpack .../4-dotnet-host_2.2.1-1_amd64.deb ...
Unpacking dotnet-host (2.2.1-1) ...
Selecting previously unselected package dotnet-hostfxr-2.2.
Preparing to unpack .../5-dotnet-hostfxr-2.2_2.2.1-1_amd64.deb ...
Unpacking dotnet-hostfxr-2.2 (2.2.1-1) ...
Selecting previously unselected package dotnet-runtime-2.2.
Preparing to unpack .../6-dotnet-runtime-2.2_2.2.1-1_amd64.deb ...
Unpacking dotnet-runtime-2.2 (2.2.1-1) ...
Selecting previously unselected package aspnetcore-runtime-2.2.
Preparing to unpack .../7-aspnetcore-runtime-2.2_2.2.1-1_amd64.deb ...
Unpacking aspnetcore-runtime-2.2 (2.2.1-1) ...
Selecting previously unselected package dotnet-sdk-2.2.
Preparing to unpack .../8-dotnet-sdk-2.2_2.2.103-1_amd64.deb ...
Unpacking dotnet-sdk-2.2 (2.2.103-1) ...
Setting up dotnet-host (2.2.1-1) ...
Setting up liburcu6:amd64 (0.10.1-1) ...
Setting up liblttng-ust-ctl4:amd64 (2.10.1-1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up dotnet-hostfxr-2.2 (2.2.1-1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up liblttng-ust0:amd64 (2.10.1-1) ...
Setting up dotnet-runtime-deps-2.2 (2.2.1-1) ...
Setting up dotnet-runtime-2.2 (2.2.1-1) ...
Setting up aspnetcore-runtime-2.2 (2.2.1-1) ...
Setting up dotnet-sdk-2.2 (2.2.103-1) ...
This software may collect information about you and your use of the software, and send that to Microsoft.
Please visit http://aka.ms/dotnet-cli-eula for more information.
Welcome to .NET Core!
---------------------
Learn more about .NET Core: https://aka.ms/dotnet-docs
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs
Telemetry
---------
The .NET Core tools collect usage data in order to help us improve your experience. The data is anonymous and doesn't include command-line arguments. The data is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.
Read more about .NET Core CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry
Configuring...
--------------
A command is running to populate your local package cache to improve restore speed and enable offline access. This command takes up to one minute to complete and only runs once.
Processing triggers for libc-bin (2.27-3ubuntu1) ...
gceuser@free-instance:~$ dotnet
Usage: dotnet [options]
Usage: dotnet [path-to-application]
Options:
-h|--help Display help.
--info Display .NET Core information.
--list-sdks Display the installed SDKs.
--list-runtimes Display the installed runtimes.
path-to-application:
The path to an application .dll file to execute.
gceuser@free-instance:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment