File conflicts with package
File conflicts with package
Hi there, I have a VPS; new to it all. (Linux VPS Hosting) and i'm trying to install MariaDB as that's the new mysql for Centos 7. Whenever I type yum -y install mariadb-server mariadb I get spammed with various versions of this error. file /usr/share/mysql/errmsg-utf8.txt from install of MariaDB-server-10.1.29-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.20-1.el7.x86_64
I've looked everywhere and I can't find where this file is located. Does anyone know how I can remove this file, or how to uninstall etc?
Thanks.
I've looked everywhere and I can't find where this file is located. Does anyone know how I can remove this file, or how to uninstall etc?
Thanks.
Re: File conflicts with package
See if you have any mysql packages installed: rpm -qa|grep mysql
Re: File conflicts with package
That means you already have the mysql-community-common packages installed from the mysql-community repo (or manually downloaded and installed). You cannot run both mysql and mariadb at the same time. Obviously we'd recommend that you use our mariadb packages and remove the mysql community ones but you need to check what's required before you remove the one and replace with the other.file /usr/share/mysql/errmsg-utf8.txt from install of MariaDB-server-10.1.29-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.20-1.el7.x86_64
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: File conflicts with package
mysql-community-libs-5.7.20-1.el7.x86_64tunk wrote:See if you have any mysql packages installed: rpm -qa|grep mysql
mysql-community-devel-5.7.20-1.el7.x86_64
mysql57-community-release-el7-10.noarch
mysql-community-common-5.7.20-1.el7.x86_64
mysql-community-libs-compat-5.7.20-1.el7.x86_64
rh-php70-php-mysqlnd-7.0.10-2.el7.x86_64
dovecot-mysql-2.2.10-8.el7.x86_64
php-mysql-5.4.45-56.el7.art.x86_64
how would I remove these? And what ones do I need to remove?
I managed to get mariadb working once and then it stopped working so when I tried to fix it I forgot that rather than install mysql you in mariadb. So I know that mysql isn't required. Since I don't need this mysql; how would I delete it?TrevorH wrote:That means you already have the mysql-community-common packages installed from the mysql-community repo (or manually downloaded and installed). You cannot run both mysql and mariadb at the same time. Obviously we'd recommend that you use our mariadb packages and remove the mysql community ones but you need to check what's required before you remove the one and replace with the other.file /usr/share/mysql/errmsg-utf8.txt from install of MariaDB-server-10.1.29-1.el7.centos.x86_64 conflicts with file from package mysql-community-common-5.7.20-1.el7.x86_64
Re: File conflicts with package
Packaged that are installed with yum can be removed by:
Packages installed by rpm can be removed with:
Code: Select all
sudo yum erase packagename
Code: Select all
sudo rpm -e packagename
Re: File conflicts with package
However... I suspect that there will be other packages that depend on those and if you just yum remove ... that list, it will expand the list and take out all of the dependent packages too. You may not want that so read the list of packages carefully that yum tells you it is going to remove before you blindly reply Y to the prompt. And do not use yum -y !
What do you actually want to achieve and why? Who installed the mysql-community packages and did they do so for a reason? There may be features in mysql 5.7 that are not in our mariadb packages for example (and possibly vice versa).
If you do need to remove them and replace with the mariadb versions then the IUS Community repo has a yum-plugin-replace package that you can install that allows yum to replace one set of packages with another without removing the dependencies. You can also use the yum shell command which allows you to stack up yum commands and run them as one transaction - e.g
However, I notice that in your list of mysql-community packages you do not have mysql-community-server installed so at the present you're not running a mysql server on this machine.
What do you actually want to achieve and why? Who installed the mysql-community packages and did they do so for a reason? There may be features in mysql 5.7 that are not in our mariadb packages for example (and possibly vice versa).
If you do need to remove them and replace with the mariadb versions then the IUS Community repo has a yum-plugin-replace package that you can install that allows yum to replace one set of packages with another without removing the dependencies. You can also use the yum shell command which allows you to stack up yum commands and run them as one transaction - e.g
Code: Select all
yum shell
remove mysql-community-libs mysql-community-devel mysql-community-common mysql-community-libs-compat
install mariadb-libs mariadb-devel
run
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: File conflicts with package
I gave up and just reinstalled the VPS. I have everything running successfully. Thank you.