[centos][yum] centos升级到特定版本
<p>我们已知,yum upgrade命令可以将整个系统升级到最新版本。</p><p>但是很多时候,我们需要更新到指定版本,比如,当前最新的CentOS版本是7.6.1810</p>
<p>但是我需要更新到7.4,可以如下这样做:</p>
<p> </p>
<p><strong>1. CentOS的repo是不维护历史版本的。所有历史版本都在这里,</strong></p>
<p>http://vault.centos.org/</p>
<p>在OS里,有这样的一个repo, /etc/yum.repos.d/CentOS-Vault.repo</p>
<p>里边是,当前版本之前的历史版本。所以里边没有7.4 。</p>
<p> </p>
<p><strong>2. 更新centos-release包,拿到7,4的vault</strong></p>
<div class="cnblogs_code">
<pre>yum install centos-release</pre>
</div>
<p> </p>
<p><strong>3 查看所有可用的repo</strong></p>
<div class="cnblogs_code">
<pre>yum repolist all</pre>
</div>
<p>详见:</p>
<div class="cnblogs_code"><img id="code_img_closed_3db3560b-80e9-4b27-83e6-6873018e6dca" class="code_img_closed lazyload" alt="" data-src="http://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif"><img id="code_img_opened_3db3560b-80e9-4b27-83e6-6873018e6dca" class="code_img_opened lazyload" style="display: none" alt="" data-src="http://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif">
<div id="cnblogs_code_open_3db3560b-80e9-4b27-83e6-6873018e6dca" class="cnblogs_code_hide">
<pre><span style="color: rgba(0, 0, 0, 1)">repo id repo name status
C7.</span><span style="color: rgba(128, 0, 128, 1)">0.1406</span>-<span style="color: rgba(0, 0, 255, 1)">base</span>/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.0</span>.<span style="color: rgba(128, 0, 128, 1)">1406</span> -<span style="color: rgba(0, 0, 0, 1)"> Base disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">0.1406</span>-centosplus/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.0</span>.<span style="color: rgba(128, 0, 128, 1)">1406</span> -<span style="color: rgba(0, 0, 0, 1)"> CentOSPlus disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">0.1406</span>-extras/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.0</span>.<span style="color: rgba(128, 0, 128, 1)">1406</span> -<span style="color: rgba(0, 0, 0, 1)"> Extras disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">0.1406</span>-fasttrack/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.0</span>.<span style="color: rgba(128, 0, 128, 1)">1406</span> -<span style="color: rgba(0, 0, 0, 1)"> Fasttrack disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">0.1406</span>-updates/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.0</span>.<span style="color: rgba(128, 0, 128, 1)">1406</span> -<span style="color: rgba(0, 0, 0, 1)"> Updates disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">1.1503</span>-<span style="color: rgba(0, 0, 255, 1)">base</span>/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.1</span>.<span style="color: rgba(128, 0, 128, 1)">1503</span> -<span style="color: rgba(0, 0, 0, 1)"> Base disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">1.1503</span>-centosplus/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.1</span>.<span style="color: rgba(128, 0, 128, 1)">1503</span> -<span style="color: rgba(0, 0, 0, 1)"> CentOSPlus disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">1.1503</span>-extras/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.1</span>.<span style="color: rgba(128, 0, 128, 1)">1503</span> -<span style="color: rgba(0, 0, 0, 1)"> Extras disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">1.1503</span>-fasttrack/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.1</span>.<span style="color: rgba(128, 0, 128, 1)">1503</span> -<span style="color: rgba(0, 0, 0, 1)"> Fasttrack disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">1.1503</span>-updates/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.1</span>.<span style="color: rgba(128, 0, 128, 1)">1503</span> -<span style="color: rgba(0, 0, 0, 1)"> Updates disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">2.1511</span>-<span style="color: rgba(0, 0, 255, 1)">base</span>/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.2</span>.<span style="color: rgba(128, 0, 128, 1)">1511</span> -<span style="color: rgba(0, 0, 0, 1)"> Base disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">2.1511</span>-centosplus/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.2</span>.<span style="color: rgba(128, 0, 128, 1)">1511</span> -<span style="color: rgba(0, 0, 0, 1)"> CentOSPlus disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">2.1511</span>-extras/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.2</span>.<span style="color: rgba(128, 0, 128, 1)">1511</span> -<span style="color: rgba(0, 0, 0, 1)"> Extras disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">2.1511</span>-fasttrack/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.2</span>.<span style="color: rgba(128, 0, 128, 1)">1511</span> -<span style="color: rgba(0, 0, 0, 1)"> Fasttrack disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">2.1511</span>-updates/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.2</span>.<span style="color: rgba(128, 0, 128, 1)">1511</span> -<span style="color: rgba(0, 0, 0, 1)"> Updates disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">3.1611</span>-<span style="color: rgba(0, 0, 255, 1)">base</span>/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.3</span>.<span style="color: rgba(128, 0, 128, 1)">1611</span> -<span style="color: rgba(0, 0, 0, 1)"> Base disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">3.1611</span>-centosplus/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.3</span>.<span style="color: rgba(128, 0, 128, 1)">1611</span> -<span style="color: rgba(0, 0, 0, 1)"> CentOSPlus disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">3.1611</span>-extras/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.3</span>.<span style="color: rgba(128, 0, 128, 1)">1611</span> -<span style="color: rgba(0, 0, 0, 1)"> Extras disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">3.1611</span>-fasttrack/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.3</span>.<span style="color: rgba(128, 0, 128, 1)">1611</span> -<span style="color: rgba(0, 0, 0, 1)"> Fasttrack disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">3.1611</span>-updates/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.3</span>.<span style="color: rgba(128, 0, 128, 1)">1611</span> -<span style="color: rgba(0, 0, 0, 1)"> Updates disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">4.1708</span>-<span style="color: rgba(0, 0, 255, 1)">base</span>/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.4</span>.<span style="color: rgba(128, 0, 128, 1)">1708</span> -<span style="color: rgba(0, 0, 0, 1)"> Base disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">4.1708</span>-centosplus/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.4</span>.<span style="color: rgba(128, 0, 128, 1)">1708</span> -<span style="color: rgba(0, 0, 0, 1)"> CentOSPlus disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">4.1708</span>-extras/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.4</span>.<span style="color: rgba(128, 0, 128, 1)">1708</span> -<span style="color: rgba(0, 0, 0, 1)"> Extras disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">4.1708</span>-fasttrack/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.4</span>.<span style="color: rgba(128, 0, 128, 1)">1708</span> -<span style="color: rgba(0, 0, 0, 1)"> Fasttrack disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">4.1708</span>-updates/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.4</span>.<span style="color: rgba(128, 0, 128, 1)">1708</span> -<span style="color: rgba(0, 0, 0, 1)"> Updates disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">5.1804</span>-<span style="color: rgba(0, 0, 255, 1)">base</span>/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.5</span>.<span style="color: rgba(128, 0, 128, 1)">1804</span> -<span style="color: rgba(0, 0, 0, 1)"> Base disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">5.1804</span>-centosplus/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.5</span>.<span style="color: rgba(128, 0, 128, 1)">1804</span> -<span style="color: rgba(0, 0, 0, 1)"> CentOSPlus disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">5.1804</span>-extras/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.5</span>.<span style="color: rgba(128, 0, 128, 1)">1804</span> -<span style="color: rgba(0, 0, 0, 1)"> Extras disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">5.1804</span>-fasttrack/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.5</span>.<span style="color: rgba(128, 0, 128, 1)">1804</span> -<span style="color: rgba(0, 0, 0, 1)"> Fasttrack disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">5.1804</span>-updates/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.5</span>.<span style="color: rgba(128, 0, 128, 1)">1804</span> -<span style="color: rgba(0, 0, 0, 1)"> Updates disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">6.1810</span>-<span style="color: rgba(0, 0, 255, 1)">base</span>/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.6</span>.<span style="color: rgba(128, 0, 128, 1)">1810</span> -<span style="color: rgba(0, 0, 0, 1)"> Base disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">6.1810</span>-centosplus/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.6</span>.<span style="color: rgba(128, 0, 128, 1)">1810</span> -<span style="color: rgba(0, 0, 0, 1)"> CentOSPlus disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">6.1810</span>-extras/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.6</span>.<span style="color: rgba(128, 0, 128, 1)">1810</span> -<span style="color: rgba(0, 0, 0, 1)"> Extras disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">6.1810</span>-fasttrack/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.6</span>.<span style="color: rgba(128, 0, 128, 1)">1810</span> -<span style="color: rgba(0, 0, 0, 1)"> Fasttrack disabled
C7.</span><span style="color: rgba(128, 0, 128, 1)">6.1810</span>-updates/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7.6</span>.<span style="color: rgba(128, 0, 128, 1)">1810</span> -<span style="color: rgba(0, 0, 0, 1)"> Updates disabled
</span><span style="color: rgba(0, 0, 255, 1)">base</span>/<span style="color: rgba(128, 0, 128, 1)">7</span>/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7</span> - Base enabled: <span style="color: rgba(128, 0, 128, 1)">10</span>,<span style="color: rgba(128, 0, 128, 1)">097</span>
<span style="color: rgba(0, 0, 255, 1)">base</span>-debuginfo/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7</span> - Debuginfo enabled:<span style="color: rgba(128, 0, 128, 1)">7</span>,<span style="color: rgba(128, 0, 128, 1)">293</span>
<span style="color: rgba(0, 0, 255, 1)">base</span>-source/<span style="color: rgba(128, 0, 128, 1)">7</span> CentOS-<span style="color: rgba(128, 0, 128, 1)">7</span> - Base Sources enabled: <span style="color: rgba(128, 0, 128, 1)">0</span>
!c7-media CentOS-<span style="color: rgba(128, 0, 128, 1)">7</span> -<span style="color: rgba(0, 0, 0, 1)"> Media disabled
centosplus</span>/<span style="color: rgba(128, 0, 128, 1)">7</span>/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7</span> -<span style="color: rgba(0, 0, 0, 1)"> Plus disabled
centosplus</span>-source/<span style="color: rgba(128, 0, 128, 1)">7</span> CentOS-<span style="color: rgba(128, 0, 128, 1)">7</span> - Plus Sources enabled: <span style="color: rgba(128, 0, 128, 1)">0</span><span style="color: rgba(0, 0, 0, 1)">
cr</span>/<span style="color: rgba(128, 0, 128, 1)">7</span>/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7</span> -<span style="color: rgba(0, 0, 0, 1)"> cr disabled
epel</span>/x86_64 Extra Packages <span style="color: rgba(0, 0, 255, 1)">for</span> Enterprise Linux <span style="color: rgba(128, 0, 128, 1)">7</span> - x86_64 enabled: <span style="color: rgba(128, 0, 128, 1)">13</span>,<span style="color: rgba(128, 0, 128, 1)">485</span><span style="color: rgba(0, 0, 0, 1)">
epel</span>-debuginfo/x86_64 Extra Packages <span style="color: rgba(0, 0, 255, 1)">for</span> Enterprise Linux <span style="color: rgba(128, 0, 128, 1)">7</span> - x86_64 -<span style="color: rgba(0, 0, 0, 1)"> Debug disabled
</span>!epel-source/x86_64 Extra Packages <span style="color: rgba(0, 0, 255, 1)">for</span> Enterprise Linux <span style="color: rgba(128, 0, 128, 1)">7</span> - x86_64 -<span style="color: rgba(0, 0, 0, 1)"> Source disabled
epel</span>-testing/x86_64 Extra Packages <span style="color: rgba(0, 0, 255, 1)">for</span> Enterprise Linux <span style="color: rgba(128, 0, 128, 1)">7</span> - Testing -<span style="color: rgba(0, 0, 0, 1)"> x86_64 disabled
epel</span>-testing-debuginfo/x86_64 Extra Packages <span style="color: rgba(0, 0, 255, 1)">for</span> Enterprise Linux <span style="color: rgba(128, 0, 128, 1)">7</span> - Testing - x86_64 -<span style="color: rgba(0, 0, 0, 1)"> Debug disabled
epel</span>-testing-source/x86_64 Extra Packages <span style="color: rgba(0, 0, 255, 1)">for</span> Enterprise Linux <span style="color: rgba(128, 0, 128, 1)">7</span> - Testing - x86_64 -<span style="color: rgba(0, 0, 0, 1)"> Source disabled
extras</span>/<span style="color: rgba(128, 0, 128, 1)">7</span>/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7</span> - Extras enabled: <span style="color: rgba(128, 0, 128, 1)">305</span><span style="color: rgba(0, 0, 0, 1)">
extras</span>-source/<span style="color: rgba(128, 0, 128, 1)">7</span> CentOS-<span style="color: rgba(128, 0, 128, 1)">7</span> - Extras Sources enabled: <span style="color: rgba(128, 0, 128, 1)">0</span><span style="color: rgba(0, 0, 0, 1)">
fasttrack</span>/<span style="color: rgba(128, 0, 128, 1)">7</span>/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7</span> -<span style="color: rgba(0, 0, 0, 1)"> fasttrack disabled
updates</span>/<span style="color: rgba(128, 0, 128, 1)">7</span>/x86_64 CentOS-<span style="color: rgba(128, 0, 128, 1)">7</span> - Updates enabled: <span style="color: rgba(128, 0, 128, 1)">953</span><span style="color: rgba(0, 0, 0, 1)">
updates</span>-source/<span style="color: rgba(128, 0, 128, 1)">7</span> CentOS-<span style="color: rgba(128, 0, 128, 1)">7</span> - Updates Sources enabled: <span style="color: rgba(128, 0, 128, 1)">0</span><span style="color: rgba(0, 0, 0, 1)">
repolist: </span><span style="color: rgba(128, 0, 128, 1)">32</span>,<span style="color: rgba(128, 0, 128, 1)">133</span></pre>
</div>
<span class="cnblogs_code_collapse">View Code</span></div>
<p> </p>
<p><strong>4 清空缓存</strong></p>
<div class="cnblogs_code">
<pre><span style="color: rgba(0, 0, 0, 1)">yum clean all
rm </span>-f /<span style="color: rgba(0, 0, 255, 1)">var</span>/cache/yum</pre>
</div>
<p> </p>
<p><strong>5 安装更新</strong></p>
<p>通过对3中repo id的查询,可用使用如下命令,进行全局更新到指定版本</p>
<div class="cnblogs_code">
<pre>yum --disablerepo=<span style="color: rgba(128, 0, 0, 1)">'</span><span style="color: rgba(128, 0, 0, 1)">*</span><span style="color: rgba(128, 0, 0, 1)">'</span> --enablerepo=<span style="color: rgba(128, 0, 0, 1)">'</span><span style="color: rgba(128, 0, 0, 1)">C7.4*</span><span style="color: rgba(128, 0, 0, 1)">'</span> upgrade</pre>
</div>
<p> </p>
<p><strong>6 更新指定软件</strong></p>
<div class="cnblogs_code">
<pre>yum --disablerepo=<span style="color: rgba(128, 0, 0, 1)">'</span><span style="color: rgba(128, 0, 0, 1)">*</span><span style="color: rgba(128, 0, 0, 1)">'</span> --enablerepo=<span style="color: rgba(128, 0, 0, 1)">'</span><span style="color: rgba(128, 0, 0, 1)">C7.4*,epel</span><span style="color: rgba(128, 0, 0, 1)">'</span> update kernel</pre>
</div>
<p> </p>
<p><strong>7 回到正确的release</strong></p>
<p>centos-release是版本标识,我们应该始终保持它指示着正确的信息。</p>
<p>将centos-release包降级回7.4, 之后所有的默认repo便都指向了7.4。</p>
<div class="cnblogs_code">
<pre>yum --disablerepo=<span style="color: rgba(128, 0, 0, 1)">"</span><span style="color: rgba(128, 0, 0, 1)">*</span><span style="color: rgba(128, 0, 0, 1)">"</span> --enablerepo=<span style="color: rgba(128, 0, 0, 1)">"</span><span style="color: rgba(128, 0, 0, 1)">C7.4.1708-*</span><span style="color: rgba(128, 0, 0, 1)">"</span> --enablerepo=<span style="color: rgba(128, 0, 0, 1)">"</span><span style="color: rgba(128, 0, 0, 1)">epel*</span><span style="color: rgba(128, 0, 0, 1)">"</span> downgrade centos-release</pre>
</div>
<p> </p>
<p><strong>8 常见问题</strong></p>
<p>8.1</p>
<div class="cnblogs_code">
<pre><span style="color: rgba(0, 0, 0, 1)">Error:Multilib version problems found. This often means that the root
cause </span><span style="color: rgba(0, 0, 255, 1)">is</span> something <span style="color: rgba(0, 0, 255, 1)">else</span> and multilib version checking <span style="color: rgba(0, 0, 255, 1)">is</span><span style="color: rgba(0, 0, 0, 1)"> just
pointing </span><span style="color: rgba(0, 0, 255, 1)">out</span> that there <span style="color: rgba(0, 0, 255, 1)">is</span><span style="color: rgba(0, 0, 0, 1)"> a problem. Eg.:
</span><span style="color: rgba(128, 0, 128, 1)">1</span>. You have an upgrade <span style="color: rgba(0, 0, 255, 1)">for</span> systemd-libs which <span style="color: rgba(0, 0, 255, 1)">is</span><span style="color: rgba(0, 0, 0, 1)"> missing some
dependency that another package requires. Yum </span><span style="color: rgba(0, 0, 255, 1)">is</span><span style="color: rgba(0, 0, 0, 1)"> trying to
solve </span><span style="color: rgba(0, 0, 255, 1)">this</span> by installing an older version of systemd-<span style="color: rgba(0, 0, 0, 1)">libs of the
different architecture. If you exclude the bad architecture
yum will tell you what the root cause </span><span style="color: rgba(0, 0, 255, 1)">is</span><span style="color: rgba(0, 0, 0, 1)"> (which package
requires what). You can </span><span style="color: rgba(0, 0, 255, 1)">try</span><span style="color: rgba(0, 0, 0, 1)"> redoing the upgrade with
</span>--exclude systemd-libs.otherarch ... <span style="color: rgba(0, 0, 255, 1)">this</span><span style="color: rgba(0, 0, 0, 1)"> should give you an error
message showing the root cause of the problem.
</span><span style="color: rgba(128, 0, 128, 1)">2</span>. You have multiple architectures of systemd-<span style="color: rgba(0, 0, 0, 1)">libs installed, but
yum can only see an upgrade </span><span style="color: rgba(0, 0, 255, 1)">for</span><span style="color: rgba(0, 0, 0, 1)"> one of those architectures.
If you don</span><span style="color: rgba(128, 0, 0, 1)">'</span><span style="color: rgba(128, 0, 0, 1)">t want/need both architectures anymore then you</span>
<span style="color: rgba(0, 0, 0, 1)"> can remove the one with the missing update and everything
will work.
</span><span style="color: rgba(128, 0, 128, 1)">3</span>. You have duplicate versions of systemd-<span style="color: rgba(0, 0, 0, 1)">libs installed already.
You can use </span><span style="color: rgba(128, 0, 0, 1)">"</span><span style="color: rgba(128, 0, 0, 1)">yum check</span><span style="color: rgba(128, 0, 0, 1)">"</span> to <span style="color: rgba(0, 0, 255, 1)">get</span><span style="color: rgba(0, 0, 0, 1)"> yum show these errors.
...you can also use </span>--setopt=protected_multilib=<span style="color: rgba(0, 0, 255, 1)">false</span><span style="color: rgba(0, 0, 0, 1)"> to remove
</span><span style="color: rgba(0, 0, 255, 1)">this</span> checking, however <span style="color: rgba(0, 0, 255, 1)">this</span> <span style="color: rgba(0, 0, 255, 1)">is</span><span style="color: rgba(0, 0, 0, 1)"> almost never the correct thing to
</span><span style="color: rgba(0, 0, 255, 1)">do</span> <span style="color: rgba(0, 0, 255, 1)">as</span> something <span style="color: rgba(0, 0, 255, 1)">else</span> <span style="color: rgba(0, 0, 255, 1)">is</span><span style="color: rgba(0, 0, 0, 1)"> very likely to go wrong (often causing
much more problems).
Protected multilib versions: systemd</span>-libs-<span style="color: rgba(128, 0, 128, 1)">219</span>-<span style="color: rgba(128, 0, 128, 1)">42</span>.el7_4.<span style="color: rgba(128, 0, 128, 1)">10</span>.i686 != systemd-libs-<span style="color: rgba(128, 0, 128, 1)">219</span>-<span style="color: rgba(128, 0, 128, 1)">57</span><span style="color: rgba(0, 0, 0, 1)">.el7.x86_64
Error: Protected multilib versions: elfutils</span>-libs-<span style="color: rgba(128, 0, 128, 1)">0.168</span>-<span style="color: rgba(128, 0, 128, 1)">8</span>.el7.i686 != elfutils-libs-<span style="color: rgba(128, 0, 128, 1)">0.170</span>-<span style="color: rgba(128, 0, 128, 1)">4</span><span style="color: rgba(0, 0, 0, 1)">.el7.x86_64
Error: Protected multilib versions: libselinux</span>-<span style="color: rgba(128, 0, 128, 1)">2.5</span>-<span style="color: rgba(128, 0, 128, 1)">11</span>.el7.i686 != libselinux-<span style="color: rgba(128, 0, 128, 1)">2.5</span>-<span style="color: rgba(128, 0, 128, 1)">14.1</span><span style="color: rgba(0, 0, 0, 1)">.el7.x86_64
Error: Protected multilib versions: elfutils</span>-libelf-<span style="color: rgba(128, 0, 128, 1)">0.168</span>-<span style="color: rgba(128, 0, 128, 1)">8</span>.el7.i686 != elfutils-libelf-<span style="color: rgba(128, 0, 128, 1)">0.170</span>-<span style="color: rgba(128, 0, 128, 1)">4</span><span style="color: rgba(0, 0, 0, 1)">.el7.x86_64
Error: Protected multilib versions: pam</span>-<span style="color: rgba(128, 0, 128, 1)">1.1</span>.<span style="color: rgba(128, 0, 128, 1)">8</span>-<span style="color: rgba(128, 0, 128, 1)">18</span>.el7.i686 != pam-<span style="color: rgba(128, 0, 128, 1)">1.1</span>.<span style="color: rgba(128, 0, 128, 1)">8</span>-<span style="color: rgba(128, 0, 128, 1)">22</span><span style="color: rgba(0, 0, 0, 1)">.el7.x86_64
Error: Protected multilib versions: nss</span>-softokn-freebl-<span style="color: rgba(128, 0, 128, 1)">3.28</span>.<span style="color: rgba(128, 0, 128, 1)">3</span>-<span style="color: rgba(128, 0, 128, 1)">8</span>.el7_4.i686 != nss-softokn-freebl-<span style="color: rgba(128, 0, 128, 1)">3.36</span>.<span style="color: rgba(128, 0, 128, 1)">0</span>-<span style="color: rgba(128, 0, 128, 1)">5</span><span style="color: rgba(0, 0, 0, 1)">.el7_5.x86_64
Error: Protected multilib versions: libsepol</span>-<span style="color: rgba(128, 0, 128, 1)">2.5</span>-<span style="color: rgba(128, 0, 128, 1)">6</span>.el7.i686 != libsepol-<span style="color: rgba(128, 0, 128, 1)">2.5</span>-<span style="color: rgba(128, 0, 128, 1)">10</span>.el7.x86_64</pre>
</div>
<p> </p>
<p>没有解决。。。</p>
<p> </p><br><br>
来源:https://www.cnblogs.com/hugetong/p/11991702.html
頁:
[1]