{"id":9239,"date":"2018-07-31T21:01:40","date_gmt":"2018-07-31T13:01:40","guid":{"rendered":"http:\/\/bohu.net\/blog\/?p=9239"},"modified":"2019-09-26T16:39:18","modified_gmt":"2019-09-26T08:39:18","slug":"centos-install-net-core","status":"publish","type":"post","link":"https:\/\/as32.net\/blog\/9239\/","title":{"rendered":"CentOS Install .NET Core"},"content":{"rendered":"\n<h1 class=\"text-center text-md-left x-hidden-focus wp-block-heading\">.NET Tutorial &#8211; Hello World in 10 minutes<\/h1>\n\n\n\n<pre class=\"wp-block-preformatted\"><a href=\"https:\/\/www.microsoft.com\/net\/learn\/get-started-with-dotnet-tutorial\">https:\/\/www.microsoft.com\/net\/learn\/get-started-with-dotnet-tutorial<\/a><\/pre>\n\n\n\n<h3 class=\"h5 x-hidden-focus wp-block-heading\">Add the dotnet product feed<\/h3>\n\n\n\n<p class=\"x-hidden-focus\">Before installing .NET, you&#8217;ll need to register the Microsoft key, register the product repository, and install required dependencies. This only needs to be done once per machine.<\/p>\n\n\n\n<p>Open a command prompt and run the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted x-hidden-focus\"><span class=\"prompt-unix x-hidden-focus\">sudo rpm -Uvh https:\/\/packages.microsoft.com\/config\/rhel\/7\/packages-microsoft-prod.rpm<\/span><\/pre>\n\n\n\n<h1 class=\"text-center x-hidden-focus wp-block-heading\">Install .NET Core SDK on Linux CentOS \/ Oracle<\/h1>\n\n\n\n<p><a href=\"https:\/\/www.microsoft.com\/net\/download\/linux-package-manager\/centos\/sdk-current\">https:\/\/www.microsoft.com\/net\/download\/linux-package-manager\/centos\/sdk-current<\/a><\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:bash\">sudo yum update\nsudo yum install dotnet-sdk-2.1<\/pre>\n\n\n\n<h1 class=\"text-center x-hidden-focus wp-block-heading\">Install .NET Core Runtime on Linux CentOS \/ Oracle<\/h1>\n\n\n\n<p><a href=\"https:\/\/www.microsoft.com\/net\/download\/linux-package-manager\/centos\/runtime-current\">https:\/\/www.microsoft.com\/net\/download\/linux-package-manager\/centos\/runtime-current<\/a><\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:bash\">sudo yum update\nsudo yum install aspnetcore-runtime-2.1<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>.NET Tutorial &#8211; Hello World in 10 minutes https:\/ &hellip; <a href=\"https:\/\/as32.net\/blog\/9239\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cCentOS Install .NET Core\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[641,100,650],"class_list":["post-9239","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-net-core","tag-centos","tag-dotnet"],"_links":{"self":[{"href":"https:\/\/as32.net\/blog\/wp-json\/wp\/v2\/posts\/9239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/as32.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/as32.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/as32.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/as32.net\/blog\/wp-json\/wp\/v2\/comments?post=9239"}],"version-history":[{"count":0,"href":"https:\/\/as32.net\/blog\/wp-json\/wp\/v2\/posts\/9239\/revisions"}],"wp:attachment":[{"href":"https:\/\/as32.net\/blog\/wp-json\/wp\/v2\/media?parent=9239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/as32.net\/blog\/wp-json\/wp\/v2\/categories?post=9239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/as32.net\/blog\/wp-json\/wp\/v2\/tags?post=9239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}