繁体   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