/etc/aptitude-robot/triggers.post/90-cleanup.example is in aptitude-robot 1.5.2-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | #!/bin/sh
echo '----- 90-cleanup: package cache and config file cleanup'
# Purge all packages that have been removed. In a managed environment we do
# not want to carry around obsolete config files.
#
aptitude -y -q purge '~c'
apt-get clean
dpkg --clear-avail
|