0

Please advice – how to verify OS (linux / solaris ) installation creation date

which file/packages/other – can be good indication when the operation system was created/installed ?

For example

I installed the linux 5.5 in date 23/10/2012 , How to verify in my linux this date ? ( the same question about solaris 10 )

  • do you mean RedHat Enterprise Linux 5.5 ? – LiuYan 刘研 Nov 27 '12 at 9:42
  • yes - but my question should be relevant for all Linux versions ( from 5.0 until latest version ) – yael Nov 27 '12 at 9:44
0

The best 2 solutions:

  1. Look at your root file system creation. For ext2 and ext3 you should use

    dumpe2fs /dev/sdX1 | grep "Filesystem created:"

If you use XFS on solaris you should follow the same approach (probably xfs_db ?)

  1. Find the installer log. there you will find files what are write in the moment of installation. In ubuntu for example I have /var/log/installer/lsb-release and the date of this file shows me the date of system installation.

Solution 1 is the absolute solution.

https://superuser.com/questions/402550/how-do-i-view-the-os-installation-date-on-linux

0

try with long listing of /bin /sbin files. check the dates of binaries there, you will get a hint.

I think in Solaris /bin is a link to /usr/bin

anyways listing dates of binaries can turn out to be useful.

  • I need absolute solution so I will add the rule in my shell script – yael Nov 27 '12 at 9:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.