Par défaut, aptitude
écrit dans un fichier journal /var/log/aptitude
. Il produit un résultat comme celui-ci :
===============================================================================
Aptitude 0.8.12: log report
Sun, Oct 1 2021 23:59:59 +1300
IMPORTANT: this log only lists intended actions; actions which fail
due to dpkg problems may not be completed.
Will install 6 packages, and remove 0 packages.
31.3 MB of disk space will be used
========================================
[UPGRADE] libc-dev-bin:amd64 2.31-0ubuntu9 -> 2.31-0ubuntu9.2
[UPGRADE] libc6:amd64 2.31-0ubuntu9 -> 2.31-0ubuntu9.2
[UPGRADE] libc6:i386 2.31-0ubuntu9 -> 2.31-0ubuntu9.2
[UPGRADE] libc6-dbg:amd64 2.31-0ubuntu9 -> 2.31-0ubuntu9.2
[UPGRADE] libc6-dev:amd64 2.31-0ubuntu9 -> 2.31-0ubuntu9.2
[UPGRADE] libc6-i386:amd64 2.31-0ubuntu9 -> 2.31-0ubuntu9.2
========================================
Log complete.
===============================================================================
Cela montre la date exacte et les paquets qu'aptitude a installés. Pour configurer ceci (dans /etc/apt/apt.conf
ou dans un fichier séparé dans /etc/apt/apt.conf.d/
), suivez les Référence du fichier de configuration dans le manuel d'aptitude (également disponible à partir de "Aide > Manuel de l'utilisateur" dans le menu) :
Option:Aptitude::Log
Default:/var/log/aptitude
Description: If this is set to a nonempty string, aptitude will log the package
installations, removals, and upgrades that it performs. If the value of
Aptitude::Log begins with a pipe character (ie, ``|''), the remainder of its
value is used as the name of a command into which the log will be piped: for
instance, |mail -s 'Aptitude install run' root will cause the log to be emailed
to root. To log to multiple files or commands, you may set this option to a list
of log targets.