Dnf 删除了 mariadb-config 和 mariadb-common 的许多依赖项

Dnf removes many dependencies along mariadb-config and mariadb-common

正在 Fedora 26 上工作。已安装 mariadb 10.1.26,但我需要 10.2.2 上可用的一些功能。

要从 MariaDB 存储库安装 MariaDB-server 10.2,似乎有必要删除 mariadb-config 和 mariadb-common,因为有些文件存在冲突:

# dnf install MariaDB-server
Last metadata expiration check: 0:39:56 ago on Thu 21 Dec 2017 02:25:04 AM CET.
Dependencies resolved.
===================================================================================================================================================================================================================
 Package                                                Arch                                        Version                                                     Repository                                    Size
===================================================================================================================================================================================================================
Installing:
 MariaDB-server                                         x86_64                                      10.2.11-1.fc26                                              mariadb                                       24 M
Installing dependencies:
 MariaDB-client                                         x86_64                                      10.2.11-1.fc26                                              mariadb                                       11 M
 MariaDB-common                                         x86_64                                      10.2.11-1.fc26                                              mariadb                                       79 k
 galera                                                 x86_64                                      25.3.22-1.fc26.fc26                                         mariadb                                      8.9 M
 perl-DBI                                               x86_64                                      1.636-4.fc26                                                fedora                                       732 k
 perl-Math-BigInt                                       noarch                                      1.9998.11-1.fc26                                            fedora                                       193 k
 perl-Math-Complex                                      noarch                                      1.59-395.fc26                                               updates                                      101 k

Transaction Summary
===================================================================================================================================================================================================================
Install  7 Packages

Total size: 45 M
Installed size: 214 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] MariaDB-server-10.2.11-1.fc26.x86_64.rpm: Already downloaded                                                                                                                                            
[SKIPPED] perl-DBI-1.636-4.fc26.x86_64.rpm: Already downloaded                                                                                                                                                    
[SKIPPED] MariaDB-client-10.2.11-1.fc26.x86_64.rpm: Already downloaded                                                                                                                                            
[SKIPPED] MariaDB-common-10.2.11-1.fc26.x86_64.rpm: Already downloaded                                                                                                                                            
[SKIPPED] perl-Math-BigInt-1.9998.11-1.fc26.noarch.rpm: Already downloaded                                                                                                                                        
[SKIPPED] galera-25.3.22-1.fc26.fc26.x86_64.rpm: Already downloaded                                                                                                                                               
[SKIPPED] perl-Math-Complex-1.59-395.fc26.noarch.rpm: Already downloaded                                                                                                                                          
Running transaction check
Transaction check succeeded.
Running transaction test
Error: Transaction check error:
file /etc/my.cnf from install of MariaDB-common-10.2.11-1.fc26.x86_64 conflicts with file from package mariadb-config-3:10.1.26-2.fc26.x86_64
file /usr/lib64/mysql/plugin/dialog.so from install of MariaDB-common-10.2.11-1.fc26.x86_64 conflicts with file from package mariadb-common-3:10.1.26-2.fc26.x86_64
file /usr/lib64/mysql/plugin/mysql_clear_password.so from install of MariaDB-common-10.2.11-1.fc26.x86_64 conflicts with file from package mariadb-common-3:10.1.26-2.fc26.x86_64

如果我尝试删除相关包 mariadb-config 和 mariadb-common,DNF 需要删除一个令人印象深刻的不相关包列表,例如 shotcut、blender、mplayer。示例:

Removing:
 mariadb-config                                        x86_64                                 3:10.1.26-2.fc26                                               @updates                                        1.3 k
Removing dependent packages:
 OpenImageIO                                           x86_64                                 1.7.17-2.fc26                                                  @updates                                        9.3 M
 armadillo                                             x86_64                                 7.900.1-1.fc26                                                 @fedora                                          47 k
 blender                                               x86_64                                 1:2.79-1.fc26                                                  @updates                                        143 M
 dvdauthor                                             x86_64                                 0.7.2-2.fc26                                                   @fedora                                         609 k
 flowblade                                             noarch                                 1.14-3.gitcad77b5.fc26                                         @unitedrpms                                      20 M
 gdal-libs                                             x86_64                                 2.1.3-1.fc26                                                   @fedora                                          19 M
 gmic                                                  x86_64                                 1.7.2-3.fc26                                                   @fedora                                          14 M
 kdenlive                                              x86_64                                 17.08.3-2.fc26                                                 @unitedrpms                                      59 M
 kf5-kfilemetadata                                     x86_64                                 5.38.0-1.fc26                                                  @updates                                        701 k
 ladspa-calf-plugins                                   x86_64                                 0.0.60-5.fc26                                                  @fedora                                           0  
 lapack                                                x86_64                                 3.6.1-4.fc26                                                   @fedora                                          11 M
 libspatialite                                         x86_64                                 4.3.0a-4.fc26                                                  @fedora                                          11 M
 lives                                                 x86_64                                 2.8.7-1.fc26                                                   @rpmfusion-free                                 8.8 M
 mariadb-common                                        x86_64                                 3:10.1.26-2.fc26                                               @updates                                        393 k
 mariadb-libs                                          x86_64                                 3:10.1.26-2.fc26                                               @updates                                        3.6 M
 mkvtoolnix                                            x86_64                                 17.0.0-1.fc26                                                  @updates                      

mkvtoolnix真的依赖于mariadb-config吗?

# dnf deplist mkvtoolnix | grep -i maria
Last metadata expiration check: 0:44:36 ago on Thu 21 Dec 2017 02:25:04 AM CET.
#

似乎不​​是...我如何安装 MariaDB-server(caps = 10.2)而不删除不相关的包(我实际上想保留而不是 remove/reinstall)?

终于成功了:

  • 使用 yumex (GUI) 删除了 mariadb-*
  • 使用 dnf (CLI) 删除了 mariadb-server
  • 使用 dnf 安装了 MariaDB-* (10.2)

由于未知原因,Yumex 没有删除不相关的包,而 dnf 会删除。