Ask Your Question
0

Get system installation date

asked 2012-04-04 06:49:13 -0500

ztank1013 gravatar image

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?

edit retag flag offensive close merge delete

5 Answers

Sort by » oldest newest most voted
1

answered 2012-04-04 08:13:01 -0500

lanmaster82 gravatar image

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.

edit flag offensive delete link more
1

answered 2012-04-04 09:04:17 -0500

lanmaster82 gravatar image

Here is another method, but this is assuming you formatted the disk when you installed:

dumpe2fs /dev/sda1 | grep 'Filesystem created:'

edit flag offensive delete link more
1

answered 2012-04-04 08:30:27 -0500

skytux gravatar image

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.

edit flag offensive delete link more

Comments

Ahh ok... I don't know how it was created...

skytux gravatar imageskytux ( 2012-04-04 08:56:42 -0500 )edit
0

answered 2015-08-06 06:31:26 -0500

zdenek gravatar image

I found that someone checks 'lost+found' directory created during OS installation

ls -ld /lost+found

edit flag offensive delete link more

Comments

Anyway, there is date difference between this check and the other ones below:

1) Checking ls -ld /lost+found gave me Jan 9 2013 2) Checking dumpe2fs /dev/sda1 | grep 'Filesystem created:' gave me Jun 8 2013 3) Checking rpm -qi basesystem gave me 13 Dec 2014

zdenek gravatar imagezdenek ( 2015-08-06 06:38:45 -0500 )edit
0

answered 2012-04-04 07:44:21 -0500

lanmaster82 gravatar image

updated 2012-04-04 07:44:44 -0500

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.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-04-04 06:49:13 -0500

Seen: 1,893 times

Last updated: Apr 04 '12