如果我使用 ius 社区项目中的 rpm,yum 会崩溃吗?

发布于 2024-09-27 07:13:49 字数 360 浏览 2 评论 0原文

我遵循了本教程: http://blog.boxedice.com /2010/01/19/updating-python-on-rhelcentos/ 因为我想在 CentOS 5.5 机器上安装 python2.6 而不破坏 yum。

我成功安装了python2.6。我的问题是,完成上述命令后,下次我尝试安装软件包时,如果软件包发生冲突,它会自动使用 ius 中的软件包吗?如果是,它会破坏其他东西吗?

我只是担心下次有人运行 yum 时,它会从 ius 下载冲突的包并崩溃。

I followed this tutorial: http://blog.boxedice.com/2010/01/19/updating-python-on-rhelcentos/ because I wanted to install python2.6 on a CentOS 5.5 machine without breaking yum.

And i was successfully able install python2.6. My question is that after completing the above commands the next time I try installing packages will it automatically use the one from ius if the packages is conflicting? And if yes will it break something else?

I'm just worried that the next time someone runs yum it'll download a conflicting package from ius and break.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

海风掠过北极光 2024-10-04 07:13:49

我是 IUS 社区项目的主要维护者。这个问题最好通过 http://launchpad.net/ius

无论如何,我非常乐意为您澄清。 IUS 提供的软件包与 RHEL 中的软件包严格冲突...这意味着如果安装了原始软件包,并且您尝试从 IUS 安装替代软件包,那么 Yum 将因冲突错误而退出。然而,IUS 也严格废弃 RHEL 中的任何内容...这意味着,除非您明确删除原始软件包,并将其替换为 IUS 中的内容,否则不应从 IUS 自动安装任何内容。

使用新的 python 运行时从 RHEL 存储库安装 python 模块时要小心

对于 python26 软件包来说,这实际上不需要担心,因为它是并行安装(并排)软件包,并且不会替换系统 python 或库(它是/曾经是 IUS 中唯一没有替换系统版本的软件包)。

另一方面,python26 已从 IUS 停产并移至 EPEL,因此您安装的 python26 软件包可能来自 EPEL。 IUS 也依赖 EPEL 并为之做出贡献。

如果您担心由于订阅第三方存储库而导致 Yum 损坏,您可能希望阅读安全存储库计划,其中由 IUS 社区项目编写并遵守

I am the primary maintainer of the IUS Community Project. This question would be better asked via the 'answers' section of our project page on http://launchpad.net/ius.

Regardless, I am more than happy to clarify for you. IUS provides packages that strictly conflict with packages in RHEL... meaning if the original package is installed, and you attempt to install a replacement from IUS then Yum will bail with a conflict error. However, IUS also strictly does not obsolete anything in RHEL... meaning, nothing should automatically install from IUS unless you explicitly remove the original package, and replace it with something from IUS.

Be careful about installing python modules from RHEL repos with the new python runtime

This is actually not something to be concerned with for the python26 package as it is a parallel install (side-by-side) package and does not replace the system python or libraries (it is/was the only package in IUS that did not replace the system version).

On another note, python26 was EOL'd from IUS and moved to EPEL therefore the python26 package you installed is likely from EPEL. IUS relies on, and contributes to EPEL as well.

If you are concerned with Yum breakage due to subscription to third party repos, you may wish to read the Safe Repo Initiative which was written by and adhered to by the IUS Community Project

殊姿 2024-10-04 07:13:49

看起来您刚刚安装了来自第三方的 .rpm 软件包。一切都应该好起来。使用新的 python 运行时从 RHEL 存储库安装 python 模块时要小心(即注意预期在 python 2.5 上运行的第三方模块的错误和损坏)。

由于 ius python 包的版本比 RHEL 存储库中的版本高,因此它不会因更新等而自动降级。

It looks like you just installed a .rpm package from some third party. Everything should be fine. Be careful about installing python modules from RHEL repos with the new python runtime (ie watch out for bugs and breakage from third party modules that expected to run on python 2.5).

Since the ius python package is a higher version than the one from RHEL's repos, it will not be downgraded automatically by updates etc.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文