yum は yum.conf の除外ディレクティブを無視します。

yum は yum.conf の除外ディレクティブを無視します。

mysqlアップデートを防ぐ必要がありますyum updateexclude=mysql*以下を追加しました/etc/yum.conf

[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=19&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release
exclude=mysql*

再発行しても、yum updateyumはまだ更新を試みています。mysql

--> Running transaction check
---> Package mysql-libs.x86_64 0:5.5.46-1.el6.remi will be obsoleted
--> Processing Dependency: real-mysql-libs(x86-64) = 5.5.46-1.el6.remi for package: mysql-5.5.46-1.el6.remi.x86_64
--> Processing Dependency: real-mysql-libs(x86-64) = 5.5.46-1.el6.remi for package: mysql-server-5.5.46-1.el6.remi.x86_64
--> Finished Dependency Resolution
Error: Package: mysql-5.5.46-1.el6.remi.x86_64 (@remi)
           Requires: real-mysql-libs(x86-64) = 5.5.46-1.el6.remi
           Removing: mysql-libs-5.5.46-1.el6.remi.x86_64 (@remi)
               real-mysql-libs(x86-64) = 5.5.46-1.el6.remi
           Obsoleted By: Percona-Server-shared-51-5.1.73-rel14.12.625.rhel6.x86_64 (percona-release-x86_64)
               Not found
Error: Package: mysql-server-5.5.46-1.el6.remi.x86_64 (@remi)
           Requires: real-mysql-libs(x86-64) = 5.5.46-1.el6.remi
           Removing: mysql-libs-5.5.46-1.el6.remi.x86_64 (@remi)
               real-mysql-libs(x86-64) = 5.5.46-1.el6.remi
           Obsoleted By: Percona-Server-shared-51-5.1.73-rel14.12.625.rhel6.x86_64 (percona-release-x86_64)
               Not found
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

yumが除外ディレクティブを無視するのはなぜですか?

ベストアンサー1

除外する場合は常に使用することをお勧めします*name*mysql*名前がmysqlで始まるすべてのパッケージのみが除外されます。例ではreal-mysql-libs除外されない項目も表示されるため、依存関係を解決しようとしますが、そのmysql*依存関係を除外します。

を使用する方が良いです*mysql*

価値ある点は、リポジトリにも同様に適用されます。たとえば、多くの人がyum clean all現在アクティブなリポジトリのメタデータのみを整理していることがわかりません。これ
により、yum clean all --enablerepo="*"無効なストレージのすべてのメタデータ、キャッシュされたパッケージなども消去されます。

おすすめ記事