pkg.soopen package index

brew / 排名 3596

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, chocolatey 安装 logrotate

查看 logrotate 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install logrotate

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install logrotate

MacPorts ports tree · sysutils/logrotate/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add logrotate

Alpine Linux edge package indexes · logrotate · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install logrotate

Debian stable package indexes · logrotate · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install logrotate

Fedora Rawhide package metadata · logrotate · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#logrotate

nixpkgs package indexes · pkgs/by-name/lo/logrotate/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S logrotate

Arch Linux sync databases · logrotate · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install logrotate

openSUSE Tumbleweed package metadata · logrotate · 来源: download.opensuse.org

概览

软件包摘要

Rotates, compresses, and mails system logs

命令和别名

  • logrotate

历史

项目历史与用法

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.

时间线

  • 2016: 3.11.0 imports systemd service and timer examples and adds new configuration directives.
  • 2018: 3.15.0 renames the default example to logrotate.conf and improves systemd timer behavior.
  • 2020: 3.17.0 adds state-file locking; 3.18.0 adds Zstandard compression support.
  • 2022: 3.20.0 addresses CVE-2022-1348 around state-file handling.
  • 2024: 3.22.0 release fixes time calculations, copy/compress edge cases, named-pipe handling, parser ambiguity, and timer behavior.

Related projects

  • cron and systemd timers: common schedulers for running logrotate.
  • gzip, xz, zstd, and other compressors: external compression tools commonly used by logrotate configurations.
  • syslog and daemon packages: common producers of logs managed by logrotate.

安全态势

风险级别:orange

broad file, network, media, or database tool signal. formula declares a Homebrew service.

风险分类器

orange 风险 · 中 置信度 · infrastructure

原因

  • broad file, network, media, or database tool signal
  • formula declares a Homebrew service

信号

  • metadata:service
  • text:compress

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
/etc/logrotate.conf

可执行文件

已安装的可执行文件

命令类型暴露范围备注
logrotate可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本3.22.0
管理器更新时间
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:logrotate
版本3.22.0
软件包管理器Homebrew
主页https://github.com/logrotate/logrotate
仓库https://github.com/logrotate/logrotate
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

logrotate 3.22.0-1

Log rotation utility

https://github.com/logrotate/logrotate

sudo apt install logrotate
  • Section: admin
  • Architecture: amd64
  • 8 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Logrotate
Debian stable package indexes · deb.debian.org · Debian stable package indexes: logrotate from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

logrotate

nix profile install nixpkgs#logrotate
  • normalized package name match
  • 匹配方式:Logrotate
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/lo/logrotate/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

logrotate 3.21.0-2build1

Log rotation utility

https://github.com/logrotate/logrotate

sudo apt install logrotate
  • Section: admin
  • Architecture: amd64
  • 8 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Logrotate
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: logrotate from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

logrotate 3.22.0-r0

Tool to rotate logfiles

https://github.com/logrotate/logrotate

sudo apk add logrotate
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: logrotate
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Logrotate
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: logrotate from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

logrotate-doc 3.22.0-r0

Tool to rotate logfiles (documentation)

https://github.com/logrotate/logrotate

sudo apk add logrotate-doc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: logrotate
  • normalized package name match
  • 匹配方式:Logrotate
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: logrotate-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

logrotate-openrc 3.22.0-r0

Tool to rotate logfiles (OpenRC init scripts)

https://github.com/logrotate/logrotate

sudo apk add logrotate-openrc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: logrotate
  • normalized package name match
  • 匹配方式:Logrotate
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: logrotate-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

logrotate-syslog 3.22.0-r0

Rotation for the main syslog file

https://github.com/logrotate/logrotate

sudo apk add logrotate-syslog
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: logrotate
  • 1 依赖
  • normalized package name match
  • 匹配方式:Logrotate
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: logrotate-syslog from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

logrotate 3.22.0-6.fc45

Rotates, compresses, removes and mails system log files

https://github.com/logrotate/logrotate

sudo dnf install logrotate
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: logrotate
  • 9 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Logrotate
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: logrotate from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst
pacman95%

logrotate 3.22.0-1

Rotates system logs automatically

https://github.com/logrotate/logrotate

sudo pacman -S logrotate
  • License: GPL
  • Architecture: x86_64
  • 3 依赖
  • normalized package name match
  • 匹配方式:Logrotate
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: logrotate from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz
zypper95%

logrotate 3.22.0-2.6

Cron service for rotating, compressing, mailing and removing system log files

https://github.com/logrotate/logrotate

sudo zypper install logrotate
  • License: GPL-2.0-or-later
  • Category: System/Base
  • Architecture: x86_64
  • Source Package: logrotate
  • 6 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Logrotate
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: logrotate from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst
MacPorts95%

logrotate

sudo port install logrotate
  • normalized package name match
  • 匹配方式:Logrotate
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/logrotate/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

LogRotate

choco install LogRotate
  • normalized package name match
  • 匹配方式:Logrotate
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: LogRotate from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','logexpert'

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation