Skip to content

Instantly share code, notes, and snippets.

@omajid
Created August 17, 2022 13:28
Show Gist options
  • Save omajid/b5813156b9e47419feb02d5b219441e2 to your computer and use it in GitHub Desktop.
Save omajid/b5813156b9e47419feb02d5b219441e2 to your computer and use it in GitHub Desktop.
$ podman run -it ubuntu:22.04 [93/93]
Resolved "ubuntu" as an alias (/etc/containers/registries.conf.d/000-shortnames.conf)
Trying to pull docker.io/library/ubuntu:22.04...
Getting image source signatures
Copying blob d19f32bd9e41 done
Copying config df5de72bdb done
Writing manifest to image destination
Storing signatures
root@855388c6f960:/# apt install dotnet6
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package dotnet6
root@855388c6f960:/# apt update
Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Get:3 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [313 kB]
Get:4 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [4644 B]
Get:5 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [132 kB]
Get:6 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [333 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
Get:8 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
Get:10 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
Get:11 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
Get:12 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1792 kB]
Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [264 kB]
Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [354 kB]
Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [641 kB]
Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [7791 B]
Get:17 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [5814 B]
Fetched 22.3 MB in 4s (5062 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done 3 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@855388c6f960:/# apt install dotnet6
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
aspnetcore-runtime-6.0 aspnetcore-targeting-pack-6.0 dotnet-apphost-pack-6.0 dotnet-host dotnet-hostfxr-6.0 dotnet-runtime-6.0 dotnet-sdk-6.0 dotnet-targeting-pack-6.0
dotnet-templates-6.0 libicu70 liblttng-ust-common1 liblttng-ust-ctl5 liblttng-ust1 libnuma1 libunwind-13 libunwind8 netstandard-targeting-pack-2.1
The following NEW packages will be installed:
aspnetcore-runtime-6.0 aspnetcore-targeting-pack-6.0 dotnet-apphost-pack-6.0 dotnet-host dotnet-hostfxr-6.0 dotnet-runtime-6.0 dotnet-sdk-6.0 dotnet-targeting-pack-6.0
dotnet-templates-6.0 dotnet6 libicu70 liblttng-ust-common1 liblttng-ust-ctl5 liblttng-ust1 libnuma1 libunwind-13 libunwind8 netstandard-targeting-pack-2.1
0 upgraded, 18 newly installed, 0 to remove and 3 not upgraded.
Need to get 135 MB of archives.
After this operation, 489 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 libicu70 amd64 70.1-2 [10.6 MB]
Get:2 http://archive.ubuntu.com/ubuntu jammy/main amd64 libnuma1 amd64 2.0.14-3ubuntu2 [22.5 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-host amd64 6.0.108-0ubuntu1~22.04.1 [156 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-hostfxr-6.0 amd64 6.0.108-0ubuntu1~22.04.1 [154 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 libunwind-13 amd64 1:13.0.1-2ubuntu2 [20.8 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy/main amd64 liblttng-ust-common1 amd64 2.13.1-1ubuntu1 [27.1 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy/main amd64 liblttng-ust-ctl5 amd64 2.13.1-1ubuntu1 [77.9 kB]
Get:8 http://archive.ubuntu.com/ubuntu jammy/main amd64 liblttng-ust1 amd64 2.13.1-1ubuntu1 [190 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy/main amd64 libunwind8 amd64 1.3.2-2build2 [54.5 kB]
Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-runtime-6.0 amd64 6.0.108-0ubuntu1~22.04.1 [23.7 MB]
Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 aspnetcore-runtime-6.0 amd64 6.0.108-0ubuntu1~22.04.1 [8090 kB]
Get:12 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 aspnetcore-targeting-pack-6.0 amd64 6.0.108-0ubuntu1~22.04.1 [1445 kB]
Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-apphost-pack-6.0 amd64 6.0.108-0ubuntu1~22.04.1 [3735 kB]
Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-targeting-pack-6.0 amd64 6.0.108-0ubuntu1~22.04.1 [2238 kB]
Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-templates-6.0 amd64 6.0.108-0ubuntu1~22.04.1 [2545 kB]
Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 netstandard-targeting-pack-2.1 amd64 6.0.108-0ubuntu1~22.04.1 [1399 kB]
Get:17 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-sdk-6.0 amd64 6.0.108-0ubuntu1~22.04.1 [80.2 MB]
Get:18 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet6 amd64 6.0.108-0ubuntu1~22.04.1 [20.5 kB]
Fetched 135 MB in 15s (8788 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libicu70:amd64.
(Reading database ... 4395 files and directories currently installed.)
Preparing to unpack .../00-libicu70_70.1-2_amd64.deb ...
Unpacking libicu70:amd64 (70.1-2) ...
Selecting previously unselected package libnuma1:amd64.
Preparing to unpack .../01-libnuma1_2.0.14-3ubuntu2_amd64.deb ...
Unpacking libnuma1:amd64 (2.0.14-3ubuntu2) ... Selecting previously unselected package dotnet-host.
Preparing to unpack .../02-dotnet-host_6.0.108-0ubuntu1~22.04.1_amd64.deb ...
Unpacking dotnet-host (6.0.108-0ubuntu1~22.04.1) ...
Selecting previously unselected package dotnet-hostfxr-6.0.
Preparing to unpack .../03-dotnet-hostfxr-6.0_6.0.108-0ubuntu1~22.04.1_amd64.deb ...
Unpacking dotnet-hostfxr-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Selecting previously unselected package libunwind-13:amd64.
Preparing to unpack .../04-libunwind-13_1%3a13.0.1-2ubuntu2_amd64.deb ...
Unpacking libunwind-13:amd64 (1:13.0.1-2ubuntu2) ...
Selecting previously unselected package liblttng-ust-common1:amd64.
Preparing to unpack .../05-liblttng-ust-common1_2.13.1-1ubuntu1_amd64.deb ...
Unpacking liblttng-ust-common1:amd64 (2.13.1-1ubuntu1) ...
Selecting previously unselected package liblttng-ust-ctl5:amd64.
Preparing to unpack .../06-liblttng-ust-ctl5_2.13.1-1ubuntu1_amd64.deb ...
Unpacking liblttng-ust-ctl5:amd64 (2.13.1-1ubuntu1) ...
Selecting previously unselected package liblttng-ust1:amd64.
Preparing to unpack .../07-liblttng-ust1_2.13.1-1ubuntu1_amd64.deb ...
Unpacking liblttng-ust1:amd64 (2.13.1-1ubuntu1) ...
Selecting previously unselected package libunwind8:amd64.
Preparing to unpack .../08-libunwind8_1.3.2-2build2_amd64.deb ...
Unpacking libunwind8:amd64 (1.3.2-2build2) ...
Selecting previously unselected package dotnet-runtime-6.0.
Preparing to unpack .../09-dotnet-runtime-6.0_6.0.108-0ubuntu1~22.04.1_amd64.deb ...
Unpacking dotnet-runtime-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Selecting previously unselected package aspnetcore-runtime-6.0.
Preparing to unpack .../10-aspnetcore-runtime-6.0_6.0.108-0ubuntu1~22.04.1_amd64.deb ...
Unpacking aspnetcore-runtime-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Selecting previously unselected package aspnetcore-targeting-pack-6.0.
Preparing to unpack .../11-aspnetcore-targeting-pack-6.0_6.0.108-0ubuntu1~22.04.1_amd64.deb ...
Unpacking aspnetcore-targeting-pack-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Selecting previously unselected package dotnet-apphost-pack-6.0.
Preparing to unpack .../12-dotnet-apphost-pack-6.0_6.0.108-0ubuntu1~22.04.1_amd64.deb ...
Unpacking dotnet-apphost-pack-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Selecting previously unselected package dotnet-targeting-pack-6.0.
Preparing to unpack .../13-dotnet-targeting-pack-6.0_6.0.108-0ubuntu1~22.04.1_amd64.deb ...
Unpacking dotnet-targeting-pack-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Selecting previously unselected package dotnet-templates-6.0.
Preparing to unpack .../14-dotnet-templates-6.0_6.0.108-0ubuntu1~22.04.1_amd64.deb ...
Unpacking dotnet-templates-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Selecting previously unselected package netstandard-targeting-pack-2.1.
Preparing to unpack .../15-netstandard-targeting-pack-2.1_6.0.108-0ubuntu1~22.04.1_amd64.deb ...
Unpacking netstandard-targeting-pack-2.1 (6.0.108-0ubuntu1~22.04.1) ...
Selecting previously unselected package dotnet-sdk-6.0.
Preparing to unpack .../16-dotnet-sdk-6.0_6.0.108-0ubuntu1~22.04.1_amd64.deb ...
Unpacking dotnet-sdk-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Selecting previously unselected package dotnet6.
Preparing to unpack .../17-dotnet6_6.0.108-0ubuntu1~22.04.1_amd64.deb ...
Unpacking dotnet6 (6.0.108-0ubuntu1~22.04.1) ...
Setting up dotnet-host (6.0.108-0ubuntu1~22.04.1) ...
update-alternatives: using /usr/lib/dotnet/dotnet6-6.0.108/dotnet to provide /usr/bin/dotnet (dotnet) in auto mode
update-alternatives: warning: skip creation of /usr/share/bash-completion/completions/dotnet because associated file /usr/lib/dotnet/dotnet6-6.0.108/bash-completion/completions/dotnet (of link group dotnet) doesn't exist
Setting up netstandard-targeting-pack-2.1 (6.0.108-0ubuntu1~22.04.1) ...
Setting up liblttng-ust-common1:amd64 (2.13.1-1ubuntu1) ...
Setting up dotnet-targeting-pack-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Setting up libunwind8:amd64 (1.3.2-2build2) ...
Setting up libunwind-13:amd64 (1:13.0.1-2ubuntu2) ...
Setting up aspnetcore-targeting-pack-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Setting up dotnet-hostfxr-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Setting up libnuma1:amd64 (2.0.14-3ubuntu2) ...
Setting up dotnet-templates-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Setting up libicu70:amd64 (70.1-2) ...
Setting up dotnet-apphost-pack-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Setting up liblttng-ust-ctl5:amd64 (2.13.1-1ubuntu1) ...
Setting up liblttng-ust1:amd64 (2.13.1-1ubuntu1) ...
Setting up dotnet-runtime-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Setting up aspnetcore-runtime-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Setting up dotnet-sdk-6.0 (6.0.108-0ubuntu1~22.04.1) ...
Setting up dotnet6 (6.0.108-0ubuntu1~22.04.1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
root@855388c6f960:/# ls
bin boot dev etc home lib lib32 lib64 libx32 media mnt opt proc root run sbin srv sys tmp usr var
root@855388c6f960:/# mkdir Console
root@855388c6f960:/# cd Console/
root@855388c6f960:/Console# dotnet new console
Welcome to .NET 6.0!
---------------------
SDK Version: 6.0.108
----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
The template "Console App" was created successfully.
Processing post-creation actions...
Running 'dotnet restore' on /Console/Console.csproj...
Determining projects to restore...
Restored /Console/Console.csproj (in 70 ms).
Restore succeeded.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment