macOS
brew install logrotatelocal Homebrew formula metadata
sudo port install logrotateMacPorts ports tree · sysutils/logrotate/Portfile · 来源: api.github.com
安装
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来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.