Will Trillich wrote:

On Mon, Jun 21 at 12:09PM -0500, Rob Benton wrote:


Recently I ran into a problem on my machine at home. I had
made an update of several packages and something went wrong.
What I need is a way to query all installed packages by their
install date. I couldn't find any existing tools like
dselect, synaptic, or aptitude that would let me do this. The
only thing I can think of is writing a perl script using the
output of `dpkg -s` on every installed package. This would
take a long time for sure. I didn't see any packages or docs
on functions used inside dpkg. Is there another way to do
this b/c I don't want to re-invent the wheel.



hmm.

        $ dpkg -s apache-perl
        Package: apache-perl
        Status: install ok installed
        Priority: extra
        Section: web
        Installed-Size: 584
        Maintainer: Daniel Jacobowitz <[EMAIL PROTECTED]>
        Version: 1.3.26-1-1.26-0woody2
        Provides: httpd
        Depends: libc6 (>= 2.2.4-4), libdb2 (>= 2:2.7.7.0-7), libperl5.6 (>= 5.6.1-7), mime-support, 
apache-common (>= 1.3.26), apache-common (<< 1.3.27), libapache-mod-perl (>= 1.26), libapache-mod-perl 
(<< 1.27), debconf, dpkg (>> 1.9.0)
        Recommends: apache
        Conffiles:
         /etc/init.d/apache-perl b3b9823d1e0348bfa7a91d0a5c18af65
         /etc/cron.daily/apache-perl 2486e8768557a71272a07a4df1461775
         /etc/apache-perl/cron.conf 2a02b56717b0f3a3d3566344d8c37b48
        Description: Versatile, high-performance HTTP server with
         <yada yada>

i see installed-size, status: installed... but no
installed-time...

if there were one, hobbling a perl script to parse it would be
reasonably trivial (except for parsing date strings, and there's
libraries to help with that).



Yeah I noticed that, too. I think this may be difficult to tackle. The only thing I could think of would be to write a script in /etc/apt/apt.conf similar to localepurge that just writes to a logfile every time you install a package.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Reply via email to