yum--download_only

本文介绍如何使用yum命令仅下载指定的软件包而不进行安装。通过添加特定选项,可以将软件包下载到指定目录。
yum install yum-downloadonly

然后:

yum install salt --downloadonly --downloaddir=/tmp

这样的话就会下载到/tmp这个目录,而不安装

[root@localhost yum.repos.d]# yum -y install docker-ce Last metadata expiration check: 0:00:39 ago on Thu 04 Sep 2025 02:00:06 AM EDT. Error: Problem: package docker-ce-3:26.1.3-1.el8.x86_64 requires containerd.io >= 1.6.24, but none of the providers can be installed - package containerd.io-1.6.24-3.1.el8.x86_64 conflicts with runc provided by runc-1.0.2-1.module_el8.5.0+911+f19012f9.x86_64 - package containerd.io-1.6.24-3.1.el8.x86_64 obsoletes runc provided by runc-1.0.2-1.module_el8.5.0+911+f19012f9.x86_64 - package containerd.io-1.6.25-3.1.el8.x86_64 conflicts with runc provided by runc-1.0.2-1.module_el8.5.0+911+f19012f9.x86_64 - package containerd.io-1.6.25-3.1.el8.x86_64 obsoletes runc provided by runc-1.0.2-1.module_el8.5.0+911+f19012f9.x86_64 - package containerd.io-1.6.26-3.1.el8.x86_64 conflicts with runc provided by runc-1.0.2-1.module_el8.5.0+911+f19012f9.x86_64 - package containerd.io-1.6.26-3.1.el8.x86_64 obsoletes runc provided by runc-1.0.2-1.module_el8.5.0+911+f19012f9.x86_64 - package containerd.io-1.6.27-3.1.el8.x86_64 conflicts with runc provided by runc-1.0.2-1.module_el8.5.0+911+f19012f9.x86_64 - package containerd.io-1.6.27-3.1.el8.x86_64 obsoletes runc provided by runc-1.0.2-1.module_el8.5.0+911+f19012f9.x86_64 - package containerd.io-1.6.28-3.1.el8.x86_64 conflicts with runc provided by runc-1.0.2-1.module_el8.5.0+911+f19012f9.x86_64 - package containerd.io-1.6.28-3.1.el8.x86_64 obsoletes runc provided by runc-1.0.2-1.module_el8.5.0+911+f19012f9.x86_64 - package containerd.io-1.6.28-3.2.el8.x86_64 conflicts with runc provided by runc-1.0.2-1.module_el8.5.0+911+f19012f9.x86_64 - package containerd.io-1.6.28-3.2.el8.x86_64 obsoletes runc provided by runc-1.0.2-1.module_el8.5.0+911+f19012f9.x86_64 - package containerd.io-1.6.31-3.1.el8.x86_64 conflicts with runc provided by runc-1.0.2-1.module_el8.5.0+911+f19012f9.x86_64 - package containerd.io-1.6.31-3.1.el8.x86_64 obsoletes runc provided by runc-1.0.2-1.module_el8.5.0+911+f19012f9.x86_64 - package containerd.io-1.6.32-3.1.el8.x86_64 conflicts with runc provided by runc-1.0.2-1.module_el8.5.0+911+f19012f9.x86_64 - package containerd.io-1.6.32-3.1.el8.x86_64 obsoletes runc provided by runc-1.0.2-1.module_el8.5.0+911+f19012f9.x86_64 - problem with installed package buildah-1.22.3-2.module_el8.5.0+911+f19012f9.x86_64 - package buildah-1.22.3-2.module_el8.5.0+911+f19012f9.x86_64 requires runc >= 1.0.0-26, but none of the providers can be installed - cannot install the best candidate for the job - package runc-1.0.0-56.rc5.dev.git2abd837.module_el8.3.0+569+1bada2e4.x86_64 is filtered out by modular filtering - package runc-1.0.0-66.rc10.module_el8.5.0+1004+c00a74f5.x86_64 is filtered out by modular filtering - package runc-1.0.0-72.rc92.module_el8.5.0+1006+8d0e68a2.x86_64 is filtered out by modular filtering (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
最新发布
09-05
Package pcre-8.42-6.el8.x86_64 is already installed. Error: Problem 1: conflicting requests - nothing provides expat(x86-64) = 2.2.5-4.el8 needed by expat-devel-2.2.5-4.el8.x86_64 Problem 2: conflicting requests - nothing provides freetype = 2.9.1-4.el8_3.1 needed by freetype-devel-2.9.1-4.el8_3.1.x86_64 Problem 3: conflicting requests - nothing provides libffi = 3.1-22.el8 needed by libffi-devel-3.1-22.el8.x86_64 Problem 4: conflicting requests - nothing provides libselinux(x86-64) = 2.9-5.el8 needed by libselinux-devel-2.9-5.el8.x86_64 Problem 5: conflicting requests - nothing provides libverto(x86-64) = 0.3.0-5.el8 needed by libverto-devel-0.3.0-5.el8.x86_64 Problem 6: conflicting requests - nothing provides pcre2(x86-64) = 10.32-2.el8 needed by pcre2-devel-10.32-2.el8.x86_64 Problem 7: conflicting requests - nothing provides xz-libs(x86-64) = 5.2.4-3.el8 needed by xz-devel-5.2.4-3.el8.x86_64 Problem 8: conflicting requests - nothing provides zlib(x86-64) = 1.2.11-17.el8 needed by zlib-devel-1.2.11-17.el8.x86_64 Problem 9: problem with installed package glibc-gconv-extra-2.28-251.el8_10.2.x86_64 - package glibc-gconv-extra-2.28-251.el8_10.2.x86_64 requires glibc(x86-64) = 2.28-251.el8_10.2, but none of the providers can be installed - package glibc-gconv-extra-2.28-251.el8_10.16.x86_64 requires glibc(x86-64) = 2.28-251.el8_10.16, but none of the providers can be installed - cannot install both glibc-2.28-164.el8.x86_64 and glibc-2.28-251.el8_10.2.x86_64 - cannot install both glibc-2.28-164.el8.x86_64 and glibc-2.28-251.el8_10.16.x86_64 - conflicting requests Problem 10: problem with installed package glibc-minimal-langpack-2.28-251.el8_10.2.x86_64 - package glibc-minimal-langpack-2.28-251.el8_10.2.x86_64 requires glibc-common = 2.28-251.el8_10.2, but none of the providers can be installed - package glibc-minimal-langpack-2.28-251.el8_10.16.x86_64 requires glibc-common = 2.28-251.el8_10.16, but none of the providers can be installed - cannot install both glibc-common-2.28-164.el8.x86_64 and glibc-common-2.28-251.el8_10.2.x86_64 - cannot install both glibc-common-2.28-164.el8.x86_64 and glibc-common-2.28-251.el8_10.16.x86_64 - conflicting requests Problem 11: problem with installed package glibc-all-langpacks-2.28-251.el8_10.2.x86_64 - package glibc-all-langpacks-2.28-251.el8_10.16.x86_64 requires glibc-common = 2.28-251.el8_10.16, but none of the providers can be installed - package glibc-all-langpacks-2.28-251.el8_10.2.x86_64 requires glibc = 2.28-251.el8_10.2, but none of the providers can be installed - cannot install both glibc-common-2.28-164.el8.x86_64 and glibc-common-2.28-251.el8_10.16.x86_64 - cannot install both glibc-2.28-164.el8.x86_64 and glibc-2.28-251.el8_10.2.x86_64 - package glibc-langpack-en-2.28-164.el8.x86_64 requires glibc-common = 2.28-164.el8, but none of the providers can be installed - package glibc-devel-2.28-164.el8.x86_64 requires glibc = 2.28-164.el8, but none of the providers can be installed - conflicting requests Problem 12: package krb5-devel-1.18.2-14.el8.x86_64 requires libselinux-devel, but none of the providers can be installed - package libselinux-devel-2.9-10.el8_10.x86_64 requires pkgconfig(libpcre2-8), but none of the providers can be installed - package libselinux-devel-2.9-10.el8_10.i686 requires pkgconfig(libpcre2-8), but none of the providers can be installed - package libselinux-devel-2.9-8.el8.x86_64 requires pkgconfig(libpcre2-8), but none of the providers can be installed - pcre2-devel-10.32-3.el8_6.i686 has inferior architecture - package pcre2-devel-10.32-3.el8_6.x86_64 requires pcre2-utf16(x86-64) = 10.32-3.el8_6, but none of the providers can be installed - cannot install both pcre2-utf16-10.32-2.el8.x86_64 and pcre2-utf16-10.32-3.el8_6.x86_64 - conflicting requests - nothing provides libselinux(x86-64) = 2.9-5.el8 needed by libselinux-devel-2.9-5.el8.x86_64 - nothing provides pcre2(x86-64) = 10.32-2.el8 needed by pcre2-devel-10.32-2.el8.x86_64 Problem 13: package krb5-devel-1.18.2-14.el8.x86_64 requires libselinux-devel, but none of the providers can be installed - package libselinux-devel-2.9-10.el8_10.x86_64 requires pkgconfig(libpcre2-8), but none of the providers can be installed - package libselinux-devel-2.9-10.el8_10.i686 requires pkgconfig(libpcre2-8), but none of the providers can be installed - package libselinux-devel-2.9-8.el8.x86_64 requires pkgconfig(libpcre2-8), but none of the providers can be installed - package pcre2-devel-10.32-3.el8_6.i686 requires libpcre2-32.so.0, but none of the providers can be installed - package pcre2-devel-10.32-3.el8_6.i686 requires pcre2-utf32(x86-32) = 10.32-3.el8_6, but none of the providers can be installed - package openssl-devel-1:1.1.1k-5.el8_5.x86_64 requires krb5-devel(x86-64), but none of the providers can be installed - pcre2-utf32-10.32-3.el8_6.i686 has inferior architecture - package pcre2-devel-10.32-3.el8_6.x86_64 requires pcre2-utf32(x86-64) = 10.32-3.el8_6, but none of the providers can be installed - package krb5-devel-1.18.2-29.el8_10.x86_64 requires krb5-libs(x86-64) = 1.18.2-29.el8_10, but none of the providers can be installed - package krb5-devel-1.18.2-32.el8_10.x86_64 requires krb5-libs(x86-64) = 1.18.2-32.el8_10, but none of the providers can be installed - cannot install both pcre2-utf32-10.32-2.el8.x86_64 and pcre2-utf32-10.32-3.el8_6.x86_64 - cannot install both krb5-libs-1.18.2-14.el8.x86_64 and krb5-libs-1.18.2-29.el8_10.x86_64 - cannot install both krb5-libs-1.18.2-14.el8.x86_64 and krb5-libs-1.18.2-32.el8_10.x86_64 - conflicting requests - nothing provides libselinux(x86-64) = 2.9-5.el8 needed by libselinux-devel-2.9-5.el8.x86_64 - nothing provides pcre2(x86-64) = 10.32-2.el8 needed by pcre2-devel-10.32-2.el8.x86_64 (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
06-07
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值