LinuxQuestions.org
Help answer threads with 0 replies.
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 12-13-2010, 06:07 AM   #1
s2sum2b
LQ Newbie
 
Registered: Dec 2010
Posts: 6

Rep: Reputation: 0
Post checking installation time of a software


Hi everyone,
I have installed thunderbird sometime back on Ubuntu.
I want to know the date and time of installation.
How can i get this information.
I tried "stat thunderbird", but it did not give the installation time
Any help will be appreciated.
 
Old 12-13-2010, 06:32 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Hi and welcome to LinuxQuestions! Sincerely I don't know if there is some option of dpkg to retrieve the installation date, but you can try to look at /var/log/dpkg.log.
 
Old 12-13-2010, 06:49 AM   #3
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 for a list with an install date for all packages :

ls -l /var/lib/dpkg/info | grep list > list-packages.txt
( An alphabetic list.)


A list in install order (the last installed package in line 1)
ls -tl /var/lib/dpkg/info | grep list > last-packages.txt


EDIT : typo edited.
..

Last edited by knudfl; 12-14-2010 at 01:51 AM. Reason: typo edited
 
Old 12-13-2010, 10:50 AM   #4
s2sum2b
LQ Newbie
 
Registered: Dec 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Post contd...

Quote:
Originally Posted by knudfl View Post
The command for a list with an install date for all packages :

ls -l /var/lib/dpkg/lib/info | grep list > list-packages.txt
( An alphabetic list.)


A list in install order (the last installed package in line 1)
ls -tl /var/lib/dpkg/lib/info | grep list > last-packages.txt

..

thanks for the reply
There is no directory called /var/lib/dpkg/lib in my system. But there is file called /var/lib/dpkg/info, which has
the following information.

-rw-r--r-- 1 root root 15K 2010-12-11 11:28 thunderbird.list
-rw-r--r-- 1 root root 925 2010-12-11 11:28 thunderbird-locale-en-gb.list

Here the date shown is 11 december, which probably the date, when last update of thunderbird happened.
Coz, I am pretty sure that the first installation took place at least a month ago, and which is what i want.

Last edited by s2sum2b; 12-13-2010 at 10:51 AM.
 
Old 12-14-2010, 01:50 AM   #5
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
Sorry for the typo ....

ls -l /var/lib/dpkg/info | grep thunderbird

... and you will see, that 'info' only saves the latest install / update.


If you want backups of install times :
I guess you will have to run this frequently ( and save the files )
ls -l /var/lib/dpkg/info > installed`date '+%Y-%m-%d'`.txt

EDIT : Please see post #6. (I totally forgot /var/log/dpkg.log )
..

Last edited by knudfl; 12-16-2010 at 03:45 AM.
 
Old 12-14-2010, 02:25 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
In alternative:
Code:
zgrep installed /var/log/dpkg.log* | grep thunderbird
 
Old 12-14-2010, 06:25 AM   #7
s2sum2b
LQ Newbie
 
Registered: Dec 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by colucix View Post
In alternative:
Code:
zgrep installed /var/log/dpkg.log* | grep thunderbird
this worked.
Thanks a lot colucix and also knudfl

Last edited by s2sum2b; 12-14-2010 at 07:13 AM. Reason: missing acknowledgement
 
  


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
Checking os and process state at run time. sanjeebkdeka Programming 4 05-11-2010 03:32 AM
Checking operating system at run time. sanjeebkdeka AIX 1 05-11-2010 01:57 AM
[SOLVED] Real time network checking on application ? Kraiser10 Linux - Software 3 04-18-2010 09:36 AM
Checking when system time was changed last time pgb205 Red Hat 1 03-05-2010 01:31 PM
LXer: Checking In On Ubuntu Karmic's Boot Time LXer Syndicated Linux News 0 08-27-2009 10:20 AM

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

All times are GMT -5. The time now is 05:19 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