不幸的是,我使用的软件 (Alfresco) 需要安装 openoffice,而不是 libreoffice。如果我尝试将其配置为使用 libreoffice,我会在启动期间收到错误消息。如果我尝试安装任何 openoffice 软件包:
yum install openoffice*
Run Code Online (Sandbox Code Playgroud)
我收到类似于以下所有软件包的错误:
Package openoffice.org-langpack-bg_BG is obsoleted by libreoffice-langpack-bg, trying to install 1:libreoffice-langpack-bg-3.4.5.2-16.el6.x86_64 instead
Run Code Online (Sandbox Code Playgroud)
然后它继续尝试下载 libreoffice。我没有看到man yum
有关安装过时软件包的任何内容。有什么方法可以通过 yum 安装过时的软件包而不是较新的软件包吗?
Ben*_*ebe 12
我发现,在安装时openoffice
,添加exclude=libreoffice*
到您的/etc/yum.conf
帮助中sudo yum update
,我相信它也会帮助您解决问题。它告诉yum
忽略libreoffice*
包,因此yum
甚至不知道有一个过时的包openoffice
。
sudo yum --setopt=obsoletes=0 install openoffice*
Run Code Online (Sandbox Code Playgroud)
或者你可以把obsoletes=0
到/etc/yum.conf
两种方式都对我有用Oracle Linux 6.7
。