Sklonuj repo:

% cd /usr/src
% mkdir logwatch && cd logwatch
% git clone https://git.code.sf.net/p/logwatch/git logwatch-git

W /usr/src/logwatch utwórz Makefile:

SHELL := /bin/sh
LOGWATCH_REPO := ./logwatch-git

update: uninstall install

install:
        mkdir /usr/local/share/logwatch
        mkdir /usr/local/share/logwatch/dist.conf
        mkdir /usr/local/share/logwatch/dist.conf/logfiles
        mkdir /usr/local/share/logwatch/dist.conf/services
        cp -av $(LOGWATCH_REPO)/conf/ /usr/local/share/logwatch/default.conf
        cp -av $(LOGWATCH_REPO)/scripts/ /usr/local/share/logwatch/scripts
        cp -av $(LOGWATCH_REPO)/lib /usr/local/share/logwatch/lib
        mkdir /var/cache/logwatch
        @#ln -s /usr/local/share/logwatch/scripts/logwatch.pl /etc/cron.daily/0logwatch
        ln -s /usr/local/share/logwatch/scripts/logwatch.pl /usr/local/sbin/logwatch
        ln -s /usr/local/share/logwatch /usr/share/logwatch

uninstall:
        @#rm -rf /etc/logwatch
        rm -rf /usr/local/share/logwatch
        rm -rf /var/cache/logwatch
        @#rm -f /etc/cron.daily/0logwatch
        rm -f /usr/local/sbin/logwatch
        rm -f /usr/share/logwatch

config:
        mkdir /etc/logwatch
        mkdir /etc/logwatch/scripts
        mkdir /etc/logwatch/conf
        mkdir /etc/logwatch/conf/logfiles
        mkdir /etc/logwatch/conf/services
        touch /etc/logwatch/conf/logwatch.conf
        touch /etc/logwatch/conf/ignore.conf
        touch /etc/logwatch/conf/override.conf

.PHONY: install uninstall config

Uruchom:

# Instalacja
% make config && make install
# Aktualizacja
% make update

Sprawdź w działaniu:

% logwatch --version
Logwatch 7.14 (released 01/22/26)
% logwatch --detail 10 --range yesterday | less

More information

Refs