LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-08-2010, 03:19 AM   #1
ravedog
Member
 
Registered: Jun 2009
Distribution: Ubuntu, Sabayon
Posts: 38

Rep: Reputation: 0
Is there a way to see when a package (.deb) was installed?


Hi!

Besides to check the timestamp on a file, is there a way to see when a package was installed (ubuntu system), and if it updated a existing package, what files did it overwrite?

Ps. Not much info at all in my dpkg.log (empty) and my dpkg.log.1 (older than the last update it appears). Ds.

Ty in advance!

/Ravee
 
Old 06-08-2010, 05:44 AM   #2
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
The command :
ls -tl /var/lib/dpkg/info | grep list > last-packages.txt

.. will save a text list with package names and the install time.
With the latest installed packages at the top of the list.


The command : dpkg -L <package-name>
.. shows all the installed files.
..

Last edited by knudfl; 06-10-2010 at 03:11 AM. Reason: Typo
 
1 members found this post helpful.
Old 06-09-2010, 01:45 PM   #3
ravedog
Member
 
Registered: Jun 2009
Distribution: Ubuntu, Sabayon
Posts: 38

Original Poster
Rep: Reputation: 0
Fantastic! Cheers m8!

br,

Ravee
 
Old 06-09-2010, 02:04 PM   #4
jim_d
Member
 
Registered: May 2010
Posts: 50

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
The command :
list -tl /var/lib/dpkg/info | grep list > last-packages.txt

.. will save a text list with package names and the install time.
With the latest installed packages at the top of the list.
..
knudfl, when I use the above command in Ubuntu 10.04, I get:

~$ list -tl /var/lib/dpkg/info | grep list > last-packages.txt
No command 'list' found, did you mean:
Command 'dist' from package 'nmh' (universe)
Command 'slist' from package 'ncpfs' (universe)
Command 'klist' from package 'heimdal-clients' (universe)
Command 'klist' from package 'krb5-user' (main)
Command 'listg' from package 'nauty' (multiverse)
Command 'hist' from package 'loki' (universe)
Command 'flist' from package 'nmh' (universe)
Command 'last' from package 'sysvinit-utils' (main)
Command 'gist' from package 'yorick' (universe)
Command 'bist' from package 'bist' (universe)
list: command not found

Am I doing something incorrectly?
 
Old 06-09-2010, 04:15 PM   #5
Revery
LQ Newbie
 
Registered: Jun 2010
Posts: 4

Rep: Reputation: 1
Additionally the package manager (Synaptic Package Manager) has a history view of packages, it's just not very obvious.
Go to File->History. Then you can use the find feature in the popup window to search through histories of specific installed packages, or browse the whole history.
 
Old 06-10-2010, 03:10 AM   #6
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
@ jim_d , post # 4 : Sorry , typo.

It is of course : ls -tl

..
 
Old 06-10-2010, 03:50 PM   #7
jim_d
Member
 
Registered: May 2010
Posts: 50

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
@ jim_d , post # 4 : Sorry , typo.
It is of course : ls -tl
..
No prob--thx for clarifying, knudfl--
 
  


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
Will 'aptitude upgrade or dist-upgrade' downgrade manually installed deb package? Akhran Debian 3 03-14-2006 02:40 PM
"Repair permissions" - installed .deb package achallenger1 Debian 3 08-21-2005 03:49 PM
the last installed deb package, how ? ag2uki Debian 7 08-15-2005 07:44 AM
how can I create a .deb from an installed package? monkeyman2000 Debian 5 06-16-2005 07:56 PM
RPM package manager says package needs to be installed. But I already installed it! nick623 Linux - Software 2 05-24-2005 02:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:48 AM.

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