hi list, is there a command to find out the date & time that centos installed?
thanks T. Hiep
On Friday 15 June 2007 12:55, Hiep Nguyen wrote:
hi list, is there a command to find out the date & time that centos installed?
One way would be to check the creation time of the install.log or upgrade.log in /root (providing you haven't deleted them).
ls -lc --time-style=full-iso /root/*.log
On Fri, 15 Jun 2007, centos.users@digitalmedia.newsquest.co.uk wrote:
On Friday 15 June 2007 12:55, Hiep Nguyen wrote:
hi list, is there a command to find out the date & time that centos installed?
One way would be to check the creation time of the install.log or upgrade.log in /root (providing you haven't deleted them).
ls -lc --time-style=full-iso /root/*.log
That's as good a way as any. You might try verifying that by checking the change times of, say, the five oldest Texinfo pages on your system:
stat -c "%z" /usr/share/info/* | sort -nr | tail -n 5
If those dates agree with the ones for /root/*log and /root/anaconda*, then that's a pretty good candidate.
Hiep Nguyen wrote:
hi list, is there a command to find out the date & time that centos installed?
thanks T. Hiep
$ rpm -qi centos-release Name : centos-release Relocations: (not relocatable) Version : 5 Vendor: CentOS Release : 0.0.el5.centos.2 Build Date: Sun 08 Apr 2007 02:22:04 PM CDT Install Date: Thu 19 Apr 2007 03:04:00 PM CDT Build Host: builder6 Group : System Environment/Base Source RPM: centos-release-5-0.0.el5.centos.2.src.rpm Size : 35601 License: GPL Signature : DSA/SHA1, Sun 08 Apr 2007 02:33:45 PM CDT, Key ID a8a447dce8562897 Summary : CentOS release file Description : CentOS release files
On 6/15/07, Hiep Nguyen hiep@ee.ucr.edu wrote:
hi list, is there a command to find out the date & time that centos installed?
rpm -qa --last | tail -n 1
This will give you the first package installed and the time it was installed, which should be the date the system was stood up.
On Fri, 15 Jun 2007, Jim Perrin wrote:
On 6/15/07, Hiep Nguyen hiep@ee.ucr.edu wrote:
hi list, is there a command to find out the date & time that centos installed?
rpm -qa --last | tail -n 1
This will give you the first package installed and the time it was installed, which should be the date the system was stood up.
The options for my 4.4 install listed the package, but no date/time stamp.
rpm -qi centos-release showed dates well beyond when I knew I installed the system.
I performed a check of /boot and discovered memtest86+-1.70 with a date most likely when the system truly installed.
I'm looking forward to other responses. A good question!
Scott
Scott Ehrlich wrote:
On Fri, 15 Jun 2007, Jim Perrin wrote:
rpm -qi centos-release showed dates well beyond when I knew I installed the system.
Probably because you "installed" Centos 4.4 as an upgrade. The install timestamp for centos-release would be the time of the upgrade, not the time of the installation of whatever was there before.