8053 beefd0184a 2022-08-08 ct_chen 2 年之前
..
.deps beefd0184a 2022-08-08 ct_chen 2 年之前
autom4te.cache beefd0184a 2022-08-08 ct_chen 2 年之前
build-aux beefd0184a 2022-08-08 ct_chen 2 年之前
examples beefd0184a 2022-08-08 ct_chen 2 年之前
release beefd0184a 2022-08-08 ct_chen 2 年之前
test beefd0184a 2022-08-08 ct_chen 2 年之前
.tarball-version beefd0184a 2022-08-08 ct_chen 2 年之前
.version beefd0184a 2022-08-08 ct_chen 2 年之前
COPYING beefd0184a 2022-08-08 ct_chen 2 年之前
ChangeLog.md beefd0184a 2022-08-08 ct_chen 2 年之前
INSTALL beefd0184a 2022-08-08 ct_chen 2 年之前
Makefile beefd0184a 2022-08-08 ct_chen 2 年之前
Makefile.am beefd0184a 2022-08-08 ct_chen 2 年之前
Makefile.in beefd0184a 2022-08-08 ct_chen 2 年之前
README.md beefd0184a 2022-08-08 ct_chen 2 年之前
aclocal.m4 beefd0184a 2022-08-08 ct_chen 2 年之前
autogen.sh beefd0184a 2022-08-08 ct_chen 2 年之前
compile beefd0184a 2022-08-08 ct_chen 2 年之前
config.c beefd0184a 2022-08-08 ct_chen 2 年之前
config.guess beefd0184a 2022-08-08 ct_chen 2 年之前
config.h beefd0184a 2022-08-08 ct_chen 2 年之前
config.h.in beefd0184a 2022-08-08 ct_chen 2 年之前
config.h.in~ beefd0184a 2022-08-08 ct_chen 2 年之前
config.log beefd0184a 2022-08-08 ct_chen 2 年之前
config.status beefd0184a 2022-08-08 ct_chen 2 年之前
config.sub beefd0184a 2022-08-08 ct_chen 2 年之前
configure beefd0184a 2022-08-08 ct_chen 2 年之前
configure.ac beefd0184a 2022-08-08 ct_chen 2 年之前
depcomp beefd0184a 2022-08-08 ct_chen 2 年之前
install-sh beefd0184a 2022-08-08 ct_chen 2 年之前
log.c beefd0184a 2022-08-08 ct_chen 2 年之前
log.h beefd0184a 2022-08-08 ct_chen 2 年之前
logrotate beefd0184a 2022-08-08 ct_chen 2 年之前
logrotate.8 beefd0184a 2022-08-08 ct_chen 2 年之前
logrotate.8.in beefd0184a 2022-08-08 ct_chen 2 年之前
logrotate.c beefd0184a 2022-08-08 ct_chen 2 年之前
logrotate.conf.5 beefd0184a 2022-08-08 ct_chen 2 年之前
logrotate.h beefd0184a 2022-08-08 ct_chen 2 年之前
logrotate.spec beefd0184a 2022-08-08 ct_chen 2 年之前
logrotate.spec.in beefd0184a 2022-08-08 ct_chen 2 年之前
missing beefd0184a 2022-08-08 ct_chen 2 年之前
queue.h beefd0184a 2022-08-08 ct_chen 2 年之前
stamp-h1 beefd0184a 2022-08-08 ct_chen 2 年之前
test-driver beefd0184a 2022-08-08 ct_chen 2 年之前

README.md

logrotate

The logrotate utility is designed to simplify the administration of log files on a system which generates a lot of log files. Logrotate allows for the automatic rotation compression, removal and mailing of log files. Logrotate can be set to handle a log file hourly, daily, weekly, monthly or when the log file gets to a certain size.

Download

The latest release is:

Previous releases:

Git checkout

You can also obtain code by using git checkout:

git clone https://github.com/logrotate/logrotate.git -b master

Replace master with branch or tag you intend to checkout

Verify and unpack

After downloading the tarball and .asc signature file, check the signature:

Get Kamil's PGP key rsa4096/72A37B36 (almost any keyserver will do if pgp.mit.edu is temporarily unavailable):

$ gpg --keyserver pgp.mit.edu --recv-key 992A96E075056E79CD8214F9873DB37572A37B36

and verify the PGP signature on the distribution tarball:

$ gpg --verify logrotate-3.11.0.tar.xz.asc logrotate-3.11.0.tar.xz

If successful your GPG output should look like this:

gpg: Signature made Fri 02 Dec 2016 08:30:39 AM EST
gpg:                using RSA key 873DB37572A37B36
gpg: Good signature from "Kamil Dudka <kdudka@redhat.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 992A 96E0 7505 6E79 CD82  14F9 873D B375 72A3 7B36

You may then unpack the tarball:

$ tar -xJf logrotate-3.11.0.tar.xz

Notice that git tags are signed with same key:

$ git tag --verify 3.11.0

Compiling

Obtain source either by Downloading it or doing Git checkout.

Install dependencies for Debian systems:

apt-get update
apt-get install autoconf automake libpopt-dev libtool make xz-utils

Install dependencies for Fedora/CentOS systems:

yum install autoconf automake libtool make popt-devel xz

Compilation (autoreconf is optional if you obtained source from tarball):

cd logrotate-X.Y.Z
autoreconf -fiv
./configure
make

Patches and Questions

Open issues or pull requests on GitHub.