Linux Debian support - Listing packages installed in the past 72 hours ?

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > December 2004 > Listing packages installed in the past 72 hours ?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Listing packages installed in the past 72 hours ?
Madhusudan Singh

2004-12-08, 5:45 pm

Hi

I suspect that one of the packages I installed in the past 72 hours is
responsible for some of the performance problems that have cropped up.

How do I use the apt mechanism to list those packages ?

Thanks.
Neil Woods

2004-12-09, 2:45 am

On Wed, Dec 08 2004, Madhusudan Singh wrote:
> Hi
>
> I suspect that one of the packages I installed in the past 72 hours is
> responsible for some of the performance problems that have cropped up.
>
> How do I use the apt mechanism to list those packages ?


I'm not sure you can use apt for this. If you have dpkg-www installed,
you can simply enter "recent=3" into the web form on
<http://localhost/cgi-bin/dpkg>.

Or you could use a find command on the directory /var/lib/dpkg/info,
such as:

$ find /var/lib/dpkg/info/ -daystart \( -name \*.list -a -mtime -3 \) | \
sed 's#.list$##;s#.*/##' | sort

adjusting the argument to -mtime accordingly.

> Thanks.


--
Neil
ANTant@zimage.com

2004-12-09, 8:45 pm

Neil Woods <cnw+usenet@pobox.com> wrote:
> On Wed, Dec 08 2004, Madhusudan Singh wrote:
[vbcol=seagreen]
> I'm not sure you can use apt for this. If you have dpkg-www installed,
> you can simply enter "recent=3" into the web form on
> <http://localhost/cgi-bin/dpkg>.


> Or you could use a find command on the directory /var/lib/dpkg/info,
> such as:


> $ find /var/lib/dpkg/info/ -daystart \( -name \*.list -a -mtime -3 \) | \
> sed 's#.list$##;s#.*/##' | sort


> adjusting the argument to -mtime accordingly.


I would also like to know this too, but it doesn't seem to work for me:

$ find /var/lib/dpkg/info/ -daystart \( -name \*.list -a -mtime -3 \) | \ sed 's#.list$##;s#.*/##' | sort
-bash: sed: command not found

$ sed
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

Did I mess up?
--
"At high tide the fish eat ants; at low tide the ants eat fish." --Thai Proverb
/\___/\
/ /\ /\ \ Ant @ The Ant Farm: http://antfarm.ma.cx
| |o o| | Ant's Quality Foraged Links: http://aqfl.net
\ _ / Please remove ANT if replying by e-mail.
( )
Neil Woods

2004-12-10, 2:45 am

On Fri, Dec 10 2004, ANTant@zimage.com wrote:
> Neil Woods <cnw+usenet@pobox.com> wrote:
>
>
>
>
>
> I would also like to know this too, but it doesn't seem to work for
> me:
>
> $ find /var/lib/dpkg/info/ -daystart \( -name \*.list -a -mtime -3 \)
> | \ sed 's#.list$##;s#.*/##' | sort
> -bash: sed: command not found
>
> $ sed Usage: sed [OPTION]... {script-only-if-no-other-script}
> [input-file]...


Take out the backslash immediatly before the sed command and it should
work. The '' at the end of the line above quotes the newline, and is
not needed if you write the command on one line.
--
Neil
Bill Marcum

2004-12-10, 7:45 am

On Thu, 09 Dec 2004 19:16:45 -0600, ANTant@zimage.com
<ANTant@zimage.com> wrote:
> Neil Woods <cnw+usenet@pobox.com> wrote:
>
>
>
>
>
> I would also like to know this too, but it doesn't seem to work for me:
>
> $ find /var/lib/dpkg/info/ -daystart \( -name \*.list -a -mtime -3 \) | \ sed 's#.list$##;s#.*/##' | sort
> -bash: sed: command not found
>
> $ sed
> Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...
>
> Did I mess up?


You changed the line wrapping, from \
sed
to \ sed. There is no such command as " sed".


--
Programming Department:
Mistakes made while you wait.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com