我把一个RPM推到了一个远程回购系统中,但是yum list还没有显示软件包。
我通过访问远程网站http:repo验证了上面的内容。
当我做yum update时,它说没有更新的包都是最新的。
我如何告诉yum从遥控器中提取一个新的列表?
发布于 2015-09-04 00:43:17
默认情况下,yum为其存储库缓存元数据(默认时间为90分钟,但可以更改)。
如果删除缓存的元数据,那么yum将在下一次运行时再次获取它。
yum clean metadata发布于 2015-09-04 00:45:21
通常回购元数据是由createrepo(8)更新的。远程终端可能还没有运行,并且正在提供过时的元数据。
但是无论如何,要告诉yum更新本地元数据,请执行yum makecache或yum makecache fast:
makecache
Is used to download and make usable all the metadata for the
currently enabled yum repos. If the argument "fast" is passed,
then we just try to make sure the repos. are current (much like
"yum clean expire-cache").https://serverfault.com/questions/718986
复制相似问题