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

问题描述 投票:0回答:1

在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(带帽= 10.2)而不删除不相关的包(我实际上想要保留而不是删除/重新安装)?

mariadb fedora dnf
1个回答
1
投票

终于成功了:

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

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

© www.soinside.com 2019 - 2024. All rights reserved.