In Linux, when the MySQLrpm package is uninstalled, the following error occurs: specifiesmultiplepackages.

Source: Internet
Author: User
Prepare to install MySQL5.1 on the RedhatLinux system, first uninstall the MySQL version that comes with it. The result is unknown. The same package appears twice, and the versions are the same.

Prepare to install MySQL5.1 on the Redhat Linux system, first uninstall the built-in low version of MySQL. The result is unknown. The same package appears twice, and the versions are the same.

Prepare to install MySQL5.1 on the RedHat Linux system, first uninstall the MySQL version that comes with it. The result is unknown. The same package appears twice, and the versions are the same:

Rpm-qa | grep mysql
Mysqlclient10-3.23.58-4.RHEL4.1
Mysql-4.1.20-2.RHEL4.1
Mysql-4.1.20-2.RHEL4.1
Mysqlclient10-3.23.58-4.RHEL4.1

Try to uninstall:

Rpm e mysqlclient10-3.23.58-4.RHEL4.1
Error: "mysqlclient10-3.23.58-4.RHEL4.1" specifies multiple packages

Through man rpm, we found that-allmatches should be able to solve this problem:

-Allmatches
Remove all versions of the package which match PACKAGE_NAME. Normally an error is issued if PACKAGE_NAME matches
Multiple packages.
Rpm-e -- allmatches mysqlclient10-3.23.58-4.RHEL4.1
Rpm-e -- allmatches mysql-4.1.20-2.RHEL4.1
Warning:/etc/my. cnf saved as/etc/my. cnf. rpmsave

OK. The old MySQL version is uninstalled.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.