Dnf 删除了 mariadb-config 和 mariadb-common 的许多依赖项
Posted
技术标签:
【中文标题】Dnf 删除了 mariadb-config 和 mariadb-common 的许多依赖项【英文标题】:Dnf removes many dependencies along mariadb-config and mariadb-common 【发布时间】:2018-06-03 15:48:34 【问题描述】:在 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)而不删除不相关的包(我实际上想保留而不是删除/重新安装)?
【问题讨论】:
yum remove MariaDB-server MariaDB-client
,然后再试一次。
正如我所说(这是我的问题的重点),它想要删除不相关的包。我不想删除那些包(问题中提供的列表摘录)。
祝你好运,欢迎来到linux xD
【参考方案1】:
终于成功了:
使用 yumex (GUI) 删除了 mariadb-* 使用 dnf (CLI) 删除了 mariadb-server 使用 dnf 安装 MariaDB-* (10.2)由于未知原因,Yumex 没有删除不相关的软件包,而 dnf 会删除。
【讨论】:
原因很简单,yumex-dnf 不会删除“弱依赖”,也不会删除“级联依赖”,但 dnf 会。有关“弱依赖”的文档,请查看:fedoraproject.org/wiki/PackagingDrafts/WeakDependencies 感谢您的评论和链接。但是,例如,Blender 绝对与 mariadb-config 无关:mariadb-config 既不是弱依赖也不是级联依赖,它根本不是依赖...以上是关于Dnf 删除了 mariadb-config 和 mariadb-common 的许多依赖项的主要内容,如果未能解决你的问题,请参考以下文章
C:\windows\system32\TesSafe.sys 玩dnf进不去