LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Remove package which has dependences (https://www.linuxquestions.org/questions/linux-newbie-8/remove-package-which-has-dependences-4175466137/)

NotionCommotion 06-15-2013 11:02 AM

Remove package which has dependences
 
I wish to remove a package, so I do the following:
Code:

[root@centosBox src]# rpm -e mysql-libs
error: Failed dependencies:
        libmysqlclient.so.16()(64bit) is needed by (installed) postfix-2:2.6.6-2.2.el6_1.x86_64
        libmysqlclient.so.16(libmysqlclient_16)(64bit) is needed by (installed) postfix-2:2.6.6-2.2.el6_1.x86_64
        mysql-libs is needed by (installed) postfix-2:2.6.6-2.2.el6_1.x86_64
[root@centosBox src]#

To get around it, I know I can use the --nodeps option, but is this too heavyhanded and not good practice? Is there a better way?

PS. The reason I am doing this is that I wish to install a new version of MySQL, but keep getting:
Code:

        file /usr/share/mysql/czech/errmsg.sys from install of MySQL-server-5.6.12-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.69-1.el6_4.x86_64
Maybe I can just update the lib instead of removing it?

Thanks

bigrigdriver 06-15-2013 02:36 PM

Use yum to upgrade to the version number you want.

yum upgrade mysql-14.14

Check the dependencies list before hitting Y. You might need to add other packages to the upgrade list


All times are GMT -5. The time now is 11:11 PM.