macOS
brew install logrotatelocal Homebrew formula metadata
sudo port install logrotateMacPorts ports tree · sysutils/logrotate/Portfile · ソース: api.github.com
brew / 順位 3596
logrotate のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install logrotatelocal Homebrew formula metadata
sudo port install logrotateMacPorts ports tree · sysutils/logrotate/Portfile · ソース: api.github.com
sudo apk add logrotateAlpine Linux edge package indexes · logrotate · ソース: dl-cdn.alpinelinux.org
sudo apt install logrotateDebian stable package indexes · logrotate · ソース: deb.debian.org
sudo dnf install logrotateFedora Rawhide package metadata · logrotate · ソース: dl.fedoraproject.org
nix profile install nixpkgs#logrotatenixpkgs package indexes · pkgs/by-name/lo/logrotate/package.nix · ソース: api.github.com
sudo pacman -S logrotateArch Linux sync databases · logrotate · ソース: geo.mirror.pkgbuild.com
sudo zypper install logrotateopenSUSE Tumbleweed package metadata · logrotate · ソース: download.opensuse.org
choco install LogRotateChocolatey community package catalog · LogRotate · ソース: community.chocolatey.org
概要
Rotates, compresses, and mails system logs
履歴
logrotate is the standard Unix-style utility for rotating, compressing, removing, and optionally mailing log files so long-running systems do not accumulate unbounded logs.
The official README describes logrotate as a utility designed to simplify administration of systems that generate many log files. Its manpage documents the traditional cron or systemd timer execution model and the central `/etc/logrotate.conf` configuration file.
The current upstream GitHub changelog shows continuing maintenance through modern 3.x releases. Recent entries include systemd integration hardening, state-file locking, Zstandard compression support, stricter parser behavior, fixes for security-sensitive file handling, and a 2024 3.22.0 release with additional parser, rotation, and timer fixes.
logrotate is widely packaged across Unix and Unix-like systems. The supplied package metadata records packages in Alpine, Homebrew, Chocolatey, Debian, Fedora/DNF, MacPorts, Nix, Arch, Ubuntu, and openSUSE, reflecting its status as infrastructure plumbing rather than an application-specific tool.
Its adoption has been helped by the simple contract between packages and the host system: applications can install small snippets under a system's logrotate configuration directory, while logrotate centralizes schedule, retention, compression, permissions, and post-rotation hooks.
Administrators define log paths and directives in `/etc/logrotate.conf` or included configuration files. logrotate can rotate hourly, daily, weekly, monthly, after elapsed minutes, or by size; it can compress old logs, create replacement files, move logs to old directories, run scripts, and maintain a state file to avoid repeated rotations.
Package maintainers care about directives such as `create`, `copytruncate`, `missingok`, `compress`, `delaycompress`, `su`, and `postrotate` because they determine whether daemons keep writing safely after logs are moved or truncated.
logrotate is one of the small system tools that package managers quietly depend on. It lets packaged daemons ship predictable log retention behavior without each daemon inventing its own rotation code, and its config snippets are a familiar part of Linux and Unix package post-installation hygiene.
セキュリティ状態
broad file, network, media, or database tool signal. formula declares a Homebrew service.
リスク orange · 信頼度 中 · infrastructure
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
/etc/logrotate.conf実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
logrotate | 実行可能ファイル | インデックス済み実行可能ファイル | ローカル実行可能ファイルインデックスから検出されました。 |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
インストールメタデータ
| パッケージキー | brew:logrotate |
|---|---|
| バージョン | 3.22.0 |
| パッケージマネージャ | Homebrew |
| ホームページ | https://github.com/logrotate/logrotate |
| リポジトリ | https://github.com/logrotate/logrotate |
| Bottle | 未記録 |
| サービス | 宣言なし |
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
logrotate 3.22.0-1
Log rotation utility
https://github.com/logrotate/logrotate
sudo apt install logrotatelogrotate
nix profile install nixpkgs#logrotatelogrotate 3.21.0-2build1
Log rotation utility
https://github.com/logrotate/logrotate
sudo apt install logrotatelogrotate 3.22.0-r0
Tool to rotate logfiles
https://github.com/logrotate/logrotate
sudo apk add logrotatelogrotate-doc 3.22.0-r0
Tool to rotate logfiles (documentation)
https://github.com/logrotate/logrotate
sudo apk add logrotate-doclogrotate-openrc 3.22.0-r0
Tool to rotate logfiles (OpenRC init scripts)
https://github.com/logrotate/logrotate
sudo apk add logrotate-openrclogrotate-syslog 3.22.0-r0
Rotation for the main syslog file
https://github.com/logrotate/logrotate
sudo apk add logrotate-sysloglogrotate 3.22.0-6.fc45
Rotates, compresses, removes and mails system log files
https://github.com/logrotate/logrotate
sudo dnf install logrotatelogrotate 3.22.0-1
Rotates system logs automatically
https://github.com/logrotate/logrotate
sudo pacman -S logrotatelogrotate 3.22.0-2.6
Cron service for rotating, compressing, mailing and removing system log files
https://github.com/logrotate/logrotate
sudo zypper install logrotatelogrotate
sudo port install logrotateLogRotate
choco install LogRotateソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.