# 使用 Homebrew, apk, apt, Nix, zypper 安装 logcheck

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

## 安装

```sh
sudo av install brew:logcheck
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install logcheck
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add logcheck
```

  证据: Alpine Linux edge package indexes: logcheck from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install logcheck
```

  证据: Debian stable package indexes: logcheck from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#logcheck
```

  证据: nixpkgs package indexes: pkgs/by-name/lo/logcheck/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install logtail
```

  证据: openSUSE Tumbleweed package metadata: logtail from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:logcheck
- **软件包管理器:** Homebrew
- **版本:** 1.4.7
- **来源摘要:** Mail anomalies in the system logfiles to the administrator
- **主页:** <https://packages.debian.org/sid/logcheck>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- logcheck (别名)
- logcheck-test (别名)
- logtail (别名)
- logtail2 (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.4.7
## 项目历史与用法

logcheck is a Debian-oriented log monitoring tool that scans system logs for unexpected entries and emails reports to the administrator. It focuses on filtering routine messages out so security violations, attack alerts, and unusual system events stand out.

### 项目历史

Debian's package page says logcheck was originally part of the Abacus Project security tools and was later rewritten. The Debian repository's change notes describe the Debian package becoming effectively Debian-native after a major overhaul around version 1.1.9.1 because Debian's version had diverged substantially from the old upstream 1.1.1 code.

The current Debian Salsa repository presents logcheck as the maintained source home for Debian packaging, with the project description centered on mailing summaries of log file entries to administrators via cron.

### 采用历史

logcheck's adoption is strongest in Debian-family systems, where its manpages, package page, and logcheck-database rules are first-class distribution artifacts. The supplied package metadata also records package availability in Homebrew, Alpine, Nix, openSUSE, Debian, and Ubuntu.

The package belongs to an older Unix administration style: periodic cron jobs, regex rule directories in /etc, and email to root or an administrator. That style remains useful on servers where a small local checker is preferable to a centralized log pipeline.

### 使用方式

The logcheck command runs by default as an hourly cron job and after reboot. It filters messages at paranoid, server, or workstation levels, sorts reports into system events, security events, and attack alerts, and sends email only when messages survive the rules.

Administrators tune it through `/etc/logcheck/logcheck.conf`, monitored-file lists, and rule directories such as cracking.d, violations.d, violations.ignore.d, and ignore.d.*. The logcheck-database documentation emphasizes writing precise extended regular expressions and testing new rules with logcheck-test.

### 为什么软件包爱好者会关心

logcheck is a packaging-culture artifact: much of its value lives in distribution-maintained regex databases and package-specific rule files, not in a large binary. It is a useful example of Debian packaging acting as upstream stewardship for a security-administration workflow.

### 时间线

- Pre-1.1.9.1: logcheck originates in the Abacus Project security tools and is later rewritten.
- 1.1.9.1: Debian change notes describe a major overhaul and larger config/rulefile changes.
- 2018: Debian Salsa project page records repository creation on May 13, 2018.
- Current: Debian manpages document hourly cron use, report levels, and /etc/logcheck configuration.

### Related projects

- logtail: used by logcheck workflows to process recent log messages.
- logcheck-database: the companion rules package that supplies regular-expression filters.

### 来源

- <https://manpages.debian.org/testing/logcheck/logcheck.8.en.html>
- <https://packages.debian.org/sid/logcheck>
- <https://salsa.debian.org/debian/logcheck>
- <https://salsa.debian.org/debian/logcheck/-/raw/debian/sid/CHANGES>
- <https://salsa.debian.org/debian/logcheck/-/raw/debian/sid/docs/README.logcheck-database>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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

- Unix: /etc/logcheck/logcheck.conf, /etc/logcheck/*.d/*
## 其他软件包管理器记录

- Debian apt - logcheck - 1.4.5+deb13u1: normalized package name match | Debian stable package indexes: logcheck from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | check the system log for unusual entries
- Debian apt - logcheck-database - 1.4.5+deb13u1: normalized package name match | Debian stable package indexes: logcheck-database from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | database of system log rules for logcheck
- Debian apt - logtail - 1.4.5+deb13u1: normalized package name match | Debian stable package indexes: logtail from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Identify new lines added to the end of log files
- Nix - logcheck: normalized package name match | nixpkgs package indexes: pkgs/by-name/lo/logcheck/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - logcheck - 1.4.3: normalized package name match | Ubuntu 24.04 LTS package indexes: logcheck from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | check the system log for unusual entries
- Ubuntu apt - logcheck-database - 1.4.3: normalized package name match | Ubuntu 24.04 LTS package indexes: logcheck-database from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | database of system log rules for logcheck
- Ubuntu apt - logtail - 1.4.3: normalized package name match | Ubuntu 24.04 LTS package indexes: logtail from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Identify new lines added to the end of log files
- apk - logcheck - 1.4.7-r0: normalized package name match | Alpine Linux edge package indexes: logcheck from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Bash scripts used to monitor system log files for anomalies | https://packages.debian.org/source/sid/logcheck
- apk - logcheck-doc - 1.4.7-r0: normalized package name match | Alpine Linux edge package indexes: logcheck-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Bash scripts used to monitor system log files for anomalies (documentation) | https://packages.debian.org/source/sid/logcheck
- apk - logtail - 3.22-r3: installed executable or alias match | Alpine Linux edge package indexes: logtail from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Print new lines in log file since the last run (sf.net logtail-v3 ver) | https://logtail-v3.sourceforge.net/
- zypper - logtail - 0.2.4-21.9: installed executable or alias match | openSUSE Tumbleweed package metadata: logtail from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Helper application to analyze logfiles | http://sourceforge.net/projects/logdigest


## Combined YAML source

View the package source record on GitHub. [combined/logcheck.yml](https://github.com/mxcl/pkgdb/blob/main/combined/logcheck.yml)


## 来源

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