How to Install and Uninstall logrotate Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: May 12,2024

1. Install "logrotate" package

This is a short guide on how to install logrotate on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install logrotate

2. Uninstall "logrotate" package

This tutorial shows how to uninstall logrotate on Ubuntu 20.04 LTS (Focal Fossa):

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

3. Information about the logrotate package on Ubuntu 20.04 LTS (Focal Fossa)

Package: logrotate
Architecture: amd64
Version: 3.14.0-4ubuntu3
Multi-Arch: foreign
Priority: important
Section: admin
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Christian Göttsche
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 143
Depends: libacl1 (>= 2.2.51-8), libc6 (>= 2.27), libpopt0 (>= 1.14), libselinux1 (>= 1.32), cron | anacron | cron-daemon | systemd-sysv
Suggests: bsd-mailx | mailx
Breaks: postgresql-common (<= 126)
Filename: pool/main/l/logrotate/logrotate_3.14.0-4ubuntu3_amd64.deb
Size: 44536
MD5sum: 98571b36669cfcf009ac802c0bd3cfd1
SHA1: 86f840fbc88512085cefdd7de9174aafbe4e2a49
SHA256: ba2b0ec4c730524deede0ff929fa66283f4bf6d76ea1de9d8fc48fa17a2309f4
Homepage: https://github.com/logrotate/logrotate
Description: Log rotation utility
Description-md5: bb73169bb75b2b8a2fda1453d214416d
Task: minimal