Get system installation date
Is there a place/file in the system where the installation date or at least the first boot ever is recorded? if yes is it always reliable?
Is there a place/file in the system where the installation date or at least the first boot ever is recorded? if yes is it always reliable?
Supposedly you can also get the installation date from the creation date of the install.log file in /root
I also just checked that on 2 other Fedora boxes I have and it is accurate.
Here is another method, but this is assuming you formatted the disk when you installed:
dumpe2fs /dev/sda1 | grep 'Filesystem created:'
I have the following file:
/root/install.log.syslog
whose content is:
Jun 10 21:09:13 sysimage nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/00-netreport' exited with error status 1.
Jun 10 21:14:20 sysimage groupadd[2692]: group added to /etc/group: name=utmp, GID=22
Jun 10 21:14:20 sysimage groupadd[2692]: group added to /etc/gshadow: name=utmp
Jun 10 21:14:20 sysimage groupadd[2692]: new group: name=utmp, GID=22
Jun 10 21:14:20 sysimage groupadd[2696]: group added to /etc/group: name=utempter, GID=35
Jun 10 21:14:20 sysimage groupadd[2696]: group added to /etc/gshadow: name=utempter
......
Does it help?
Germán.
I found that someone checks 'lost+found' directory created during OS installation
ls -ld /lost+found
This will usually do the trick: rpm -qi basesystem
Here is what the results look like:
Name : basesystem Version : 10.0 Release : 5.fc16 Architecture: noarch Install Date: Wed 21 Mar 2012 01:21:36 PM EDT Group : System Environment/Base Size : 0 License : Public Domain Signature : RSA/SHA256, Wed 27 Jul 2011 07:20:14 PM EDT, Key ID 067f00b6a82ba4b7 Source RPM : basesystem-10.0-5.fc16.src.rpm Build Date : Thu 23 Jun 2011 04:31:58 PM EDT Build Host : x86-09.phx2.fedoraproject.org Relocations : (not relocatable) Packager : Fedora Project Vendor : Fedora Project Summary : The skeleton package which defines a simple Fedora system Description : Basesystem defines the components of a basic Fedora system (for example, the package installation order to use during bootstrapping). Basesystem should be in every installation of a system, and it should never be removed.
Asked: 2012-04-04 06:49:13 -0600
Seen: 1,892 times
Last updated: Apr 04 '12