How to Install and Uninstall logrotate Package on Debian 12 (Bookworm)

Last updated: May 19,2024

1. Install "logrotate" package

This tutorial shows how to install logrotate on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install logrotate

2. Uninstall "logrotate" package

This tutorial shows how to uninstall logrotate on Debian 12 (Bookworm):

$ sudo apt remove logrotate $ sudo apt autoclean && sudo apt autoremove

3. Information about the logrotate package on Debian 12 (Bookworm)

Package: logrotate
Version: 3.21.0-1
Installed-Size: 160
Maintainer: Christian Göttsche
Architecture: amd64
Depends: cron | anacron | cron-daemon | systemd-sysv, libacl1 (>= 2.2.23), libc6 (>= 2.34), libpopt0 (>= 1.14), libselinux1 (>= 3.1~)
Suggests: bsd-mailx | mailx
Description: Log rotation utility
Description-md5: bb73169bb75b2b8a2fda1453d214416d
Multi-Arch: foreign
Homepage: https://github.com/logrotate/logrotate
Tag: admin::automation, admin::logging, implemented-in::c,
interface::commandline, role::program, scope::utility,
use::compressing, works-with::logfile
Section: admin
Priority: important
Filename: pool/main/l/logrotate/logrotate_3.21.0-1_amd64.deb
Size: 62108
MD5sum: ca437fbf6cd7213667aefcbd28bc2b6a
SHA256: 4e6acd31f55af85b2f12bd61a636c84e19fc1d0f419540b71bbe8aba6985aa32