linux - redhat linux如何安装特定版本的net Core

标签 linux yum rhel

我正在尝试在 Redhat 上安装特定版本的 netcore,但无论我使用哪种策略,我都会获得最新版本的软件包。

例如,如果我运行:

yumdownloader --resolve 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.9MB 00:00:00
(5/11):rh-dotnet20-dotnet-runtime-2.0-2.0.6-1.el7.x86_64.rpm | 20MB 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.1MB 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 | 34MB 00:00:03

如果我运行是一样的:

yumdownloader --resolve 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 | 20MB 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.1MB 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 | 34MB 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,您还需要明确指定该版本。

关于linux - redhat linux如何安装特定版本的net Core,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50814323/

相关文章:

python - 使用 yum 安装时选择要使用的 python 版本

linux - 输出到文件时如何设置输出缓冲区宽度/列?

linux - 在 grub2.cfg 中修改内核引导选项的正确方法是什么?

python - cp : cannot stat . ..没有这样的文件或目录

linux - blocks 和 libdispatch 在 linux 上可用吗?

linux - 使用 grep,将两行视为一行?

docker - Nexus 3 支持容器镜像签名吗?

python - 在 VS Code 中为 python 脚本运行终端?

deployment - 使用yum组织和部署相关组件子系统的发布的方法

git - 为 RHEL 6 安装/构建 git-svn