Centos安装mysql/mariadb

1,yum install mysql-apt-config_0.8.12-1_all.deb

似乎后面会有冲突,不建议安装mysql了,直接mariadb吧

2,

No such command: uninstall. Please use /usr/bin/yum --help

It could be a YUM plugin command, try: "yum install 'dnf-command(uninstall)'"

It could be a YUM plugin command, try: "yum install 'dnf-command(uninstall)'

这个错误信息表明用户尝试使用YUM包管理器执行一个uninstall命令,但是该命令在YUM中不存在。错误建议安装dnf-command(uninstall),这是Fedora中的DNF包管理器使用的命令,它可以执行卸载操作。

解决方法:

  1. 如果你的系统是基于RHEL的系统(如CentOS),你可以通过以下步骤安装dnf-command(uninstall)

    sudo yum install dnf-plugins-core
    sudo yum install yum-utils
  2. 安装完成后,你可以使用yum命令来执行uninstall

    sudo yum remove package_name

    请注意,替换包名

你可能感兴趣的:(Notebook,centos,mysql,mariadb)