LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-11-2009, 07:34 PM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 49
dpkg package install


Alright somebody gotta know this.

Say if I want to list all the packages that were installed in last X ( X can be 5, 10, 13 or 15) days, how can I do that?

Also how about if I want to know the last 10 packages that I have installed on my system?
 
Old 06-11-2009, 09:19 PM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,885
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Take a look at /var/log/dpkg.log a bit of a pain to look through but the info is there.
 
Old 06-12-2009, 01:47 AM   #3
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by craigevil View Post
Take a look at /var/log/dpkg.log a bit of a pain to look through but the info is there.
Hmm that's what my guess was and hence the question. Would be nice if there was a command line option in dpkg or apt-get command to get that info.

Last edited by kushalkoolwal; 06-12-2009 at 01:49 AM.
 
Old 06-12-2009, 03:31 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# cat /var/log/dpkg.log | grep "\ installed\ "

The file with the latest packages, installed is /var/log/dpkg.log
The next file in the 'history' is 'dpkg.log1'

And further back the files are e.g. 'dpkg.log.2.gz' and readable
with : # zcat /var/log/dpkg.log.2.gz | grep "\ installed\ "

.....
 
Old 06-12-2009, 10:14 AM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Logwatch supports parsing dpkg.log and you can select ranges of dates.. the documentation is a bit thin though..
 
Old 06-12-2009, 03:28 PM   #6
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
ls -tl /var/lib/dpkg/info/ | less
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to install new package-updates... missing /info folder from /var/lib/dpkg/ bradb-acc Ubuntu 4 07-15-2008 02:24 AM
dpkg --set-selection package install status question kushalkoolwal Debian 2 06-19-2008 02:19 PM
Using Java to install a package with dpkg in Debian basis1980 Linux - Newbie 4 12-06-2007 02:45 AM
dpkg wont install gmail-notify b/c depends on obselete python package baldy1324 Debian 3 08-11-2006 04:56 PM
how to manually install a package when dpkg, apt-get are broken and system wont boot. hisnumber666 Linux - Software 17 05-02-2006 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration