是否有办法通过安装最新版本来忽略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我试着用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-那么,有没有办法通过不做任何事情来忽略gettext和信息冲突呢?我不想使用武力,用旧版本取代它们。
我知道,如果我尝试手动安装rpms,而不安装gettext和info rpms,gawk的安装就会成功。
我想找到一个解决方案,不需要我手动安装rpms的正确顺序。
编辑:我有真正的-Uvh,rpm -Uvh *.rpm的问题是,它不是通过解决新的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并且它停止,而没有进展到其他需要安装的rpm。我相信这不是一个正常的行为,我不知道这是否与rpm中的问题有关(我使用的是旧版本-版本3)。
发布于 2013-07-12 17:12:20
所以,
我在这里张贴我的部分答案,因为我认为我的主要问题可能有点误导。
rpm -Uvh *.rpm是走的路。它更新已用文件夹中的包的新版本安装的包,并安装尚未安装在系统中的新的rpms。
但!当您尝试使用rpm -Uvh *.rpm安装rpms时,如果文件夹中的包与已经安装的包相同或更旧,则不会继续执行。该命令只输出已经安装的包,并停止在那里,而不继续安装其他rpm。
我认为这是我使用的旧的rpm (版本3)的一种错误行为。我不知道这是否被认为是正常的,它是否也发生在最新版本的rpm。也许你可以提供更多关于这方面的信息。
发布于 2013-07-11 17:49:16
由于您正在更新现有的软件包,而不是只安装软件包,所以需要使用update选项-U而不是InstallOptions-i。这将允许您同时安装和更新软件包。
rpm -Uvh *.rpm发布于 2013-07-11 17:59:50
您没有指定,但看起来您使用的是迈克尔·佩兹尔的RPM。
如果是这样的话,请按照常见问题中的说明:
gettext-0.17若要避免在使用gettext-0.10rpm -Uvh安装时用新的包替换现有的包。https://serverfault.com/questions/522525
复制相似问题