Fedora Linux Support Community & Resources Center
  #1  
Old 10th June 2012, 01:01 PM
tech291083 Offline
Registered User
 
Join Date: Sep 2006
Posts: 1,046
linuxfirefox
How to check the date and time of install

I am running Fedora 16 32+ bit distro, is there any way I can know I installed it to my hard drive? I mean the date and time of install? Thanks.
__________________
fedoralinuxcommands.blogspot.com


All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo
Reply With Quote
  #2  
Old 10th June 2012, 01:07 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,847
linuxfirefox
Re: How to check the date and time of install

Not sure this would be right, but the release file (/etc/fedora-release) should be very close. As far as I know, nothing updates this file unless you upgrade to another release, in which case the date should be the new install date.
Reply With Quote
  #3  
Old 10th June 2012, 01:09 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfirefox
Re: How to check the date and time of install

well, there are various log files it creates when you do the install, and the timestamp on those files is when they were created.

look at the timestamp on these files:

/var/log/anaconda/*

/root/install.log
/root/install.log.syslog
/root/anaconda-ks.cfg

Edit:
There was an update to the /etc/fedora-release file about a month ago, so that's not a good indicator. On my system here, I installed on Feb 9, but the timestamp on the fedora-release file is May 4.

Last edited by DBelton; 10th June 2012 at 01:11 PM.
Reply With Quote
  #4  
Old 10th June 2012, 01:28 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,847
linuxfirefox
Re: How to check the date and time of install

I thought that update was for Fedora 17... Mine for F16 is Oct 25 2011 when (as I recall) I did the install.

Yet the log file for the /var/log/anaconda files are all Nov 9, 2011, which is around the time I completed tested F16 in a VM, but did not install it for use.

So it may depend on HOW you install.

BTW, within the anaconda.syslog file there is a date entry recorded during the kernel boot (the line starts "RTC time:") which at least is not dependent on the filesystem dates which can be altered by backup/restore.
Reply With Quote
  #5  
Old 10th June 2012, 01:45 PM
tech291083 Offline
Registered User
 
Join Date: Sep 2006
Posts: 1,046
linuxfirefox
Re: How to check the date and time of install

Code:
[root@localhost james]# rpm -qi fedora-release
Name        : fedora-release
Version     : 16
Release     : 1
Architecture: noarch
Install Date: Mon 12 Mar 2012 02:59:01 AM IST
Group       : System Environment/Base
Size        : 27184
License     : GPLv2
Signature   : RSA/SHA256, Tue 25 Oct 2011 06:36:36 PM IST, Key ID 067f00b6a82ba4b7
Source RPM  : fedora-release-16-1.src.rpm
Build Date  : Tue 25 Oct 2011 10:20:12 AM IST
Build Host  : x86-05.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://fedoraproject.org
Summary     : Fedora release files
Description :
Fedora release files such as yum configs and various /etc/ files that
define the release.
Quote:
Install Date: Mon 12 Mar 2012 02:59:01 AM IST
Have I got it what I wanted here? Not sure, thanks.
__________________
fedoralinuxcommands.blogspot.com


All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo
Reply With Quote
  #6  
Old 10th June 2012, 01:51 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfirefox
Re: How to check the date and time of install

Yes, it probably does depend on how you install. A LiveCD copies the filesystem over, so file timestamps would probably be useless (except for a few files it would have to create)

The RTC time you mentioned in /var/log/anaconda/anaconda.syslog or the timestamps in the /var/log/anaconda/anaconda.yum.log files would probably be the most accurate way to determine install time.

Edit:

Yes, that date you got is probably when you did the install since fedora-release hasn't been updated in F16, so the install date for that package would be when you did your initial install. However, you may not be able to always use that (as we have shown above) as that package can and will be updated (it just doesn't happen often)

Last edited by DBelton; 10th June 2012 at 01:56 PM.
Reply With Quote
  #7  
Old 10th June 2012, 05:49 PM
tech291083 Offline
Registered User
 
Join Date: Sep 2006
Posts: 1,046
linuxfirefox
Re: How to check the date and time of install

Quote:
Originally Posted by DBelton View Post

Yes, that date you got is probably when you did the install since fedora-release hasn't been updated in F16, so the install date for that package would be when you did your initial install. However, you may not be able to always use that (as we have shown above) as that package can and will be updated (it just doesn't happen often)
This is a really interesting point. I never had an inkling that this date could not be the exact install date. But there must be some other way to know as to when the installation of Fedora was actually done, particularly on a clean hard drive. Thanks
__________________
fedoralinuxcommands.blogspot.com


All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo
Reply With Quote
  #8  
Old 10th June 2012, 05:58 PM
nonamedotc Offline
Community Manager
 
Join Date: Mar 2011
Location: USA
Posts: 3,771
linuxfirefox
Re: How to check the date and time of install

I have doubts about that date. This is what I get

Quote:
Install Date: Mon 28 May 2012 04:16:56 PM CDT
I actually did the day before (about at least 1 day earlier). I did the installation on a Sunday! I do not know why the time stamp has changed though (I mean, did not notice if there was an update).
Reply With Quote
  #9  
Old 10th June 2012, 11:00 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfirefox
Re: How to check the date and time of install

Quote:
Originally Posted by nonamedotc View Post
I have doubts about that date. This is what I get



I actually did the day before (about at least 1 day earlier). I did the installation on a Sunday! I do not know why the time stamp has changed though (I mean, did not notice if there was an update).
Are you running F17? If so, then there was an update to the fedora-release package in May. The updated package probably wasn't on the install media you used, and you updated when you did your first update after install.


tech291083:

There is a way, look in the messages above.

Quick way is to look in the /var/log/anaconda/anaconda.yum.log file and it will give you the date/time that yum ran during the anaconda installation.
Reply With Quote
  #10  
Old 11th June 2012, 04:35 PM
tech291083 Offline
Registered User
 
Join Date: Sep 2006
Posts: 1,046
linuxfirefox
Re: How to check the date and time of install

Ok friends,

This is what I have tried in a terminal as root after reading your replies.

Code:
[root@localhost james]#  ls /var/log/anaconda/
anaconda.ifcfg.log  anaconda.program.log  anaconda.syslog  anaconda.yum.log
anaconda.log        anaconda.storage.log  anaconda.xlog
[root@localhost james]# 
[root@localhost james]# cat /var/log/anaconda/anaconda.ifcfg.log |grep -i rtc
[root@localhost james]# 
[root@localhost james]# cat /var/log/anaconda/anaconda.program.log |grep -i rtc
[root@localhost james]# 
[root@localhost james]# cat /var/log/anaconda/anaconda.syslog |grep -i rtc
21:24:37,549 INFO kernel:[    0.089258] RTC time: 21:24:33, date: 03/11/12
21:24:37,558 INFO kernel:[    1.235674] rtc_cmos 00:04: RTC can wake from S4
21:24:37,558 INFO kernel:[    1.235767] rtc_cmos 00:04: rtc core: registered rtc_cmos as rtc0
21:24:37,558 INFO kernel:[    1.235788] rtc0: alarms up to one month, 242 bytes nvram, hpet irqs
21:24:37,558 INFO kernel:[    1.236698] Using IPI No-Shortcut mode
21:24:37,558 INFO kernel:[    1.242659] rtc_cmos 00:04: setting system clock to 2012-03-11 21:24:34 UTC (1331501074)
[root@localhost james]# 
[root@localhost james]# cat /var/log/anaconda/anaconda.yum.log |grep -i rtc
[root@localhost james]# 
[root@localhost james]# cat /var/log/anaconda/anaconda.log |grep -i rtc
[root@localhost james]# 
[root@localhost james]# cat /var/log/anaconda/anaconda.storage.log |grep -i rtc 
[root@localhost james]# 
[root@localhost james]# cat /var/log/anaconda/anaconda.xlog |grep -i rtc
[root@localhost james]#
Thanks.

---------- Post added at 08:35 AM ---------- Previous post was at 08:30 AM ----------

Quote:
Originally Posted by DBelton View Post
Quick way is to look in the /var/log/anaconda/anaconda.yum.log file and it will give you the date/time that yum ran during the anaconda installation.
Ok, I did the following,

Code:
[root@localhost bhavin]# cat /var/log/anaconda/anaconda.yum.log


[2012-03-12 02:56:07,496] DEBUG   : Quick matched festival-speechtools-libs-1.2.96-18.fc16.i686 to require for libestbase.so.1.2.96.1
[2012-03-12 02:56:07,498] DEBUG   : TSINFO: Marking festival-lib-1.96-18.fc16.i686 as install for festival-1.96-18.fc16.i686
[2012-03-12 02:56:07,502] DEBUG   : TSINFO: Marking libquadmath-4.6.2-1.fc16.i686 as install for fftw-libs-3.3-3.fc16.i686
[2012-03-12 02:56:07,503] DEBUG   : Quick matched libquadmath-4.6.2-1.fc16.i686 to require for libquadmath.so.0
[2012-03-12 02:56:07,546] DEBUG   : TSINFO: Marking cryptopp-5.6.1-5.fc16.i686 as install for pycryptopp-0.5.29-1.fc15.i686
[2012-03-12 02:56:07,552] DEBUG   : TSINFO: Marking yajl-1.0.12-1.fc16.i686 as install for raptor2-2.0.4-2.fc16.i686
[2012-03-12 02:56:07,562] DEBUG   : TSINFO: Marking verne-backgrounds-single-15.92.1-1.fc16.noarch as install for verne-backgrounds-gnome-15.92.1-1.fc16.noarch
[2012-03-12 02:56:07,743] DEBUG   : Depsolve time: 5.247
[2012-03-12 03:12:56,429] DEBUG   : VerifyTransaction time: 1.636
As you know the text/contents are too long to be displayed in a terminal, so I have copies only the last few lines. So should I take 2012-03-12 as the date of install? Thanks.

How do I scroll up and down a terminal window where there is too much text?
Thanks.
__________________
fedoralinuxcommands.blogspot.com


All the forces in the world are not so powerful as an idea whose time has come - Victor Hugo

Last edited by tech291083; 11th June 2012 at 04:40 PM.
Reply With Quote
Reply

Tags
check, date, install, time

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The system date and time is changing automatically, even after I set the correct time siva Using Fedora 8 31st July 2010 03:07 PM
Broke Time/Date applet (can't change time) ZystemsK Using Fedora 8 3rd October 2008 01:42 AM
GUI Date and Time(NTP Tab) northcornice Using Fedora 2 7th October 2007 12:20 AM
Time Date ? fedorabobblue Using Fedora 3 14th March 2006 11:29 AM


Current GMT-time: 09:26 (Monday, 15-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat