1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Packages excluded due to repository priority protections の解決方法

Last updated at Posted at 2022-08-30

EC2 で、clamd が、OUTDATED だぞーと怒られ、新しいパッケージにしないとfreshclam できない問題が発生した。

# yum update clamd

しかし、アップデートできない。これは、Packages excluded due to repository priority protections ということらしい。これを解決するために、以下のコマンドを実行した。

# sed -i 's/priority/#priority/g' /etc/yum.repos.d/amzn2-core.repo

アップデートできた。
また戻しておいた。また怒られたらやってみるということで。

# sed -i 's/#priority/priority/g' /etc/yum.repos.d/amzn2-core.repo

これでもうまく yum update できなければ、普通に以下で対応。

# yum --disablerepo="*" --enablerepo=epel update clamd

(参考)
https://support.plesk.com/hc/en-us/articles/213958545-Plesk-upgrade-on-CentOS-RHEL-fails-Packages-excluded-due-to-repository-priority-protections-

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?