The “yum update” command fails due to duplicate package on the system:
tigervnc-server-1.1.0-8.el6_5.x86_64 is a duplicate with tigervnc-server-1.1.0-5.el6_4.1.x86_64
This may happen due to a yum update gets halted unexpectedly earlier, resulting in the presence of duplicate packages, as older packages have not been removed from the system.
Removing the duplicate packages
1. Use package-cleanup to remove duplicates:
# package-cleanup --dupes # package-cleanup --cleandupes
Option: ‘–dupes‘ will scan duplicates in rpmdb.
Option: ‘–cleandupes‘ will scan for duplicates in rpmdb and remove older versions.
2. Update the system after removing duplicates:
# yum update
3. After the clean up has been performed, verify and install the packages with following commands,
# yum info packagename # yum install packagename
4. If 32-bit version of the package installed on the system is not available under the 64-bit channel, then remove the same using following command and they execute yum command.
# rpm -e --justdb [package name]