Table of contents


file conflicts

如果在packages安裝過程,發生file conflicts

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirror01.idc.hinet.net
 * base: mirror01.idc.hinet.net
 * epel: mirror01.idc.hinet.net
 * extras: mirror01.idc.hinet.net
 * updates: mirror01.idc.hinet.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql.i386 0:5.0.77-4.el5_5.3 set to be updated
---> Package mysql.x86_64 0:5.0.77-4.el5_5.3 set to be updated
--> Finished Dependency Resolution
 
Dependencies Resolved
 
=========================================================================================================================================================================
 Package                                       Arch                                           Version                                                    Repository                                       Size
=========================================================================================================================================================================
Installing:
 mysql                                         i386                                           5.0.77-4.el5_5.3                                           updates                                         4.8 M
 mysql                                         x86_64                                         5.0.77-4.el5_5.3                                           updates                                         4.8 M
 
Transaction Summary
=========================================================================================================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)
 
Total size: 9.5 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
 
 
Transaction Check Error:
  file /etc/my.cnf from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/charsets/Index.xml from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/charsets/cp1250.xml from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/czech/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/danish/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/dutch/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/english/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/estonian/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/french/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/german/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/greek/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/hungarian/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/italian/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/japanese/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/korean/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/norwegian-ny/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/norwegian/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/polish/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/portuguese/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/romanian/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/russian/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/serbian/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/slovak/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/spanish/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/swedish/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/ukrainian/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.i386 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/lib64/mysql/libmysqlclient.so.15.0.0 from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysqlclient15-5.0.67-1.el5.remi.x86_64
  file /usr/lib64/mysql/libmysqlclient_r.so.15.0.0 from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysqlclient15-5.0.67-1.el5.remi.x86_64
  file /etc/my.cnf from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/charsets/Index.xml from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/charsets/cp1250.xml from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/czech/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/danish/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/dutch/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/english/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/estonian/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/french/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/german/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/greek/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/hungarian/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/italian/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/japanese/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/korean/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/norwegian-ny/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/norwegian/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/polish/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/portuguese/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/romanian/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/russian/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/serbian/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/slovak/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/spanish/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/swedish/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64
  file /usr/share/mysql/ukrainian/errmsg.sys from install of mysql-5.0.77-4.el5_5.3.x86_64 conflicts with file from package mysql-libs-5.1.50-1.el5.remi.x86_64

可以直接到已被download下來的rpm裡,直接透過rpm的指令強迫安裝

cd /var/cache/yum/REPOSITORY_NAME/packages
rpm -Uvh --force package_name

強迫進行安裝