# yum install python-devel
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: mirror.neu.edu.cn
* extras: mirror.neu.edu.cn
* rpmforge: mirror-fpt-telecom.fpt.net
* updates: mirror.neu.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package python-devel.x86_64 0:2.6.6-37.el6_4 will be installed
--> Processing Conflict: python-devel-2.6.6-37.el6_4.x86_64 conflicts python < 2.6.6-37.el6_4
--> Finished Dependency Resolution
Error: python-devel conflicts with python-2.6.5-3.el6.x86_64
You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
python-2.6.6-37.el6_4.x86_64 is a duplicate with python-2.6.5-3.el6.x86_64
]# rpm -qi python
Name : python Relocations: (not relocatable)
Version : 2.6.6 Vendor: CentOS
Release : 37.el6_4 Build Date: Thu 11 Jul 2013 06:51:12 AM CST
Install Date: Thu 25 Jul 2013 08:56:21 PM CST Build Host: c6b10.bsys.dev.centos.org
Group : Development/Languages Source RPM: python-2.6.6-37.el6_4.src.rpm
Size : 21275516 License: Python
Signature : RSA/SHA1, Thu 11 Jul 2013 09:01:43 AM CST, Key ID 0946fca2c105b9de
Packager : CentOS BuildSystem <http://bugs.centos.org>
URL : http://www.python.org/
Summary : An interpreted, interactive, object-oriented programming language
Description :
Python is an interpreted, interactive, object-oriented programming
language often compared to Tcl, Perl, Scheme or Java. Python includes
modules, classes, exceptions, very high level dynamic data types and
dynamic typing. Python supports interfaces to many system calls and
libraries, as well as to various windowing systems (X11, Motif, Tk,
Mac and MFC).
Programmers can write new built-in modules for Python in C or C++.
Python can be used as an extension language for applications that need
a programmable interface. This package contains most of the standard
Python modules, as well as modules for interfacing to the Tix widget
set for Tk and RPM.
Note that documentation for Python is provided in the python-docs
package.
Name : python Relocations: (not relocatable)
Version : 2.6.5 Vendor: CentOS
Release : 3.el6 Build Date: Fri 12 Nov 2010 08:55:06 AM CST
Install Date: Fri 26 Jul 2013 11:56:42 AM CST Build Host: c6b4.bsys.dev.centos.org
Group : Development/Languages Source RPM: python-2.6.5-3.el6.src.rpm
Size : 21535064 License: Python
Signature : RSA/8, Sun 03 Jul 2011 12:58:27 PM CST, Key ID 0946fca2c105b9de
Packager : CentOS BuildSystem <http://bugs.centos.org>
URL : http://www.python.org/
Summary : An interpreted, interactive, object-oriented programming language
Description :
Python is an interpreted, interactive, object-oriented programming
language often compared to Tcl, Perl, Scheme or Java. Python includes
modules, classes, exceptions, very high level dynamic data types and
dynamic typing. Python supports interfaces to many system calls and
libraries, as well as to various windowing systems (X11, Motif, Tk,
Mac and MFC).
Programmers can write new built-in modules for Python in C or C++.
Python can be used as an extension language for applications that need
a programmable interface. This package contains most of the standard
Python modules, as well as modules for interfacing to the Tix widget
set for Tk and RPM.
Note that documentation for Python is provided in the python-docs
package.
----------------------------------------
重复安装???
要解决上述问题,可以这样:
# 首先安装 yum-utils 套件
yum install yum-utils
# 执行 clean duplicate package
package-cleanup --cleandupes
Duplicate Package Options:
--dupes Scan for duplicates in your rpmdb
--cleandupes Scan for duplicates in your rpmdb and remove older
--noscripts disable rpm scriptlets from running when cleaning
duplicates
参考:
http://blog.wu-boy.com/2011/10/how-to-remove-duplicated-rpm-package/