分类: LINUX
2014-02-27 13:52:55
yum update 遇到的问题
=================================================================
提示无法升级libtar,但是yum list libtar可以看到有可用包,用如下方法升级。
------------------------
--> Finished Dependency Resolution
Error: Package: libreport-plugin-reportuploader-2.0.9-15.el6.x86_64 (@rhel-x86_64-server-6-201303.01)
Requires: libtar.so.1()(64bit)
Removing: libtar-1.2.11-17.el6.x86_64 (@anaconda-RedHatEnterpriseLinux-201206132210.x86_64/6.3)
libtar.so.1()(64bit)
Updated By: libtar-1.2.11-17.el6_4.1.i686 (rhel-x86_64-optional-6)
Not found
----------------------
1. 安装yum utility 包,提供 yumdownloader 命令
# yum install yum-utils
2. 使用yumdownloader下载无法升级的包,--resolve 分析依赖性并下载被依赖的包,本例下载了zlib。
# yumdownloader libtar.i686 --destdir=/tmp --resolve
Loaded plugins: product-id
--> Running transaction check
---> Package libtar.i686 0:1.2.11-17.el6_4.1 will be installed
--> Processing Dependency: libz.so.1 for package: libtar-1.2.11-17.el6_4.1.i686
--> Running transaction check
---> Package zlib.i686 0:1.2.3-29.el6 will be installed
--> Finished Dependency Resolution
libtar-1.2.11-17.el6_4.1.i686.rpm | 30 kB 00:00
zlib-1.2.3-29.el6.i686.rpm
3. 先安装依赖包,然后安装需要升级的包。
# rpm -ivh zlib-1.2.3-29.el6.i686.rpm
# rpm -ivh libtar-1.2.11-17.el6_4.1.i686.rpm
===================================================================
Yyum update 时提示冲突: conflict
-------------
Transaction Check Error:
file /usr/share/doc/hponcfg/readme.txt from install of hponcfg-4.2.0-0.x86_64 conflicts with file from package hponcfg-4.1.0-0.noarch
Error Summary
----------
1. 先卸载冲突的包,本例是hponcfg
# yum remove hponcfg
2. 重新安装
# yum install hponcfg
3. 重新update
# yum update