Translated message

A translation of this page exists in English.

DNF ログローテーションは異なる場所で処理される

Solution Verified - Updated -

Issue

  • Red Hat Enterprise Linux (RHEL) 8 では、DNF は新しいパッケージ管理ツールで、4 つの異なるログファイルが同梱されています。

    • /var/log/dnf.log
    • /var/log/hawkey.log
    • /var/log/dnf.rpm.log
    • /var/log/dnf.librepo.log

    ログローテーション設定は 2 つの異なる場所で処理されます。

    • /etc/dnf/dnf.conf (option log_rotate - default 4)
    • /etc/logrotate.d/dnf
  • 以下のオプションのいずれかを変更します。

    • rotate
    • weekly/daily/yearly

    /etc/logrotate.conf では、一部の DNF ログファイルのログローテーション動作は変更されません。

  • dnf.log のログローテーション設定は、/etc/logrotate.d/dnf には含まれていませんが、どこにありますか?

Environment

  • Red Hat Enterprise Linux (RHEL) 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content