簡體   English   中英

如何在Redhat Linux上安裝特定版本的netCore

[英]How Do I install specific version of netCore on redhat linux

我正在嘗試在Redhat上安裝特定版本的netcore,但是無論使用哪種策略,我都可以獲取該軟件包的最新版本。

例如,如果我運行:

yumdownloader-解決rh-dotnet20-dotnet-0: 2.0.0-4 .el7.x86_64 --nogpgcheck

它將下載:

(1/11):rh-dotnet20-dotnet-2.0.0-4.el7.x86_64.rpm | 4.3 kB 00:00:00
(2/11):libunwind-1.2-2.el7.x86_64.rpm | 57 kB 00:00:00
(3/11):rh-dotnet20-dotnet-host-2.0.6-1.el7.x86_64.rpm | 172 kB 00:00:00
(4/11):libicu-50.1.2-15.el7.x86_64.rpm | 6.9 MB 00:00:00
(5/11):rh-dotnet20-dotnet-runtime-2.0-2.0.6-1.el7.x86_64.rpm | 20 MB 00:00:01
(6/11):rh-dotnet20-libcurl-7.47.1-1.3.el7.x86_64.rpm | 248 kB 00:00:00
(7/11):rh-dotnet20-lttng-ust-2.8.1-3.el7.x86_64.rpm | 233 kB 00:00:00
(8/11):rh-dotnet20-runtime-2.0-6.el7.x86_64.rpm | 1.1 MB 00:00:00
(9/11):rh-dotnet20-userspace-rcu-0.9.2-3.el7.x86_64.rpm | 89 kB 00:00:00
(10/11):scl-utils-20130529-18.el7_4.x86_64.rpm | 24 kB 00:00:00
(11/11):rh-dotnet20-dotnet-sdk-2.0-2.0.3-4.el7.x86_64.rpm | 34 MB 00:00:03

如果我運行,那是一樣的:

yumdownloader-解決rh-dotnet20-dotnet-0: 2.0.6-1 .el7.x86_64 --nogpgcheck

(1/11):rh-dotnet20-dotnet-2.0.6-1.el7.x86_64.rpm | 5.1 kB 00:00:00
(2/11):rh-dotnet20-dotnet-host-2.0.6-1.el7.x86_64.rpm | 172 kB 00:00:00
(3/11):libunwind-1.2-2.el7.x86_64.rpm | 57 kB 00:00:00
(4/11):libicu-50.1.2-15.el7.x86_64.rpm | 6.9 MB 00:00:01
(5/11):rh-dotnet20-dotnet-runtime-2.0-2.0.6-1.el7.x86_64.rpm | 20 MB 00:00:01
(6/11):rh-dotnet20-libcurl-7.47.1-1.3.el7.x86_64.rpm | 248 kB 00:00:00
(7/11):rh-dotnet20-lttng-ust-2.8.1-3.el7.x86_64.rpm | 233 kB 00:00:00
(8/11):rh-dotnet20-runtime-2.0-6.el7.x86_64.rpm | 1.1 MB 00:00:00
(9/11):rh-dotnet20-userspace-rcu-0.9.2-3.el7.x86_64.rpm | 89 kB 00:00:00
(10/11):rh-dotnet20-dotnet-sdk-2.0-2.0.3-4.el7.x86_64.rpm | 34 MB 00:00:01
(11/11):scl-utils-20130529-18.el7_4.x86_64.rpm | 24 kB 00:00:00

有沒有辦法強迫YUM安裝我需要的特定版本? 謝謝!

這兩個命令的效果不同。 一項建議下載rh-dotnet20-dotnet-2.0.0-4.el7.x86_64.rpm ,另一項下載rh-dotnet20-dotnet-2.0.6-1.el7.x86_64

但是,指定的版本不會擴展到自動安裝的依賴項。 因此,如果要在2.0.0-4.el7版本中使用rh-dotnet20-dotnet-host ,則還需要明確指定該版本。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM