#include <hallo.h> * Nico Golde [Sat, Jul 09 2005, 12:06:54PM]: > But for example: > apt-history show install > 2005-07-09 00:12:03: install libstdc++6-4.0-dev > 4.0.0-12 > 2005-07-09 00:12:03: install libaa1 > 1.4p5-28 > 2005-07-09 00:12:03: install libstdc++6 > 4.0.0-12 > 2005-07-09 00:12:03: install g++-4.0 > 4.0.0-12 > 2005-07-09 00:12:03: install gcc-4.0 > 4.0.0-12 > 2005-07-09 00:12:03: install cpp-4.0 > 4.0.0-12 > 2005-07-09 10:00:09: install fireflies 2.05-1 > 2005-07-09 10:00:09: install aptitude > 0.2.15.9-3 > 2005-07-09 10:02:28: install libgtop2-5 > 2.10.2-1 > 2005-07-09 10:03:13: install apt-listchanges > 2.59-0.2 > [EMAIL PROTECTED]:/home/nion$ grep install /var/log/dpkg.log | tail > 2005-07-09 12:02:20 install libgtop2-5 <keine> 2.10.2-1 > 2005-07-09 12:02:20 status half-installed libgtop2-5 2.10.2-1 > 2005-07-09 12:02:26 status installed libgtop2-5 2.10.2-1 > 2005-07-09 12:02:28 status installed slmon 0.5.13-2 > 2005-07-09 12:03:07 install apt-listchanges 2.59-0.2 2.59-0.2 > 2005-07-09 12:03:07 status half-installed apt-listchanges 2.59-0.2 > 2005-07-09 12:03:12 status installed apt-listchanges 2.59-0.2 > 2005-07-09 12:04:00 status installed plotutils 2.4.1-12 > 2005-07-09 12:04:02 status half-installed plotutils 2.4.1-12 > 2005-07-09 12:04:02 status not-installed plotutils <keine>
Sounds like an arbitrary constructed example for me and the opposite (of whatever you tried to demonstrate) can be prooved by using a correct regexp, eg. grep " install " /var/log/dpkg.log | tail 2005-07-04 20:43:33 install libslang2-dev <keine> 2.0.4-2 2005-07-04 23:51:22 install libneon25 <keine> 0.25.1.dfsg-1 2005-07-06 19:52:33 install gcc-4.0 <keine> 4.0.0-12 2005-07-06 19:52:34 install libstdc++6-4.0-dev <keine> 4.0.0-12 2005-07-06 19:52:35 install g++-4.0 <keine> 4.0.0-12 2005-07-07 20:19:35 install python2.3-elementtree <keine> 1.2.6-3 2005-07-07 20:19:35 install bzr <keine> 0.0.5-2.1 2005-07-07 21:10:16 install scsi-idle <keine> 2.4.23-5 2005-07-08 20:57:42 install ethereal <keine> 0.10.11-1 2005-07-09 09:36:19 install libaa1 <keine> 1.4p5-28 > I think there is apt-history a better way. For doing what exactly? > No it isn't a wrapper around the dpkg.log it only uses /var/lib/dpkg/status > regards Nico No, it is an overengineered solution which reads the whole dpkg database for no real benefit. Regards, Eduard. -- Teamwork ist, wenn fünf Leute für etwas bezahlt werden, was vier billiger tun können, wenn sie nur zu dritt wären und zwei davon verhindert. -- Charles Saunders
signature.asc
Description: Digital signature