RPM 忽略冲突

Cob*_*ojo 5 linux unix rpm aix

有没有办法通过保持安装最新版本来忽略 rpm 版本冲突?

例如。我想在 AIX 中安装 gawk。我在一个文件夹中拥有所有必需的 rpm

bash-4.2-11.aix5.1.ppc.rpm
gawk-4.0.2-1.aix5.1.ppc.rpm
gettext-0.10.40-8.aix5.2.ppc.rpm
info-4.13a-2.aix5.1.ppc.rpm
libsigsegv-2.10-1.aix5.2.ppc.rpm
readline-6.2-4.aix5.1.ppc.rpm
Run Code Online (Sandbox Code Playgroud)

我尝试使用 rpm 来安装它们,rpm -ivh *.rpm这样 rpm 就会自动处理安装顺序。

但我得到:

package bash-4.2-11 is already installed
package gettext-0.17-7 (which is newer than gettext-0.10.40-8) is already installed
package info-5.0-1 (which is newer than info-4.13a-2) is already installed
package readline-6.2-4 is already installed
file /opt/freeware/bin/msgcomm from install of gettext-0.10.40-8 conflicts with file from package gettext-0.17-7
file /opt/freeware/bin/msgfmt from install of gettext-0.10.40-8 conflicts with file from package gettext-0.17-7
file /opt/freeware/bin/msgmerge from install of gettext-0.10.40-8 conflicts with file from package gettext-0.17-7
file /opt/freeware/bin/msgunfmt from install of gettext-0.10.40-8 conflicts with file from package gettext-0.17-7
file /opt/freeware/bin/ngettext from install of gettext-0.10.40-8 conflicts with file from package gettext-0.17-7
file /opt/freeware/bin/xgettext from install of gettext-0.10.40-8 conflicts with file from package gettext-0.17-7
file /opt/freeware/lib/libintl.a from install of gettext-0.10.40-8 conflicts with file from package gettext-0.17-7
file /opt/freeware/bin/gettext from install of gettext-0.10.40-8 conflicts with file from package gettext-0.17-7
file /opt/freeware/bin/msgcmp from install of gettext-0.10.40-8 conflicts with file from package gettext-0.17-7
file /opt/freeware/share/locale/locale.alias from install of gettext-0.10.40-8 conflicts with file from package gettext-0.17-7
file /opt/freeware/info/info-stnd.info.gz from install of info-4.13a-2 conflicts with file from package info-5.0-1
file /opt/freeware/info/info.info.gz from install of info-4.13a-2 conflicts with file from package info-5.0-1
file /etc/X11/applnk/Utilities/info.desktop from install of info-4.13a-2 conflicts with file from package info-5.0-1
file /opt/freeware/man/man1/info.1 from install of info-4.13a-2 conflicts with file from package info-5.0-1
file /opt/freeware/man/man1/infokey.1 from install of info-4.13a-2 conflicts with file from package info-5.0-1
file /opt/freeware/man/man1/install-info.1 from install of info-4.13a-2 conflicts with file from package info-5.0-1
file /opt/freeware/man/man5/info.5 from install of info-4.13a-2 conflicts with file from package info-5.0-
Run Code Online (Sandbox Code Playgroud)

那么,有没有办法通过什么都不做来忽略 gettext 和 info 冲突呢?我不想使用武力并用旧版本替换它们。

我知道,如果我尝试手动一一安装 rpm,而不安装 gettext 和 info rpm,则 gawk 的安装将会成功。

我想找到一个不需要我以正确的顺序手动安装 rpm 的解决方案。

编辑: 我有真正的-Uvh问题rpm -Uvh *.rpm是,它不是通过解决与已安装或文件夹中的依赖关系来安装新的 rpm 二进制文件,而是输出:

package gettext-0.17-7 (which is newer than gettext-0.10.40-8) is already installed
package info-5.0-1 (which is newer than info-4.13a-2) is already installed
package readline-6.2-4 is already installed
Run Code Online (Sandbox Code Playgroud)

并且它会停止,而不会继续进行到需要安装的其他 rpm。我相信这不是正常行为,我不知道这是否与 rpm 中的问题有关(我使用的是旧版本 - 版本 3)。

Mic*_*ton 1

由于您要更新现有软件包,而不是专门安装软件包,因此您需要使用 update 选项-U而不是 install 选项-i。这将允许您同时安装和更新软件包。

rpm -Uvh *.rpm
Run Code Online (Sandbox Code Playgroud)