[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#134694: apt: [wish] Default logging of apt actions to /var/log/something



Package: apt
Version: 0.5.4
Severity: wishlist

No log is recorded of the actions (installing, removing, etc...) carried out by apt-get. This is annoying when one wants to undo an install request, because you don't necessarily exactly remember which extra packages were installed along the main requested one.

I'm using the following (quite primitive) wrapper script in /root/bin as a workaround, but it would be nice if that capacity could be directly included in apt.

My script:
---------

#!/bin/sh

export LOG_FILE=/var/log/apt-get.log

echo Logging Wrapper for apt-get [ftaiani 2002-02-19]
echo Output is logged to $LOG_FILE

(echo ; date ; echo $0 $* ; echo ) >> /var/log/apt-get.log

/usr/bin/apt-get $* | tee -a /var/log/apt-get.log
   

-- System Information
Debian Release: 3.0
Architecture: powerpc
Kernel: Linux tsfft 2.2.19 #1 Sat Apr 14 23:20:24 CDT 2001 ppc
Locale: LANG=C, LC_CTYPE=fr_FR.ISO-8859-1

Versions of packages apt depends on:
ii  libc6                         2.2.5-1    GNU C Library: Shared libraries an
ii  libstdc++2.10-glibc2.2        1:2.95.4-2 The GNU stdc++ library




Reply to: