Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 redhat 5.1 版本。我需要从 Internet 自动下载的 rpm,类似于 centos 和 ubuntu。看到我有一个旧的 gcc。编译器我想用这个 yum 实用程序下载与我的 rhel 5.1 兼容的最新版本。请建议 sunil
如果您升级您正在使用的 yum 版本(RHEL-5.2 中的版本可能就足够了,但 5.4+ 会更好)您可以运行:
yum --showduplicates list gcc
...然后安装/升级/降级到特定版本。如果您想要的版本在 RHEL 中不可用,那么我会严重警告不要使用它......但是即使那样您也应该能够手动下载 rpm 并使用“yum downgrade gcc-blah.rpm”(或安装/etc) 移动到它。