How to Install and Uninstall logrotate Package on Debian 11 (Bullseye)

Last updated: May 19,2024

1. Install "logrotate" package

This guide let you learn how to install logrotate on Debian 11 (Bullseye)

$ sudo apt update $ sudo apt install logrotate

2. Uninstall "logrotate" package

Please follow the guidance below to uninstall logrotate on Debian 11 (Bullseye):

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

3. Information about the logrotate package on Debian 11 (Bullseye)

Package: logrotate
Version: 3.18.0-2+deb11u1
Installed-Size: 170
Maintainer: Christian Göttsche
Architecture: amd64
Depends: cron | anacron | cron-daemon | systemd-sysv, libacl1 (>= 2.2.23), libc6 (>= 2.27), libpopt0 (>= 1.14), libselinux1 (>= 3.1~)
Recommends: 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.18.0-2+deb11u1_amd64.deb
Size: 72708
MD5sum: 3f25141bf619ae0cd65eff30df1ec113
SHA256: fd83e506e97fb2178ca49d7858af3a52449fce2b11b99760315fa36f96a4a7b3